xref: /openbmc/qemu/hw/i386/sgx-stub.c (revision 11058123)
11dec2e1fSSean Christopherson #include "qemu/osdep.h"
26e81733eSPhilippe Mathieu-Daudé #include "monitor/monitor.h"
36e81733eSPhilippe Mathieu-Daudé #include "monitor/hmp-target.h"
41dec2e1fSSean Christopherson #include "hw/i386/pc.h"
51dec2e1fSSean Christopherson #include "hw/i386/sgx-epc.h"
602165856SPhilippe Mathieu-Daudé #include "qapi/error.h"
702165856SPhilippe Mathieu-Daudé #include "qapi/qapi-commands-misc-target.h"
857d874c4SYang Zhong 
9*11058123SYang Zhong void sgx_epc_build_srat(GArray *table_data)
10*11058123SYang Zhong {
11*11058123SYang Zhong }
12*11058123SYang Zhong 
136e81733eSPhilippe Mathieu-Daudé SGXInfo *qmp_query_sgx(Error **errp)
1457d874c4SYang Zhong {
1557d874c4SYang Zhong     error_setg(errp, "SGX support is not compiled in");
1657d874c4SYang Zhong     return NULL;
1757d874c4SYang Zhong }
181dec2e1fSSean Christopherson 
1902165856SPhilippe Mathieu-Daudé SGXInfo *qmp_query_sgx_capabilities(Error **errp)
200205c4faSYang Zhong {
210205c4faSYang Zhong     error_setg(errp, "SGX support is not compiled in");
220205c4faSYang Zhong     return NULL;
230205c4faSYang Zhong }
240205c4faSYang Zhong 
256e81733eSPhilippe Mathieu-Daudé void hmp_info_sgx(Monitor *mon, const QDict *qdict)
266e81733eSPhilippe Mathieu-Daudé {
276e81733eSPhilippe Mathieu-Daudé     monitor_printf(mon, "SGX is not available in this QEMU\n");
286e81733eSPhilippe Mathieu-Daudé }
296e81733eSPhilippe Mathieu-Daudé 
301dec2e1fSSean Christopherson void pc_machine_init_sgx_epc(PCMachineState *pcms)
311dec2e1fSSean Christopherson {
321dec2e1fSSean Christopherson     memset(&pcms->sgx_epc, 0, sizeof(SGXEPCState));
331dec2e1fSSean Christopherson }
341dec2e1fSSean Christopherson 
3505fc8db7SPhilippe Mathieu-Daudé bool sgx_epc_get_section(int section_nr, uint64_t *addr, uint64_t *size)
361dec2e1fSSean Christopherson {
371dec2e1fSSean Christopherson     g_assert_not_reached();
381dec2e1fSSean Christopherson }
39