xref: /qemu/target/i386/sev-system-stub.c (revision 648fe157d33436f042d6b6434b9b88079f67fa33)
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"
15 #include "monitor/monitor.h"
16 #include "monitor/hmp-target.h"
17 #include "qapi/error.h"
18 #include "sev.h"
19 
20 int sev_encrypt_flash(hwaddr gpa, uint8_t *ptr, uint64_t len, Error **errp)
21 {
22     g_assert_not_reached();
23 }
24 
25 void sev_es_set_reset_vector(CPUState *cpu)
26 {
27 }
28 
29 int sev_es_save_reset_vector(void *flash_ptr, uint64_t flash_size)
30 {
31     g_assert_not_reached();
32 }
33 
34 void hmp_info_sev(Monitor *mon, const QDict *qdict)
35 {
36     monitor_printf(mon, "SEV is not available in this QEMU\n");
37 }
38 
39 void pc_system_parse_sev_metadata(uint8_t *flash_ptr, size_t flash_size)
40 {
41 }
42