diff options
author | Brijesh Singh <brijesh.singh@amd.com> | 2018-03-08 06:48:51 -0600 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2018-03-13 17:36:05 +0100 |
commit | c6c89c976dd654a943603396f1ea58b7a0eb3101 (patch) | |
tree | 4b608e09b27349bf0953336d8c02c8f818f276b8 /target/i386/sev-stub.c | |
parent | 952e0668c4facc80765dd3c412c8a5a084188e6c (diff) |
sev/i386: add support to LAUNCH_MEASURE command
During machine creation we encrypted the guest bios image, the
LAUNCH_MEASURE command can be used to retrieve the measurement of
the encrypted memory region. This measurement is a signature of
the memory contents that can be sent to the guest owner as an
attestation that the memory was encrypted correctly by the firmware.
VM management tools like libvirt can query the measurement using
query-sev-launch-measure QMP command.
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Brijesh Singh <brijesh.singh@amd.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'target/i386/sev-stub.c')
-rw-r--r-- | target/i386/sev-stub.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/target/i386/sev-stub.c b/target/i386/sev-stub.c index c86d8c1392..2f61c32ec9 100644 --- a/target/i386/sev-stub.c +++ b/target/i386/sev-stub.c @@ -39,3 +39,8 @@ uint32_t sev_get_reduced_phys_bits(void) { return 0; } + +char *sev_get_launch_measurement(void) +{ + return NULL; +} |