public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Michael Roth <michael.roth@amd.com>
To: <linux-kernel@vger.kernel.org>
Cc: Thomas Gleixner <tglx@linutronix.de>,
	Ingo Molnar <mingo@redhat.com>, Borislav Petkov <bp@alien8.de>,
	Dave Hansen <dave.hansen@linux.intel.com>, <x86@kernel.org>,
	"H . Peter Anvin" <hpa@zytor.com>,
	Kees Cook <keescook@chromium.org>,
	"Kirill A . Shutemov" <kirill.shutemov@linux.intel.com>,
	Tony Luck <tony.luck@intel.com>,
	"Nick Desaulniers" <ndesaulniers@google.com>,
	Kuppuswamy Sathyanarayanan 
	<sathyanarayanan.kuppuswamy@linux.intel.com>,
	Tom Lendacky <thomas.lendacky@amd.com>,
	Venu Busireddy <venu.busireddy@oracle.com>,
	"Joerg Roedel" <jroedel@suse.de>,
	Tianyu Lan <Tianyu.Lan@microsoft.com>
Subject: [PATCH v4 0/2] x86/sev: Fix AP Jump Table handling for SNP guests
Date: Tue, 26 Apr 2022 09:21:45 -0500	[thread overview]
Message-ID: <20220426142147.338412-1-michael.roth@amd.com> (raw)

This series is based on tip/master (commit 1912a07f8a)

SNP guests should only retrieve the AP Jump Table address from the
secrets page, not via a GHCB request as with SEV-ES guests. This series
reworks the handling accordingly, and fixes up some __init annotations
for some of the SEV routines touched by that rework.

v4:
 - Improve commit msg for patch 2 (Tom)

v3:
 - Address missing __init annotations (Boris)

v2:
 - add handling for memremap()/ioremap() failures (Boris)
 - don't mix function calls with declarations (Boris)

 arch/x86/include/asm/sev.h              | 35 +++++++++++++++++++++++++++++++++++
 arch/x86/kernel/sev.c                   | 80 ++++++++++++++++++++++++++++++++++++++++++++++++++++++--------------------------
 arch/x86/realmode/init.c                |  2 +-
 drivers/virt/coco/sev-guest/sev-guest.h | 35 -----------------------------------
 4 files changed, 90 insertions(+), 62 deletions(-)



             reply	other threads:[~2022-04-26 14:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-04-26 14:21 Michael Roth [this message]
2022-04-26 14:21 ` [PATCH v4 1/2] x86/sev: Add missing __init annotations to SEV init routines Michael Roth
2022-04-26 14:21 ` [PATCH v4 2/2] x86/sev: Get the AP jump table address from secrets page Michael Roth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20220426142147.338412-1-michael.roth@amd.com \
    --to=michael.roth@amd.com \
    --cc=Tianyu.Lan@microsoft.com \
    --cc=bp@alien8.de \
    --cc=dave.hansen@linux.intel.com \
    --cc=hpa@zytor.com \
    --cc=jroedel@suse.de \
    --cc=keescook@chromium.org \
    --cc=kirill.shutemov@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@redhat.com \
    --cc=ndesaulniers@google.com \
    --cc=sathyanarayanan.kuppuswamy@linux.intel.com \
    --cc=tglx@linutronix.de \
    --cc=thomas.lendacky@amd.com \
    --cc=tony.luck@intel.com \
    --cc=venu.busireddy@oracle.com \
    --cc=x86@kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox