On 21/06/2024 14:40, Michael Roth wrote: > 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. > > Signed-off-by: Michael Roth <michael.roth@xxxxxxx> Reviewed-by: Liam Merwick <liam.merwick@xxxxxxxxxx> > --- > arch/x86/include/asm/sev.h | 48 +++++++++++++++++++ > drivers/virt/coco/sev-guest/sev-guest.c | 2 - > drivers/virt/coco/sev-guest/sev-guest.h | 63 ------------------------- > 3 files changed, 48 insertions(+), 65 deletions(-) > delete mode 100644 drivers/virt/coco/sev-guest/sev-guest.h >