hw/i386/sev: Add function to get SEV metadata from OVMF header
authorBrijesh Singh <brijesh.singh@amd.com>
Thu, 30 May 2024 11:16:30 +0000 (06:16 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 5 Jun 2024 09:01:06 +0000 (11:01 +0200)
commitf3c30c575d34122573b7370a7da5ca3a27dde481
treeee3fde06d5ed456d8a364b6a9c2c4bb72a6aeb15
parent3d44fdff60ea66fbd7a33f5d32b50843cd80f48a
hw/i386/sev: Add function to get SEV metadata from OVMF header

A recent version of OVMF expanded the reset vector GUID list to add
SEV-specific metadata GUID. The SEV metadata describes the reserved
memory regions such as the secrets and CPUID page used during the SEV-SNP
guest launch.

The pc_system_get_ovmf_sev_metadata_ptr() is used to retieve the SEV
metadata pointer from the OVMF GUID list.

Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
Signed-off-by: Michael Roth <michael.roth@amd.com>
Signed-off-by: Pankaj Gupta <pankaj.gupta@amd.com>
Message-ID: <20240530111643.1091816-19-pankaj.gupta@amd.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/i386/pc_sysfw.c
include/hw/i386/pc.h
target/i386/sev-sysemu-stub.c
target/i386/sev.c
target/i386/sev.h