xref: /openbmc/qemu/hw/i386/sgx-stub.c (revision e649de10)
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 
sgx_epc_build_srat(GArray * table_data)911058123SYang Zhong void sgx_epc_build_srat(GArray *table_data)
1011058123SYang Zhong {
1111058123SYang Zhong }
1211058123SYang Zhong 
qmp_query_sgx(Error ** errp)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 
qmp_query_sgx_capabilities(Error ** errp)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 
hmp_info_sgx(Monitor * mon,const QDict * qdict)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é 
pc_machine_init_sgx_epc(PCMachineState * pcms)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 
sgx_epc_get_section(int section_nr,uint64_t * addr,uint64_t * size)3505fc8db7SPhilippe Mathieu-Daudé bool sgx_epc_get_section(int section_nr, uint64_t *addr, uint64_t *size)
361dec2e1fSSean Christopherson {
37*e649de10SPaolo Bonzini     return true;
381dec2e1fSSean Christopherson }
39