mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-30 13:53:54 -06:00

This removes the TARGET_I386 condition from the SGX confidential virtualization commands, moving them to the recently introduced misc-i386.json QAPI file, given they are inherantly i386 specific commands. Observe a pre-existing bug that the "SGXEPCSection" struct lacked a TARGET_I386 condition, despite its only usage being behind a TARGET_I386 condition. Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> Signed-off-by: Pierrick Bouvier <pierrick.bouvier@linaro.org> Message-ID: <20250522190542.588267-6-pierrick.bouvier@linaro.org> Reviewed-by: Markus Armbruster <armbru@redhat.com>
43 lines
872 B
C
43 lines
872 B
C
#include "qemu/osdep.h"
|
|
#include "monitor/monitor.h"
|
|
#include "monitor/hmp-target.h"
|
|
#include "hw/i386/pc.h"
|
|
#include "hw/i386/sgx-epc.h"
|
|
#include "qapi/qapi-commands-misc-i386.h"
|
|
#include "qapi/error.h"
|
|
|
|
void sgx_epc_build_srat(GArray *table_data)
|
|
{
|
|
}
|
|
|
|
SgxInfo *qmp_query_sgx(Error **errp)
|
|
{
|
|
error_setg(errp, "SGX support is not compiled in");
|
|
return NULL;
|
|
}
|
|
|
|
SgxInfo *qmp_query_sgx_capabilities(Error **errp)
|
|
{
|
|
error_setg(errp, "SGX support is not compiled in");
|
|
return NULL;
|
|
}
|
|
|
|
void hmp_info_sgx(Monitor *mon, const QDict *qdict)
|
|
{
|
|
monitor_printf(mon, "SGX is not available in this QEMU\n");
|
|
}
|
|
|
|
void pc_machine_init_sgx_epc(PCMachineState *pcms)
|
|
{
|
|
memset(&pcms->sgx_epc, 0, sizeof(SGXEPCState));
|
|
}
|
|
|
|
bool check_sgx_support(void)
|
|
{
|
|
return false;
|
|
}
|
|
|
|
bool sgx_epc_get_section(int section_nr, uint64_t *addr, uint64_t *size)
|
|
{
|
|
return true;
|
|
}
|