On Wed, Oct 13, 2021 at 11:56:52AM -0500, Brijesh Singh wrote:
> From: Michael Roth <michael.r...@amd.com>
> 
> SEV-SNP firmware allows a special guest page to be populated with
> guest CPUID values so that they can be validated against supported
> host features before being loaded into encrypted guest memory to be
> used instead of hypervisor-provided values [1].
> 
> Add handling for this in the CPUID #VC handler and use it whenever
> SEV-SNP is enabled. To do so, existing CPUID handling via VmgExit is
> moved to a helper, GetCpuidHyp(), and a new helper that uses the CPUID
> page to do the lookup, GetCpuidFw(), is used instead when SNP is
> enabled. For cases where SNP CPUID lookups still rely on fetching
> specific CPUID fields from hypervisor, GetCpuidHyp() is used there as
> well.
> 
> [1]: SEV SNP Firmware ABI Specification, Rev. 0.8, 8.13.2.6

Acked-by: Gerd Hoffmann <kra...@redhat.com>



-=-=-=-=-=-=-=-=-=-=-=-
Groups.io Links: You receive all messages sent to this group.
View/Reply Online (#81980): https://edk2.groups.io/g/devel/message/81980
Mute This Topic: https://groups.io/mt/86292895/21656
Group Owner: devel+ow...@edk2.groups.io
Unsubscribe: https://edk2.groups.io/g/devel/unsub [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-


Reply via email to