diff options
author | Brijesh Singh <brijesh.singh@amd.com> | 2024-05-30 06:16:36 -0500 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2024-06-05 11:01:06 +0200 |
commit | 77d1abd91e5352ad30ae2f83790f95fa6a3c0b6b (patch) | |
tree | 1530ea0735909bf80044948b0209647f726f3cf0 /target/i386/sev-sysemu-stub.c | |
parent | 70943ad8e4dfbe5f77006b880290219be9d03553 (diff) | |
download | qemu-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 'target/i386/sev-sysemu-stub.c')
-rw-r--r-- | target/i386/sev-sysemu-stub.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/i386/sev-sysemu-stub.c b/target/i386/sev-sysemu-stub.c index fc1c57c..d5bf886 100644 --- a/target/i386/sev-sysemu-stub.c +++ b/target/i386/sev-sysemu-stub.c @@ -42,7 +42,7 @@ void qmp_sev_inject_launch_secret(const char *packet_header, const char *secret, error_setg(errp, "SEV is not available in this QEMU"); } -int sev_encrypt_flash(uint8_t *ptr, uint64_t len, Error **errp) +int sev_encrypt_flash(hwaddr gpa, uint8_t *ptr, uint64_t len, Error **errp) { g_assert_not_reached(); } |