Skip to content

The HMP/QMP interfaces in Qemu SGX

Yang Zhong qemu-devel 2 versions – Applied

Status from this message: Queued 1-2, thanks.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 16 repliesApplied
  2. v17 patches 14 repliesSuperseded

Changelog from the cover letter

=========
v1-->v2:
- Squashed patch1~patch3 to new patch1(Philippe).
- Removed the bitops definitions patch, and used the MAKE_64BIT_MASK() to handle(Philippe).
- Removed the 'Fix coredump issue in non-x86 platform' patch and new fix in the sgx_get_info()(Paolo).

Patches in v2 Applied

#Subject and filesSizeRepliesApplied
1/3monitor: Add HMP and QMP interfaceshmp-commands-info.hx hw/i386/sgx.c include/hw/i386/sgx.h +4 more+136 -011 replies
2/3qmp: Add the qmp_query_sgx_capabilities()hw/i386/sgx.c include/hw/i386/sgx.h qapi/misc-target.json +2 more+91 -02 replies
3/3pc: Cleanup the SGX definitionsinclude/hw/i386/pc.h+6 -50 replies

Reviews trailers per patch

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

Read the v2 thread

Cover letter [PATCH v2 0/3] The HMP/QMP interfaces in Qemu SGX

This patchset supply HMP/QMP interfaces to monitor and Libvirt, with those interfaces, we can check the SGX info from VM side or check host SGX capabilities from Libvirt side.

This patchset is splitted from below link(from patch26 to patch30):
https://patchew.org/QEMU/[email protected]/

The rest patches are being pulled by Paolo's below link and this new patchset is based on it.
https://gitlab.com/bonzini/qemu.git tags/for-upstream

Changelog:
=========
v1-->v2:
- Squashed patch1~patch3 to new patch1(Philippe).
- Removed the bitops definitions patch, and used the MAKE_64BIT_MASK() to handle(Philippe).
- Removed the 'Fix coredump issue in non-x86 platform' patch and new fix in the sgx_get_info()(Paolo).

Qemu SGX-->v1:
patch1~patch5:
- Moved HMP/QMP from ./monitor to target/i386/monitor.c(Paolo)
- Added one include/hw/i386/sgx.h to include APIs to avoid "TARGET_XXXX" poisoned issue in the ./qapi/qapi-types-misc-target.h.
- Removed the stubs/sgx-stubs file for non-X86 build issues.
- Moved the jason definitions from qapi/misc.jason to qapi/misc-target.json, and

    Changed version 6.1 to 6.2.

patch 6:
- This new patch to fix coredump issue in non-x86 platform.
patch 7:
- Pure cleanup patch, the issue was caused by cherry-pick tool.

Yang Zhong (3):
monitor: Add HMP and QMP interfaces
qmp: Add the qmp_query_sgx_capabilities()
pc: Cleanup the SGX definitions

 hmp-commands-info.hx         | 15 ++++++
 hw/i386/sgx.c                | 95 ++++++++++++++++++++++++++++++++++++
 include/hw/i386/pc.h         | 11 +++--
 include/hw/i386/sgx.h        | 12 +++++
 include/monitor/hmp-target.h |  1 +
 qapi/misc-target.json        | 61 +++++++++++++++++++++++
 target/i386/monitor.c        | 41 ++++++++++++++++
 tests/qtest/qmp-cmd-test.c   |  2 +
 8 files changed, 233 insertions(+), 5 deletions(-)
 create mode 100644 include/hw/i386/sgx.h