c6c89c976d
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>
47 lines
660 B
C
47 lines
660 B
C
/*
|
|
* QEMU SEV stub
|
|
*
|
|
* Copyright Advanced Micro Devices 2018
|
|
*
|
|
* Authors:
|
|
* Brijesh Singh <brijesh.singh@amd.com>
|
|
*
|
|
* This work is licensed under the terms of the GNU GPL, version 2 or later.
|
|
* See the COPYING file in the top-level directory.
|
|
*
|
|
*/
|
|
|
|
#include "qemu/osdep.h"
|
|
#include "qemu-common.h"
|
|
#include "sev_i386.h"
|
|
|
|
SevInfo *sev_get_info(void)
|
|
{
|
|
return NULL;
|
|
}
|
|
|
|
bool sev_enabled(void)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
uint64_t sev_get_me_mask(void)
|
|
{
|
|
return ~0;
|
|
}
|
|
|
|
uint32_t sev_get_cbit_position(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
uint32_t sev_get_reduced_phys_bits(void)
|
|
{
|
|
return 0;
|
|
}
|
|
|
|
char *sev_get_launch_measurement(void)
|
|
{
|
|
return NULL;
|
|
}
|