]> www.infradead.org Git - nvme.git/commit
x86/sev: Move sev_guest.h into common SEV header
authorMichael Roth <michael.roth@amd.com>
Mon, 1 Jul 2024 22:31:47 +0000 (17:31 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Jul 2024 15:44:00 +0000 (11:44 -0400)
commitf55f3c3ac69f22ce092506244a31c08a1ca497ba
treec53c5b7527e7b92f462f7a8c27b86a914b812d99
parent88caf544c9305313e1c48ac1a437faa5df8fff06
x86/sev: Move sev_guest.h into common SEV header

sev_guest.h currently contains various definitions relating to the
format of SNP_GUEST_REQUEST commands to SNP firmware. Currently only the
sev-guest driver makes use of them, but when the KVM side of this is
implemented there's a need to parse the SNP_GUEST_REQUEST header to
determine whether additional information needs to be provided to the
guest. Prepare for this by moving those definitions to a common header
that's shared by host/guest code so that KVM can also make use of them.

Reviewed-by: Tom Lendacky <thomas.lendacky@amd.com>
Reviewed-by: Liam Merwick <liam.merwick@oracle.com>
Signed-off-by: Michael Roth <michael.roth@amd.com>
Message-ID: <20240701223148.3798365-3-michael.roth@amd.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/include/asm/sev.h
drivers/virt/coco/sev-guest/sev-guest.c
drivers/virt/coco/sev-guest/sev-guest.h [deleted file]