From: Bernhard Kaindl <bernhard.kaindl@citrix.com>
To: xen-devel@lists.xenproject.org
Cc: Bernhard Kaindl <bernhard.kaindl@citrix.com>,
Anthony PERARD <anthony.perard@vates.tech>,
"Daniel P. Smith" <dpsmith@apertussolutions.com>
Subject: [PATCH v3 0/2] tools/tests/native: Native test environment for NUMA claim sets
Date: Thu, 21 May 2026 17:08:06 +0100 [thread overview]
Message-ID: <cover.1779379609.git.bernhard.kaindl@citrix.com> (raw)
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
next reply other threads:[~2026-05-21 16:10 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-05-21 16:08 Bernhard Kaindl [this message]
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
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=cover.1779379609.git.bernhard.kaindl@citrix.com \
--to=bernhard.kaindl@citrix.com \
--cc=anthony.perard@vates.tech \
--cc=dpsmith@apertussolutions.com \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.