Re: [PATCH v9 38/43] x86/sev: Use firmware-validated CPUID for SEV-SNP guests

From: Borislav Petkov
Date: Sun Feb 06 2022 - 14:51:19 EST


On Fri, Jan 28, 2022 at 11:17:59AM -0600, Brijesh Singh wrote:
> +/*
> + * It is useful from an auditing/testing perspective to provide an easy way
> + * for the guest owner to know that the CPUID table has been initialized as
> + * expected, but that initialization happens too early in boot to print any
> + * sort of indicator, and there's not really any other good place to do it.

If you really wanna do it - and I think it might make sense to be able
to dump that table for debugging or whatever purposes, you could define
a cmdline parameter like

sev=debug

or so, which would enable checking and dumping of the cpuid table.

For example...

--
Regards/Gruss,
Boris.

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