diff options
author | Brijesh Singh | 2021-04-29 19:07:28 +0200 |
---|---|---|
committer | Eduardo Habkost | 2021-06-01 15:32:23 +0200 |
commit | 3ea1a80243d5b5ba23d8c2b7d3a86034ea0ade22 (patch) | |
tree | 9cd64f57fe932e5e34ac83a215339c1d2308472f /target/i386/sev-stub.c | |
parent | i386: use global kvm_state in hyperv_enabled() check (diff) | |
download | qemu-3ea1a80243d5b5ba23d8c2b7d3a86034ea0ade22.tar.gz qemu-3ea1a80243d5b5ba23d8c2b7d3a86034ea0ade22.tar.xz qemu-3ea1a80243d5b5ba23d8c2b7d3a86034ea0ade22.zip |
target/i386/sev: add support to query the attestation report
The SEV FW >= 0.23 added a new command that can be used to query the
attestation report containing the SHA-256 digest of the guest memory
and VMSA encrypted with the LAUNCH_UPDATE and sign it with the PEK.
Note, we already have a command (LAUNCH_MEASURE) that can be used to
query the SHA-256 digest of the guest memory encrypted through the
LAUNCH_UPDATE. The main difference between previous and this command
is that the report is signed with the PEK and unlike the LAUNCH_MEASURE
command the ATTESATION_REPORT command can be called while the guest
is running.
Add a QMP interface "query-sev-attestation-report" that can be used
to get the report encoded in base64.
Cc: James Bottomley <jejb@linux.ibm.com>
Cc: Tom Lendacky <Thomas.Lendacky@amd.com>
Cc: Eric Blake <eblake@redhat.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: kvm@vger.kernel.org
Reviewed-by: James Bottomley <jejb@linux.ibm.com>
Tested-by: James Bottomley <jejb@linux.ibm.com>
Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
Reviewed-by: Connor Kuehl <ckuehl@redhat.com>
Message-Id: <20210429170728.24322-1-brijesh.singh@amd.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'target/i386/sev-stub.c')
-rw-r--r-- | target/i386/sev-stub.c | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/target/i386/sev-stub.c b/target/i386/sev-stub.c index 0207f1c5aa..0227cb5177 100644 --- a/target/i386/sev-stub.c +++ b/target/i386/sev-stub.c @@ -74,3 +74,10 @@ int sev_es_save_reset_vector(void *flash_ptr, uint64_t flash_size) { abort(); } + +SevAttestationReport * +sev_get_attestation_report(const char *mnonce, Error **errp) +{ + error_setg(errp, "SEV is not available in this QEMU"); + return NULL; +} |