tools/tests/native: Native test environment for NUMA claim sets
Get series with b4
b4 am [email protected]Versions newest first
- v3 Latest2 patches 0 repliesNew
Changes in v3 from the cover letter
- Replaced shims that mimicked sched.h and mm.h with the real Xen headers
- Updated and extended the tests for the NUMA claims v7 series
- Changed test calls to use DOMCTL, XENMEM and SYSCTL APIs in xc_domain.c
Patches in v3 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | tests/native: Add native Xen test environmenttools/ tools/ tools/ +16 more | +2805 | 0 replies | |
| 2/2 | tests/native: Add native tests for NUMA claim setstools/ tools/ | +478 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v3 yet.
Cover letter [PATCH v3 0/2] tools/tests/native: Native test environment for NUMA claim sets
Dear reviewers,
This patch series introduces a native test environment for Xen, currently focused on the hypercall API and exercising the page allocator APIs in native test programs. The available APIs are:
- The DOMCTL APIs in xc_domain.c, e.g. xc_domain_claim_memory().
- The XENMEM APIs in xc_domain.c, e.g. xc_domain_claim_pages().
- The SYSCTL APIs in xc_domain.c, e.g. xc_availheap().
Where needed, test cases can call Xen functions directly, and can check the heap state e.g. to check consistency. Any issues can be investigated directly without rebooting a Xen instance.
The second patch adds regression tests for the NUMA claim sets v7 series, so this series depends on it.
Please help to review/ack it. It should be eligible for Xen 4.22:
[PATCH v7 0/7] xen/mm: Introduce NUMA-aware claim sets for domains
https://lists.xen.org/archives/html/xen-devel/2026-05/msg00363.html
https://patchwork.kernel.org/project/xen-devel/list/?series=1091810
For local review and test, you can pull and the claims-v7 code and the tests:
$ git pull [email protected]:bernhardkaindl/xen.git claims-native-tests-v3 $ make -C tools/tests/native test cross=y # see tools/tests/native/README.rst
Thanks,
Bernhard Kaindl
Changes since v2:
- Replaced shims that mimicked sched.h and mm.h with the real Xen headers
- Updated and extended the tests for the NUMA claims v7 series
- Changed test calls to use DOMCTL, XENMEM and SYSCTL APIs in xc_domain.c
Bernhard Kaindl (2):
tests/native: Add native Xen test environment tests/native: Add native tests for NUMA claim sets
tools/tests/Makefile | 1 + tools/tests/native/.gitignore | 4 + tools/tests/native/Makefile | 206 +++++++++++ tools/tests/native/README.rst | 166 +++++++++ tools/tests/native/harness/common.h | 280 +++++++++++++++ tools/tests/native/harness/domctl-shim.h | 228 ++++++++++++ tools/tests/native/harness/domctl-wrapper.h | 28 ++ tools/tests/native/harness/memory-shim.h | 201 +++++++++++ tools/tests/native/harness/memory-wrapper.h | 42 +++ tools/tests/native/harness/mm-wrapper.h | 118 +++++++ tools/tests/native/harness/native.h | 81 +++++ tools/tests/native/harness/page-alloc-env.h | 254 ++++++++++++++ tools/tests/native/harness/page-alloc-shim.h | 328 ++++++++++++++++++ tools/tests/native/harness/sysctl-shim.h | 155 +++++++++ tools/tests/native/harness/sysctl-wrapper.h | 38 ++ tools/tests/native/harness/testcase-asserts.h | 310 +++++++++++++++++ tools/tests/native/harness/xc-domain-env.h | 77 ++++ tools/tests/native/harness/xen-macros.h | 118 +++++++ tools/tests/native/harness/xenctrl-shim.h | 170 +++++++++ tools/tests/native/host-claims.c | 248 +++++++++++++ tools/tests/native/node-claims.c | 230 ++++++++++++ 21 files changed, 3283 insertions(+) create mode 100644 tools/tests/native/.gitignore create mode 100644 tools/tests/native/Makefile create mode 100644 tools/tests/native/README.rst create mode 100644 tools/tests/native/harness/common.h create mode 100644 tools/tests/native/harness/domctl-shim.h create mode 100644 tools/tests/native/harness/domctl-wrapper.h create mode 100644 tools/tests/native/harness/memory-shim.h create mode 100644 tools/tests/native/harness/memory-wrapper.h create mode 100644 tools/tests/native/harness/mm-wrapper.h create mode 100644 tools/tests/native/harness/native.h create mode 100644 tools/tests/native/harness/page-alloc-env.h create mode 100644 tools/tests/native/harness/page-alloc-shim.h create mode 100644 tools/tests/native/harness/sysctl-shim.h create mode 100644 tools/tests/native/harness/sysctl-wrapper.h create mode 100644 tools/tests/native/harness/testcase-asserts.h create mode 100644 tools/tests/native/harness/xc-domain-env.h create mode 100644 tools/tests/native/harness/xen-macros.h create mode 100644 tools/tests/native/harness/xenctrl-shim.h create mode 100644 tools/tests/native/host-claims.c create mode 100644 tools/tests/native/node-claims.c
Signature · 1 line
2.39.5