Re: [PATCH v2] sev-snp: parse MP tables for VMware hypervisor

From: Borislav Petkov
Date: Thu Mar 13 2025 - 13:53:03 EST


On Thu, Mar 13, 2025 at 05:31:11PM +0000, Ajay Kaher wrote:
> For VMware hypervisor, SEV-SNP enabled VM's could boot without UEFI.

VMs

mingo, pls fix up while applying.

> In this case, mpparse_find_mptable() has to be called to parse MP
> tables which contains boot information.
>
> Fixes: 0f4a1e80989a ("x86/sev: Skip ROM range scans and validation for SEV-SNP guests")
> Co-developed-by: Ye Li <ye.li@xxxxxxxxxxxx>
> Signed-off-by: Ye Li <ye.li@xxxxxxxxxxxx>
> Signed-off-by: Ajay Kaher <ajay.kaher@xxxxxxxxxxxx>
> Tested-by: Ye Li <ye.li@xxxxxxxxxxxx>
> Reviewed-by: Kevin Loughlin <kevinloughlin@xxxxxxxxxx>
> ---
> Changes since v1:
> https://lore.kernel.org/lkml/20241219114400.858980-1-ajay.kaher@xxxxxxxxxxxx/
> - use cc_platform_has(CC_ATTR_GUEST_SEV_SNP) instead of
> (sev_status & MSR_AMD64_SEV_SNP_ENABLED)
> - remove unwanted header files
> ---
> arch/x86/kernel/cpu/vmware.c | 4 ++++
> 1 file changed, 4 insertions(+)

Acked-by: Borislav Petkov (AMD) <bp@xxxxxxxxx>

--
Regards/Gruss,
Boris.

https://people.kernel.org/tglx/notes-about-netiquette