Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp3177667pxb; Mon, 1 Nov 2021 09:12:33 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjov9ceEd42wt8yzVY6Ac2JkBns+HAHCyhRSvPnk9oPNRYqxZ7UOQMzu77xDb4ngpSyPG7 X-Received: by 2002:a5d:994f:: with SMTP id v15mr22526647ios.88.1635783153787; Mon, 01 Nov 2021 09:12:33 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635783153; cv=none; d=google.com; s=arc-20160816; b=QGgCHnU5Db8roxwMYBh6m4XBn2istX780nP5cjsF5DNe2vF5v1YRjjkLVyR+imxyep KBDKMs7H6CPlPXtvMCvzODNzAs7fi8C65x2WXjGyEVXy0BLBVZ3JdTGfLkP+1ypWYYTj BeJenazBiDFIxeZ7d8UI89PrTZiSgKHdoXEv3C+ihZj8r8S5FDWW4oRWUpyhRtPQtH3e TDBuhedEQ1el7bNr4XmEeUNEjffIs6W6AWaY1oP8eV1eN4A3AB51iVMo69YspqSC12Ls dLcW7+2uBdVKAL5ppTMrw7zbtBckhe77NXG9jWRXxA3EY118JC0WrkG2vztpr5kNTvKa lGpQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=cNsdwN4kKqk3161ajpvhRVfJcWO0W7ga/sbEAeYvU0A=; b=d6Ynt5DL0Y1NhLhl2nWGz6xMYETxT66k0PUQks9fwY7mbA1kYup32L8EzOV2VAuoYU NNxqCAvSu+Hs0adge9qhGumUPp6Cbv9xURkYCdR184BQ90nN/ffSE4WWNwkcsfetOPeA eFFJhzdAtCmxX5J3o5k28IK4UyE+2j/96NLjD+t2/idI6BO740wWTBNJ0M5X/A04M7bd 36P9mxXN42eOMSeDHfC35bsYiIRkli/UK+DBsY3R7xGvrtXb/qDITMZBZrBrZ2gJJevd MLoM6vAIdvYmiol6dTZOOZUqhyYzKmoIOkzUEE6AfZ532lkjWceJdbKUCTVRQ13H/Fnu QeTQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=gM5qhsjP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id e18si26852413iow.112.2021.11.01.09.12.05; Mon, 01 Nov 2021 09:12:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=gM5qhsjP; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232627AbhKAQNI (ORCPT + 99 others); Mon, 1 Nov 2021 12:13:08 -0400 Received: from mail.skyhub.de ([5.9.137.197]:37270 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230517AbhKAQNG (ORCPT ); Mon, 1 Nov 2021 12:13:06 -0400 Received: from zn.tnic (p200300ec2f0cfa005d2c15110524cf3f.dip0.t-ipconnect.de [IPv6:2003:ec:2f0c:fa00:5d2c:1511:524:cf3f]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id E3EEA1EC0399; Mon, 1 Nov 2021 17:10:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1635783032; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=cNsdwN4kKqk3161ajpvhRVfJcWO0W7ga/sbEAeYvU0A=; b=gM5qhsjPBTvrmKdXG/5HtueWzax3vGYxTRXR2FVKwwYSC4zZS6r3n2C2iGcZoX8XODyiPL UDWJGYDmI+8ncxmpPCjc9XdxdOETd6fEDqfkkkm/7QTOA5nK6A0sOPB0QozLxu0T4iS7VJ XR0HA2rgVU8uUt/+0SAC+yykmI6XvT8= Date: Mon, 1 Nov 2021 17:10:25 +0100 From: Borislav Petkov To: Eric Biederman Cc: Joerg Roedel , x86@kernel.org, kexec@lists.infradead.org, Joerg Roedel , stable@vger.kernel.org, hpa@zytor.com, Andy Lutomirski , Dave Hansen , Peter Zijlstra , Jiri Slaby , Dan Williams , Tom Lendacky , Juergen Gross , Kees Cook , David Rientjes , Cfir Cohen , Erdem Aktas , Masami Hiramatsu , Mike Stunes , Sean Christopherson , Martin Radev , Arvind Sankar , linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org Subject: Re: [PATCH v2 01/12] kexec: Allow architecture code to opt-out at runtime Message-ID: References: <20210913155603.28383-1-joro@8bytes.org> <20210913155603.28383-2-joro@8bytes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210913155603.28383-2-joro@8bytes.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 13, 2021 at 05:55:52PM +0200, Joerg Roedel wrote: > From: Joerg Roedel > > Allow a runtime opt-out of kexec support for architecture code in case > the kernel is running in an environment where kexec is not properly > supported yet. > > This will be used on x86 when the kernel is running as an SEV-ES > guest. SEV-ES guests need special handling for kexec to hand over all > CPUs to the new kernel. This requires special hypervisor support and > handling code in the guest which is not yet implemented. > > Cc: stable@vger.kernel.org # v5.10+ > Signed-off-by: Joerg Roedel > --- > include/linux/kexec.h | 1 + > kernel/kexec.c | 14 ++++++++++++++ > kernel/kexec_file.c | 9 +++++++++ > 3 files changed, 24 insertions(+) I guess I can take this through the tip tree along with the next one. Eric? -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette