blob: d556b4f091f81726e16e4d725f481585e312b9b9 [file] [log] [blame]
Philippe Mathieu-Daudée24b3332021-10-07 18:17:06 +02001/*
2 * QEMU SEV system stub
3 *
4 * Copyright Advanced Micro Devices 2018
5 *
6 * Authors:
7 * Brijesh Singh <brijesh.singh@amd.com>
8 *
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.
11 *
12 */
13
14#include "qemu/osdep.h"
15#include "qapi/qapi-commands-misc-target.h"
16#include "qapi/error.h"
17#include "sev_i386.h"
18
19SevInfo *sev_get_info(void)
20{
21 return NULL;
22}
23
24char *sev_get_launch_measurement(void)
25{
26 return NULL;
27}
28
29SevCapability *sev_get_capabilities(Error **errp)
30{
31 error_setg(errp, "SEV is not available in this QEMU");
32 return NULL;
33}
34
35int sev_inject_launch_secret(const char *hdr, const char *secret,
36 uint64_t gpa, Error **errp)
37{
38 return 1;
39}
40
41int sev_encrypt_flash(uint8_t *ptr, uint64_t len, Error **errp)
42{
43 g_assert_not_reached();
44}
45
46void sev_es_set_reset_vector(CPUState *cpu)
47{
48}
49
50int sev_es_save_reset_vector(void *flash_ptr, uint64_t flash_size)
51{
52 g_assert_not_reached();
53}
54
55SevAttestationReport *sev_get_attestation_report(const char *mnonce,
56 Error **errp)
57{
58 error_setg(errp, "SEV is not available in this QEMU");
59 return NULL;
60}