Skip to content

SGX NUMA support plus vepc reset

Yang Zhong qemu-devel 3 versions – Applied

Status from this message: I queued patch 5, and enough of patch 2 to avoid crashing 'info numa'.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 9 repliesApplied
  2. v25 patches 2 repliesSuperseded
  3. v16 patches 10 repliesSuperseded

Changes in v3 from the cover letter

- Updated the reset patch(patch 5), reduced to 2 pass.(Paolo)

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/5numa: Enable numa for SGX EPC sectionshw/i386/acpi-build.c hw/i386/sgx-epc.c hw/i386/sgx.c +4 more+66 -30 replies
2/5monitor: Support 'info numa' commandhw/core/numa.c+6 -00 replies
3/5numa: Support SGX numa in the monitor and Libvirt interfaceshw/i386/sgx.c qapi/misc-target.json+59 -115 replies
4/5doc: Add the SGX numa descriptiondocs/system/i386/sgx.rst+27 -40 replies
5/5sgx: Reset the vEPC regions during VM reboothw/i386/sgx.c hw/i386/x86.c include/hw/i386/x86.h +1 more+53 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.

Read the v3 thread

Cover letter [PATCH v3 0/5] SGX NUMA support plus vepc reset

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 were merged into tip tree master branch, please ref below link:
https://lore.kernel.org/all/[email protected]/
or the tip tree master branch.

Thanks!

Yang

Changes from V2:
- Updated the reset patch(patch 5), reduced to 2 pass.(Paolo)

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             | 137 +++++++++++++++++++++++++++++++++++---
 hw/i386/x86.c             |   4 ++
 monitor/hmp-cmds.c        |   1 +
 qemu-options.hx           |   4 +-
 13 files changed, 211 insertions(+), 18 deletions(-)