target/i386: validate VEX prefixes via the instructions' exception classes
[qemu.git] / target / i386 / sev-sysemu-stub.c
blob7a29295d1edc74884b6efbd1b41c5aecdd2ba865
1 /*
2 * QEMU SEV system stub
4 * Copyright Advanced Micro Devices 2018
6 * Authors:
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"
15 #include "monitor/monitor.h"
16 #include "monitor/hmp-target.h"
17 #include "qapi/qapi-commands-misc-target.h"
18 #include "qapi/qmp/qerror.h"
19 #include "qapi/error.h"
20 #include "sev.h"
22 SevInfo *qmp_query_sev(Error **errp)
24 error_setg(errp, "SEV is not available in this QEMU");
25 return NULL;
28 SevLaunchMeasureInfo *qmp_query_sev_launch_measure(Error **errp)
30 error_setg(errp, "SEV is not available in this QEMU");
31 return NULL;
34 SevCapability *qmp_query_sev_capabilities(Error **errp)
36 error_setg(errp, "SEV is not available in this QEMU");
37 return NULL;
40 void qmp_sev_inject_launch_secret(const char *packet_header, const char *secret,
41 bool has_gpa, uint64_t gpa, Error **errp)
43 error_setg(errp, "SEV is not available in this QEMU");
46 int sev_encrypt_flash(uint8_t *ptr, uint64_t len, Error **errp)
48 g_assert_not_reached();
51 void sev_es_set_reset_vector(CPUState *cpu)
55 int sev_es_save_reset_vector(void *flash_ptr, uint64_t flash_size)
57 g_assert_not_reached();
60 SevAttestationReport *qmp_query_sev_attestation_report(const char *mnonce,
61 Error **errp)
63 error_setg(errp, "SEV is not available in this QEMU");
64 return NULL;
67 void hmp_info_sev(Monitor *mon, const QDict *qdict)
69 monitor_printf(mon, "SEV is not available in this QEMU\n");