From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail.skyhub.de ([2a01:4f8:190:11c2::b:1457]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mk99w-00H8oX-JI for kexec@lists.infradead.org; Mon, 08 Nov 2021 18:14:22 +0000 Date: Mon, 8 Nov 2021 19:14:12 +0100 From: Borislav Petkov Subject: Re: [PATCH v2 06/12] x86/sev: Cache AP Jump Table Address Message-ID: References: <20210913155603.28383-1-joro@8bytes.org> <20210913155603.28383-7-joro@8bytes.org> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <20210913155603.28383-7-joro@8bytes.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "kexec" Errors-To: kexec-bounces+dwmw2=infradead.org@lists.infradead.org To: Joerg Roedel Cc: x86@kernel.org, Eric Biederman , kexec@lists.infradead.org, Joerg Roedel , 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 On Mon, Sep 13, 2021 at 05:55:57PM +0200, Joerg Roedel wrote: > From: Joerg Roedel > > Store the physical address of the AP Jump Table in kernel memory so > that it does not need to be fetched from the Hypervisor again. > > Signed-off-by: Joerg Roedel > --- > arch/x86/kernel/sev.c | 26 ++++++++++++++------------ > 1 file changed, 14 insertions(+), 12 deletions(-) > > diff --git a/arch/x86/kernel/sev.c b/arch/x86/kernel/sev.c > index 5d3422e8b25e..eedba56b6bac 100644 > --- a/arch/x86/kernel/sev.c > +++ b/arch/x86/kernel/sev.c > @@ -42,6 +42,9 @@ static struct ghcb boot_ghcb_page __bss_decrypted __aligned(PAGE_SIZE); > */ > static struct ghcb __initdata *boot_ghcb; > > +/* Cached AP Jump Table Address */ > +static phys_addr_t sev_es_jump_table_pa; This is static, so "jump_table_pa" should be enough. Also, to the prefixes, everything which is not SEV-ES only, should be simply prefixed with "sev_" if externally visible. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette _______________________________________________ kexec mailing list kexec@lists.infradead.org http://lists.infradead.org/mailman/listinfo/kexec