aboutsummaryrefslogtreecommitdiff
path: root/include/hw/i386/x86.h
diff options
context:
space:
mode:
authorBrijesh Singh <brijesh.singh@amd.com>2024-05-30 06:16:36 -0500
committerPaolo Bonzini <pbonzini@redhat.com>2024-06-05 11:01:06 +0200
commit77d1abd91e5352ad30ae2f83790f95fa6a3c0b6b (patch)
tree1530ea0735909bf80044948b0209647f726f3cf0 /include/hw/i386/x86.h
parent70943ad8e4dfbe5f77006b880290219be9d03553 (diff)
downloadqemu-77d1abd91e5352ad30ae2f83790f95fa6a3c0b6b.zip
qemu-77d1abd91e5352ad30ae2f83790f95fa6a3c0b6b.tar.gz
qemu-77d1abd91e5352ad30ae2f83790f95fa6a3c0b6b.tar.bz2
hw/i386/sev: Add support to encrypt BIOS when SEV-SNP is enabled
As with SEV, an SNP guest requires that the BIOS be part of the initial encrypted/measured guest payload. Extend sev_encrypt_flash() to handle the SNP case and plumb through the GPA of the BIOS location since this is needed for SNP. 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-25-pankaj.gupta@amd.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/hw/i386/x86.h')
-rw-r--r--include/hw/i386/x86.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/hw/i386/x86.h b/include/hw/i386/x86.h
index b006f16..d43cb39 100644
--- a/include/hw/i386/x86.h
+++ b/include/hw/i386/x86.h
@@ -154,6 +154,6 @@ void ioapic_init_gsi(GSIState *gsi_state, Object *parent);
DeviceState *ioapic_init_secondary(GSIState *gsi_state);
/* pc_sysfw.c */
-void x86_firmware_configure(void *ptr, int size);
+void x86_firmware_configure(hwaddr gpa, void *ptr, int size);
#endif