All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/2] tools/tests/native: Native test environment for NUMA claim sets
@ 2026-05-21 16:08 Bernhard Kaindl
  2026-05-21 16:08 ` [PATCH v3 1/2] tests/native: Add native Xen test environment Bernhard Kaindl
  2026-05-21 16:08 ` [PATCH v3 2/2] tests/native: Add native tests for NUMA claim sets Bernhard Kaindl
  0 siblings, 2 replies; 3+ messages in thread
From: Bernhard Kaindl @ 2026-05-21 16:08 UTC (permalink / raw)
  To: xen-devel; +Cc: Bernhard Kaindl, Anthony PERARD, Daniel P. Smith

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 git@gitlab.com: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

-- 
2.39.5



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-05-21 16:10 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-05-21 16:08 [PATCH v3 0/2] tools/tests/native: Native test environment for NUMA claim sets Bernhard Kaindl
2026-05-21 16:08 ` [PATCH v3 1/2] tests/native: Add native Xen test environment Bernhard Kaindl
2026-05-21 16:08 ` [PATCH v3 2/2] tests/native: Add native tests for NUMA claim sets Bernhard Kaindl

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.