[PATCH 0/6] SGX NUMA support

Yang Zhong posted 6 patches 2 years, 6 months ago
Test checkpatch passed
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20211011111554.12403-1-yang.zhong@intel.com
Maintainers: "Dr. David Alan Gilbert" <dgilbert@redhat.com>, Eric Blake <eblake@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, Ani Sinha <ani@anisinha.ca>, Markus Armbruster <armbru@redhat.com>, "Michael S. Tsirkin" <mst@redhat.com>, Igor Mammedov <imammedo@redhat.com>, Eduardo Habkost <ehabkost@redhat.com>, Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, Richard Henderson <richard.henderson@linaro.org>
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(-)
[PATCH 0/6] SGX NUMA support
Posted by Yang Zhong 2 years, 6 months ago
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(-)