xref: /qemu/target/i386/sev-system-stub.c (revision 7373759583650fff6f724c6c21d4234bf31b2af0)
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 
sev_encrypt_flash(hwaddr gpa,uint8_t * ptr,uint64_t len,Error ** errp)20 int sev_encrypt_flash(hwaddr gpa, uint8_t *ptr, uint64_t len, Error **errp)
21 {
22     g_assert_not_reached();
23 }
24 
sev_es_set_reset_vector(CPUState * cpu)25 void sev_es_set_reset_vector(CPUState *cpu)
26 {
27 }
28 
sev_es_save_reset_vector(void * flash_ptr,uint64_t flash_size)29 int sev_es_save_reset_vector(void *flash_ptr, uint64_t flash_size)
30 {
31     g_assert_not_reached();
32 }
33 
hmp_info_sev(Monitor * mon,const QDict * qdict)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 
pc_system_parse_sev_metadata(uint8_t * flash_ptr,size_t flash_size)39 void pc_system_parse_sev_metadata(uint8_t *flash_ptr, size_t flash_size)
40 {
41 }
42