mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Tom Lendacky <thomas.lendacky@amd.com>
To: Ard Biesheuvel <ardb+git@google.com>, linux-efi@vger.kernel.org
Cc: x86@kernel.org, linux-kernel@vger.kernel.org, mingo@kernel.org,
	Ard Biesheuvel <ardb@kernel.org>, Borislav Petkov <bp@alien8.de>,
	Dionna Amalie Glaze <dionnaglaze@google.com>,
	Kevin Loughlin <kevinloughlin@google.com>
Subject: Re: [PATCH v3 0/5] efi: Don't initalize SEV-SNP from the EFI stub
Date: Tue, 22 Apr 2025 10:51:47 -0500	[thread overview]
Message-ID: <d00c9119-5e8b-2615-8e4b-2d25732ff71a@amd.com> (raw)
In-Reply-To: <20250422100728.208479-7-ardb+git@google.com>

On 4/22/25 05:07, Ard Biesheuvel wrote:
> From: Ard Biesheuvel <ardb@kernel.org>
> 

Hi Ard,

I'll try to get to reviewing and testing this series very soon. But one
thing I can see is that we never set the snp_vmpl level anymore in the
EFI stub and so PVALIDATE will fail when running under an SVSM.

But I don't think this series is completely at fault. This goes back to
fixing memory acceptance before sev_enable() was called and I missed the
SVSM situation. So I don't think we can completely remove all SNP
initialization and might have to do svsm_setup_ca() which has a pre-req
on setup_cpuid_table()...  sigh.

Thanks,
Tom

> Changes since v2: [1]
> - rebase onto tip/x86/boot
> - add patch to remove unused static inline fallback implementation of
>   sev_enable()
> 
> Changes since v1: [0]
> - address shortcomings pointed out by Tom, related to missing checks and
>   to discovery of the CC blob table from the EFI stub
> 
> [0] https://lore.kernel.org/all/20250414130417.1486395-2-ardb+git@google.com/T/#u
> [1] https://lore.kernel.org/all/20250416165743.4080995-6-ardb+git@google.com/T/#u
> 
> Cc: Tom Lendacky <thomas.lendacky@amd.com>
> Cc: Borislav Petkov <bp@alien8.de>
> Cc: Dionna Amalie Glaze <dionnaglaze@google.com>
> Cc: Kevin Loughlin <kevinloughlin@google.com>
> 
> Ard Biesheuvel (5):
>   x86/boot: Drop unused sev_enable() fallback
>   x86/efistub: Obtain SEV CC blob address from the stub
>   x86/boot: Drop redundant RMPADJUST in SEV SVSM presence check
>   x86/sev: Unify SEV-SNP hypervisor feature check
>   x86/efistub: Don't bother enabling SEV in the EFI stub
> 
>  arch/x86/boot/compressed/misc.h         | 11 -------
>  arch/x86/boot/compressed/sev.c          | 33 +-------------------
>  arch/x86/boot/startup/sev-shared.c      | 33 +++++++++++++++-----
>  arch/x86/boot/startup/sme.c             |  2 ++
>  arch/x86/coco/sev/core.c                | 11 -------
>  arch/x86/include/asm/sev-internal.h     |  3 +-
>  arch/x86/include/asm/sev.h              |  4 +--
>  drivers/firmware/efi/libstub/x86-stub.c | 27 +++++++++-------
>  8 files changed, 48 insertions(+), 76 deletions(-)
> 
> 
> base-commit: ff4c0560ab020d34baf0aa6434f66333d25ae524

  parent reply	other threads:[~2025-04-22 15:51 UTC|newest]

Thread overview: 12+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2025-04-22 10:07 Ard Biesheuvel
2025-04-22 10:07 ` [PATCH v3 1/5] x86/boot: Drop unused sev_enable() fallback Ard Biesheuvel
2025-04-22 10:07 ` [PATCH v3 2/5] x86/efistub: Obtain SEV CC blob address from the stub Ard Biesheuvel
2025-04-22 10:07 ` [PATCH v3 3/5] x86/boot: Drop redundant RMPADJUST in SEV SVSM presence check Ard Biesheuvel
2025-04-22 10:07 ` [PATCH v3 4/5] x86/sev: Unify SEV-SNP hypervisor feature check Ard Biesheuvel
2025-04-22 10:07 ` [PATCH v3 5/5] x86/efistub: Don't bother enabling SEV in the EFI stub Ard Biesheuvel
2025-04-22 15:51 ` Tom Lendacky [this message]
2025-04-22 16:40   ` [PATCH v3 0/5] efi: Don't initalize SEV-SNP from " Ard Biesheuvel
2025-04-24  7:22     ` Ard Biesheuvel
2025-04-24 14:18       ` Tom Lendacky
2025-04-25 18:18         ` Tom Lendacky
2025-04-25 18:40           ` Tom Lendacky

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=d00c9119-5e8b-2615-8e4b-2d25732ff71a@amd.com \
    --to=thomas.lendacky@amd.com \
    --cc=ardb+git@google.com \
    --cc=ardb@kernel.org \
    --cc=bp@alien8.de \
    --cc=dionnaglaze@google.com \
    --cc=kevinloughlin@google.com \
    --cc=linux-efi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    --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

all inboxes | Powered by JetHome®