[PATCH v2 0/5] SGX NUMA support plus vepc reset

Yang Zhong posted 5 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/20211022192754.58196-1-yang.zhong@intel.com
Maintainers: "Dr. David Alan Gilbert" <dgilbert@redhat.com>, Eduardo Habkost <ehabkost@redhat.com>, Markus Armbruster <armbru@redhat.com>, "Michael S. Tsirkin" <mst@redhat.com>, Igor Mammedov <imammedo@redhat.com>, Marcel Apfelbaum <marcel.apfelbaum@gmail.com>, Eric Blake <eblake@redhat.com>, Paolo Bonzini <pbonzini@redhat.com>, Richard Henderson <richard.henderson@linaro.org>, Marcelo Tosatti <mtosatti@redhat.com>, Ani Sinha <ani@anisinha.ca>, Cornelia Huck <cohuck@redhat.com>
There is a newer version of this series
docs/system/i386/sgx.rst  |  31 ++++++--
qapi/machine.json         |  10 ++-
qapi/misc-target.json     |  19 ++++-
include/hw/i386/sgx-epc.h |   3 +
include/hw/i386/x86.h     |   1 +
linux-headers/linux/kvm.h |   6 ++
hw/core/numa.c            |   6 ++
hw/i386/acpi-build.c      |   4 ++
hw/i386/sgx-epc.c         |   3 +
hw/i386/sgx.c             | 148 +++++++++++++++++++++++++++++++++++---
hw/i386/x86.c             |   4 ++
monitor/hmp-cmds.c        |   1 +
qemu-options.hx           |   4 +-
13 files changed, 222 insertions(+), 18 deletions(-)
[PATCH v2 0/5] SGX NUMA support plus vepc reset
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.

This version also plus the vEPC reset support because the related kernel
patches are almost merged into kernel release, please ref below link:
https://lore.kernel.org/all/20211021201155.1523989-1-pbonzini@redhat.com/

Thanks!

Yang


Changes from V1:
- added documents for new members.(Eric)
- changed the "index" to "node" in struct SGXEPCSection.(Eric, Paolo)
- squashed the previous patch 4 and patch 5 into patch 3.(Paolo)
- added reset patch(patch 5) into this version.


Yang Zhong (5):
  numa: Enable numa for SGX EPC sections
  monitor: Support 'info numa' command
  numa: Support SGX numa in the monitor and Libvirt interfaces
  doc: Add the SGX numa description
  sgx: Reset the vEPC regions during VM reboot

 docs/system/i386/sgx.rst  |  31 ++++++--
 qapi/machine.json         |  10 ++-
 qapi/misc-target.json     |  19 ++++-
 include/hw/i386/sgx-epc.h |   3 +
 include/hw/i386/x86.h     |   1 +
 linux-headers/linux/kvm.h |   6 ++
 hw/core/numa.c            |   6 ++
 hw/i386/acpi-build.c      |   4 ++
 hw/i386/sgx-epc.c         |   3 +
 hw/i386/sgx.c             | 148 +++++++++++++++++++++++++++++++++++---
 hw/i386/x86.c             |   4 ++
 monitor/hmp-cmds.c        |   1 +
 qemu-options.hx           |   4 +-
 13 files changed, 222 insertions(+), 18 deletions(-)