Skip to content

tests/functional/ppc64: add pseries CPU hotplug and security caps tests

Anushree Mathur qemu-devel 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest3 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/3tests/functional/ppc64: add pseries CPU hotplug testtests/functional/ppc64/meson.build tests/functional/ppc64/test_hotplug_cpu.py+185 -00 replies
2/3tests/functional/ppc64: add pseries security caps testtests/functional/ppc64/meson.build tests/functional/ppc64/test_pseries_caps.py+179 -00 replies
3/3MAINTAINERS: add pseries CPU hotplug and caps functional testsMAINTAINERS+2 -00 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [PATCH 0/3] tests/functional/ppc64: add pseries CPU hotplug and security caps tests

This series adds two new functional tests for the pseries (sPAPR/PAPR) machine type:

Patch 1 adds a DLPAR CPU hotplug/unplug test. It boots a minimal buildroot Linux guest with one active core and uses QMP device_add / device_del to attach and detach a second core at runtime, verifying the guest kernel's view via /sys/devices/system/cpu/online. Two variants are provided: TCG (runs on any host) and KVM (ppc64le only, with an explicit kvm-hv module check).

Patch 2 adds a lightweight no-boot capability test suite. Each test starts QEMU halted (-S) and exercises the QMP interface to verify that security capability properties (cap-cfpc, cap-sbbc, cap-ibs, cap-ccf-assist, cap-nested-hv) are accepted, that versioned compat machines (pseries-7.2, pseries-9.2, pseries-10.0) can be instantiated and are correctly marked non-current, and that cap-hpt-max-page-size is reachable via the QOM tree. All tests complete in under 5 seconds and are registered in the quick suite.

Patch 3 registers both new test files in MAINTAINERS under the sPAPR (pseries) section.

Both tests have been run on a ppc64le Power11 LPAR and pass cleanly under both TCG and KVM.

GitLab CI pipeline (check-dco, check-patch, build-system-* pass):
https://gitlab.com/Anushree-Mathur1/qemu/-/pipelines/3003562135

Anushree Mathur (3):
tests/functional/ppc64: add pseries CPU hotplug test tests/functional/ppc64: add pseries security caps test
MAINTAINERS: add pseries CPU hotplug and caps functional tests

 MAINTAINERS                                 |   2 +
 tests/functional/ppc64/meson.build          |   3 +
 tests/functional/ppc64/test_hotplug_cpu.py  | 183 ++++++++++++++++++++
 tests/functional/ppc64/test_pseries_caps.py | 178 +++++++++++++++++++
 4 files changed, 366 insertions(+)
 create mode 100755 tests/functional/ppc64/test_hotplug_cpu.py
 create mode 100755 tests/functional/ppc64/test_pseries_caps.py

base-commit: b574eaf640f02c4edf28cbee6417378f0d79cda0

Signature · 1 line
2.55.0