4 * Copyright Advanced Micro Devices 2018
7 * Brijesh Singh <brijesh.singh@amd.com>
9 * This work is licensed under the terms of the GNU GPL, version 2 or later.
10 * See the COPYING file in the top-level directory.
14 #include "qemu/osdep.h"
17 SevInfo
*sev_get_info(void)
22 bool sev_enabled(void)
27 uint64_t sev_get_me_mask(void)
32 uint32_t sev_get_cbit_position(void)
37 uint32_t sev_get_reduced_phys_bits(void)
42 char *sev_get_launch_measurement(void)
47 SevCapability
*sev_get_capabilities(Error
**errp
)
49 error_setg(errp
, "SEV is not available in this QEMU");
53 int sev_inject_launch_secret(const char *hdr
, const char *secret
,
54 uint64_t gpa
, Error
**errp
)
59 int sev_encrypt_flash(uint8_t *ptr
, uint64_t len
, Error
**errp
)
64 bool sev_es_enabled(void)
69 void sev_es_set_reset_vector(CPUState
*cpu
)
73 int sev_es_save_reset_vector(void *flash_ptr
, uint64_t flash_size
)
78 SevAttestationReport
*
79 sev_get_attestation_report(const char *mnonce
, Error
**errp
)
81 error_setg(errp
, "SEV is not available in this QEMU");