]> git.proxmox.com Git - mirror_qemu.git/blame - target/i386/sev-sysemu-stub.c
target/i386: implement XSAVE and XRSTOR of AVX registers
[mirror_qemu.git] / target / i386 / sev-sysemu-stub.c
CommitLineData
e24b3332
PMD
1/*
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"
aa395018 15#include "monitor/monitor.h"
cd35beb4 16#include "monitor/hmp-target.h"
e24b3332 17#include "qapi/qapi-commands-misc-target.h"
3208de1c 18#include "qapi/qmp/qerror.h"
e24b3332 19#include "qapi/error.h"
93777de3 20#include "sev.h"
e24b3332 21
aa395018 22SevInfo *qmp_query_sev(Error **errp)
e24b3332 23{
aa395018 24 error_setg(errp, "SEV is not available in this QEMU");
e24b3332
PMD
25 return NULL;
26}
27
0875a703 28SevLaunchMeasureInfo *qmp_query_sev_launch_measure(Error **errp)
e24b3332 29{
0875a703 30 error_setg(errp, "SEV is not available in this QEMU");
e24b3332
PMD
31 return NULL;
32}
33
8371df29 34SevCapability *qmp_query_sev_capabilities(Error **errp)
e24b3332
PMD
35{
36 error_setg(errp, "SEV is not available in this QEMU");
37 return NULL;
38}
39
11a6ed0e
PMD
40void qmp_sev_inject_launch_secret(const char *packet_header, const char *secret,
41 bool has_gpa, uint64_t gpa, Error **errp)
e24b3332 42{
11a6ed0e 43 error_setg(errp, "SEV is not available in this QEMU");
e24b3332
PMD
44}
45
46int sev_encrypt_flash(uint8_t *ptr, uint64_t len, Error **errp)
47{
48 g_assert_not_reached();
49}
50
51void sev_es_set_reset_vector(CPUState *cpu)
52{
53}
54
55int sev_es_save_reset_vector(void *flash_ptr, uint64_t flash_size)
56{
57 g_assert_not_reached();
58}
59
3208de1c
PMD
60SevAttestationReport *qmp_query_sev_attestation_report(const char *mnonce,
61 Error **errp)
e24b3332
PMD
62{
63 error_setg(errp, "SEV is not available in this QEMU");
64 return NULL;
65}
aa395018
PMD
66
67void hmp_info_sev(Monitor *mon, const QDict *qdict)
68{
69 monitor_printf(mon, "SEV is not available in this QEMU\n");
70}