The basic SGX patches were merged into Qemu release, the left NUMA function for SGX should be enabled. The patch1 implemented the SGX NUMA ACPI to enable NUMA in the SGX guest. Since Libvirt need detailed host SGX EPC sections info to decide how to allocate EPC sections for SGX NUMA guest, the SGXEPCSection list is introduced to show detailed sections info in the monitor or HMP interface.
Please help review this patchset, the link also can be found: https://github.com/intel/qemu-sgx upstream Yang Zhong (6): numa: Enable numa for SGX EPC sections monitor: Support 'info numa' command numa: Add SGXEPCSection list for multiple sections monitor: numa support for 'info sgx' command numa: Enable numa for libvirt interface doc: Add the SGX numa description docs/system/i386/sgx.rst | 31 +++++++++++++-- qapi/machine.json | 6 ++- qapi/misc-target.json | 19 ++++++++- include/hw/i386/sgx-epc.h | 3 ++ hw/core/numa.c | 6 +++ hw/i386/acpi-build.c | 4 ++ hw/i386/sgx-epc.c | 3 ++ hw/i386/sgx.c | 84 +++++++++++++++++++++++++++++++++++---- monitor/hmp-cmds.c | 1 + target/i386/monitor.c | 11 ++++- qemu-options.hx | 4 +- 11 files changed, 154 insertions(+), 18 deletions(-)