* [PATCH v1 00/13] CI: updates for XTF jobs
@ 2026-11-05 1:36 dmukhin
2026-11-05 1:36 ` [PATCH v1 01/13] gitignore: exclude QEMU testing artifacts dmukhin
` (12 more replies)
0 siblings, 13 replies; 26+ messages in thread
From: dmukhin @ 2026-11-05 1:36 UTC (permalink / raw)
To: xen-devel
Cc: andrew.cooper3, anthony.perard, jbeulich, julien, michal.orzel,
roger, sstabellini, dmukhin, Denis Mukhin
This series has started as a tooling for SVM AVIC series to allow
running AVIC tests [1] on a real target. The series depends on
the SVM AVIC series, see [2].
The series performs the overhaul of the existing XTF tooling to allow
XTF test suite orchestration on both QEMU and real hardware targets.
It also fixes up the XTF error code reporting and accounting of the
tests, e.g.:
```
Total : 2
CRASH : 0
ERROR : 0
SKIP : 0
FAIL : 0
UNKNOWN : 0
EOF : 0
PASS : 2
TIMEOUT : 0
```
QEMU XTF jobs updates:
- x86 XTF jobs now batch 75 XTFs each at once (~7m for the entire run)
XTF batching eliminates few existing jobs which simplifies the
existing test pipeline.
- Arm XTF job run 2 available tests at once (<1m)
Patch 1 is a housekeeping to avoid committing test artifacts after
local QEMU XTF runs. Turns out to be very convenient to run QEMU XTFs
locally.
Patches 2 and 3 is a non-functional cleanup meant to unify the CI jobs
definitions.
Patch 4 adds per-arch per-compiler XTF builds. This way the XTF test
jobs can skip re-building the XTF world and pull from the artifactory
instead.
Patch 5 updates console.exp to recognize known XTF-reported test
statuses for building fine-grain test reports.
Patch 5 adds binutils to docker containers used by XTF jobs. This is
needed for patch 6.
Patch 6 is a mega-overhaul of the existing qemu-xtf.sh. I kept it bash
for simplicity, but it makes sense to make another pass and switch
(finally) to pytest (see [3] and [4]). I deliberately decided not to
split it into smaller chunks and I __hope__ that would be OK for this
code to be reviewed in such a form, since that is tooling and there's a
public evidence of it being functional. But - sorry in advance, that is
a big change. The example output is here:
https://gitlab.com/xen-project/people/dmukhin/xen/-/jobs/17749986186
Patches 7-12 - enable qubes runners to be used for XTFs. All XTF jobs
runnable on a real hardware are made disabled by default. They can be
selected via CI variables or manually triggered (but still needs
elevated CI privileges). Here I want to thank Marek for providing Zen5
runner and the initial set of Zen5 jobs.
Patch 13 is meant to provide a way to execute the new interrupt-latency
test on AMD x86 runners. Shall not be merged.
[1] XTF branch: https://gitlab.com/xen-project/people/dmukhin/xtf/-/tree/x86_64-ipi-latency?ref_type=heads
[2] Xen AVIC + CI infra branch: https://gitlab.com/xen-project/people/dmukhin/xen/-/tree/svm-avic-v3?ref_type=heads
[3] https://lore.kernel.org/xen-devel/20260922100900.29129-1-anthony@xenproject.org/
[4] https://lore.kernel.org/xen-devel/1793715358.8631fc262581453bbf619ec5b2062170.1a1a1c44b87000403d@vates.tech/
[5] CI: https://gitlab.com/xen-project/people/dmukhin/xen/-/pipelines/3028917985
Denis Mukhin (12):
gitignore: exclude QEMU testing artifacts
CI: unify hypervisor console parametrization
CI: unify naming for hypervisor extra arguments
CI: enable XTF build jobs
CI: enable XTF status codes
CI: enable binutils for alpine and debian containers
CI: rework to allow hardware runners
CI: enable on-demand XTF on qubes runners
CI: enable on-demand IPI latency test on AMD Zen2/Zen3 runners
CI: x86: attempt to fixup flaky tests
CI: add on-demand XTF test jobs on AMD Zen5
CI: do not merge: re-wire XTF repos to custom branches
Marek Marczykowski-Górecki (1):
CI: add test jobs on AMD Zen5
.gitignore | 5 +
.../build/alpine/3.24-arm64v8.dockerfile | 3 +
.../build/alpine/3.24-x86_64.dockerfile | 3 +
automation/build/debian/12-arm64v8.dockerfile | 3 +
automation/build/debian/13-x86_64.dockerfile | 3 +
automation/gitlab-ci/build.yaml | 56 +++
automation/gitlab-ci/test.yaml | 289 ++++++++++---
automation/scripts/.gitignore | 1 +
automation/scripts/console.exp | 25 +-
.../scripts/include/configs/xtf-arm64-config | 2 -
.../scripts/include/configs/xtf-x86_64-config | 0
.../include/configs/xtf-x86_64-efi-config | 0
.../scripts/include/manifests/qemu-x86_64 | 75 ++++
automation/scripts/include/xtf-runner | 138 ------
.../include/{xtf-arm64 => xtf/qemu-arm64} | 13 +-
.../include/{xtf-x86_64 => xtf/qemu-x86_64} | 13 +-
.../{xtf-x86_64-efi => xtf/qemu-x86_64-efi} | 13 +-
automation/scripts/include/xtf/qubes-hw1 | 1 +
automation/scripts/include/xtf/qubes-hw11 | 1 +
automation/scripts/include/xtf/qubes-hw2 | 1 +
automation/scripts/include/xtf/qubes-hw21 | 1 +
automation/scripts/include/xtf/qubes-hw22 | 1 +
automation/scripts/include/xtf/qubes-hw3 | 1 +
automation/scripts/include/xtf/qubes-x86_64 | 54 +++
automation/scripts/qemu-xtf.sh | 28 --
automation/scripts/qubes-x86_64.sh | 4 +-
.../scripts/xilinx-smoke-dom0-x86_64.sh | 2 +-
automation/scripts/xtf | 395 ++++++++++++++++++
28 files changed, 864 insertions(+), 267 deletions(-)
delete mode 100644 automation/scripts/include/configs/xtf-arm64-config
delete mode 100644 automation/scripts/include/configs/xtf-x86_64-config
delete mode 100644 automation/scripts/include/configs/xtf-x86_64-efi-config
create mode 100644 automation/scripts/include/manifests/qemu-x86_64
delete mode 100644 automation/scripts/include/xtf-runner
rename automation/scripts/include/{xtf-arm64 => xtf/qemu-arm64} (79%)
rename automation/scripts/include/{xtf-x86_64 => xtf/qemu-x86_64} (53%)
rename automation/scripts/include/{xtf-x86_64-efi => xtf/qemu-x86_64-efi} (75%)
create mode 120000 automation/scripts/include/xtf/qubes-hw1
create mode 120000 automation/scripts/include/xtf/qubes-hw11
create mode 120000 automation/scripts/include/xtf/qubes-hw2
create mode 120000 automation/scripts/include/xtf/qubes-hw21
create mode 120000 automation/scripts/include/xtf/qubes-hw22
create mode 120000 automation/scripts/include/xtf/qubes-hw3
create mode 100644 automation/scripts/include/xtf/qubes-x86_64
delete mode 100755 automation/scripts/qemu-xtf.sh
create mode 100755 automation/scripts/xtf
--
2.55.0
^ permalink raw reply [flat|nested] 26+ messages in thread
* [PATCH v1 01/13] gitignore: exclude QEMU testing artifacts
2026-11-05 1:36 [PATCH v1 00/13] CI: updates for XTF jobs dmukhin
@ 2026-11-05 1:36 ` dmukhin
2026-12-03 1:45 ` Stefano Stabellini
2026-11-05 1:36 ` [PATCH v1 02/13] CI: unify hypervisor console parametrization dmukhin
` (11 subsequent siblings)
12 siblings, 1 reply; 26+ messages in thread
From: dmukhin @ 2026-11-05 1:36 UTC (permalink / raw)
To: xen-devel
Cc: andrew.cooper3, anthony.perard, jbeulich, julien, michal.orzel,
roger, sstabellini, dmukhin, Denis Mukhin
From: Denis Mukhin <dmukhin@ford.com>
Signed-off-by: Denis Mukhin <dmukhin@ford.com>
---
.gitignore | 5 +++++
automation/scripts/.gitignore | 1 +
2 files changed, 6 insertions(+)
diff --git a/.gitignore b/.gitignore
index 0aa9b801de63..46d14a86da84 100644
--- a/.gitignore
+++ b/.gitignore
@@ -37,6 +37,11 @@ cscope.po.out
.vimrc
.vscode
+# Local QEMU testing
+binaries
+smoke.serial
+xen-config
+
dist
autom4te.cache/
diff --git a/automation/scripts/.gitignore b/automation/scripts/.gitignore
index a01b533c60a8..f5f0c15d2606 100644
--- a/automation/scripts/.gitignore
+++ b/automation/scripts/.gitignore
@@ -3,4 +3,5 @@
/smoke.serial
/xtf-*/
+*.log
*.rom
--
2.55.0
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [PATCH v1 02/13] CI: unify hypervisor console parametrization
2026-11-05 1:36 [PATCH v1 00/13] CI: updates for XTF jobs dmukhin
2026-11-05 1:36 ` [PATCH v1 01/13] gitignore: exclude QEMU testing artifacts dmukhin
@ 2026-11-05 1:36 ` dmukhin
2026-12-03 1:34 ` Stefano Stabellini
2026-11-05 1:36 ` [PATCH v1 03/13] CI: unify naming for hypervisor extra arguments dmukhin
` (10 subsequent siblings)
12 siblings, 1 reply; 26+ messages in thread
From: dmukhin @ 2026-11-05 1:36 UTC (permalink / raw)
To: xen-devel
Cc: andrew.cooper3, anthony.perard, jbeulich, julien, michal.orzel,
roger, sstabellini, dmukhin, Denis Mukhin
From: Denis Mukhin <dmukhin@ford.com>
gitlab CI configuration uses different environment variables for
passing Xen console arguments to the test jobs.
Switch all tests uniformly to 'XEN_CONSOLE=' environment variable.
Not a functional change.
Signed-off-by: Denis Mukhin <dmukhin@ford.com>
---
automation/gitlab-ci/test.yaml | 12 ++++++------
automation/scripts/qubes-x86_64.sh | 4 ++--
automation/scripts/xilinx-smoke-dom0-x86_64.sh | 2 +-
3 files changed, 9 insertions(+), 9 deletions(-)
diff --git a/automation/gitlab-ci/test.yaml b/automation/gitlab-ci/test.yaml
index 96127995d7be..f984c34a922e 100644
--- a/automation/gitlab-ci/test.yaml
+++ b/automation/gitlab-ci/test.yaml
@@ -121,7 +121,7 @@
variables:
CONTAINER: ubuntu:xilinx-hw-runner
LOGFILE: xilinx-smoke-x86_64.log
- XEN_CMD_CONSOLE: "console=com2 com2=57600,8n1,0x2F8,4"
+ XEN_CONSOLE: "console=com2 com2=57600,8n1,0x2F8,4"
TEST_BOARD: "crater"
TEST_TIMEOUT_OVERRIDE: 1000
artifacts:
@@ -144,7 +144,7 @@
LOGFILE: smoke-test.log
PCIDEV: "03:00.0"
PCIDEV_INTR: "MSI-X"
- CONSOLE_OPTS: "console=com1 com1=115200,8n1"
+ XEN_CONSOLE: "console=com1 com1=115200,8n1"
SUT_ADDR: test-2.testnet
artifacts:
paths:
@@ -165,7 +165,7 @@
variables:
PCIDEV: "00:1f.6"
PCIDEV_INTR: "MSI"
- CONSOLE_OPTS: "console=com1 com1=115200,8n1,pci,0"
+ XEN_CONSOLE: "console=com1 com1=115200,8n1,pci,0"
SUT_ADDR: test-3.testnet
tags:
- qubes-hw3
@@ -176,7 +176,7 @@
variables:
PCIDEV: "56:00.0"
PCIDEV_INTR: "MSI-X"
- CONSOLE_OPTS: "console=com1 com1=115200,8n1"
+ XEN_CONSOLE: "console=com1 com1=115200,8n1"
EXTRA_XEN_OPTS: "fred"
SUT_ADDR: test-22.testnet
tags:
@@ -188,7 +188,7 @@
variables:
PCIDEV: "01:00.0"
PCIDEV_INTR: "MSI-X"
- CONSOLE_OPTS: "console=com1 com1=115200,8n1,pci,msi,04:00.0"
+ XEN_CONSOLE: "console=com1 com1=115200,8n1,pci,msi,04:00.0"
SUT_ADDR: test-1.testnet
tags:
- qubes-hw1
@@ -199,7 +199,7 @@
variables:
PCIDEV: "01:00.0"
PCIDEV_INTR: "MSI-X"
- CONSOLE_OPTS: "console=com1 com1=115200,8n1,pci,msi"
+ XEN_CONSOLE: "console=com1 com1=115200,8n1,pci,msi"
SUT_ADDR: test-11.testnet
tags:
- qubes-hw11
diff --git a/automation/scripts/qubes-x86_64.sh b/automation/scripts/qubes-x86_64.sh
index 065f03931bea..73cbdff2be72 100755
--- a/automation/scripts/qubes-x86_64.sh
+++ b/automation/scripts/qubes-x86_64.sh
@@ -260,14 +260,14 @@ TFTP=/scratch/gitlab-runner/tftp
CONTROLLER=control@thor.testnet
echo "
-multiboot2 (http)/gitlab-ci/xen $CONSOLE_OPTS loglvl=all guest_loglvl=all dom0_mem=4G console_timestamps=boot watchdog ${EXTRA_XEN_OPTS-} $extra_xen_opts
+multiboot2 (http)/gitlab-ci/xen $XEN_CONSOLE loglvl=all guest_loglvl=all dom0_mem=4G console_timestamps=boot watchdog ${EXTRA_XEN_OPTS-} $extra_xen_opts
module2 (http)/gitlab-ci/vmlinuz console=hvc0 root=/dev/ram0 earlyprintk=xen
module2 --nounzip (http)/gitlab-ci/initrd-dom0
" > $TFTP/grub.cfg
echo "#!ipxe
-kernel /gitlab-ci/xen $CONSOLE_OPTS loglvl=all guest_loglvl=all dom0_mem=4G console_timestamps=boot watchdog ${EXTRA_XEN_OPTS-} $extra_xen_opts || reboot
+kernel /gitlab-ci/xen $XEN_CONSOLE loglvl=all guest_loglvl=all dom0_mem=4G console_timestamps=boot watchdog ${EXTRA_XEN_OPTS-} $extra_xen_opts || reboot
module /gitlab-ci/vmlinuz console=hvc0 root=/dev/ram0 earlyprintk=xen || reboot
module /gitlab-ci/initrd-dom0 || reboot
boot
diff --git a/automation/scripts/xilinx-smoke-dom0-x86_64.sh b/automation/scripts/xilinx-smoke-dom0-x86_64.sh
index 5379738019a7..0fe96d62534b 100755
--- a/automation/scripts/xilinx-smoke-dom0-x86_64.sh
+++ b/automation/scripts/xilinx-smoke-dom0-x86_64.sh
@@ -146,7 +146,7 @@ cd ..
# Load software into TFTP server directory.
TFTP="/scratch/gitlab-runner/tftp"
-XEN_CMDLINE="${XEN_CMD_CONSOLE} ${XEN_CMD_XEN} ${XEN_CMD_DOM0} ${XEN_CMD_EXTRA}"
+XEN_CMDLINE="${XEN_CONSOLE} ${XEN_CMD_XEN} ${XEN_CMD_DOM0} ${XEN_CMD_EXTRA}"
cp -f binaries/xen ${TFTP}/${TEST_BOARD}/xen
cp -f binaries/bzImage ${TFTP}/${TEST_BOARD}/vmlinuz
cp -f binaries/dom0-rootfs.cpio.gz ${TFTP}/${TEST_BOARD}/initrd-dom0
--
2.55.0
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [PATCH v1 03/13] CI: unify naming for hypervisor extra arguments
2026-11-05 1:36 [PATCH v1 00/13] CI: updates for XTF jobs dmukhin
2026-11-05 1:36 ` [PATCH v1 01/13] gitignore: exclude QEMU testing artifacts dmukhin
2026-11-05 1:36 ` [PATCH v1 02/13] CI: unify hypervisor console parametrization dmukhin
@ 2026-11-05 1:36 ` dmukhin
2026-12-03 1:35 ` Stefano Stabellini
2026-11-05 1:36 ` [PATCH v1 04/13] CI: enable XTF build jobs dmukhin
` (9 subsequent siblings)
12 siblings, 1 reply; 26+ messages in thread
From: dmukhin @ 2026-11-05 1:36 UTC (permalink / raw)
To: xen-devel
Cc: andrew.cooper3, anthony.perard, jbeulich, julien, michal.orzel,
roger, sstabellini, dmukhin, Denis Mukhin
From: Denis Mukhin <dmukhin@ford.com>
Update the name of environment variable used to append an extra
hypervisor arguments to 'EXTRA_XEN_CMDLINE' for consistency
with existing 'XEN_CMDLINE'.
Not a functional change.
Signed-off-by: Denis Mukhin <dmukhin@ford.com>
---
automation/gitlab-ci/test.yaml | 2 +-
automation/scripts/qubes-x86_64.sh | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/automation/gitlab-ci/test.yaml b/automation/gitlab-ci/test.yaml
index f984c34a922e..047c4d513a65 100644
--- a/automation/gitlab-ci/test.yaml
+++ b/automation/gitlab-ci/test.yaml
@@ -177,7 +177,7 @@
PCIDEV: "56:00.0"
PCIDEV_INTR: "MSI-X"
XEN_CONSOLE: "console=com1 com1=115200,8n1"
- EXTRA_XEN_OPTS: "fred"
+ EXTRA_XEN_CMDLINE: "fred"
SUT_ADDR: test-22.testnet
tags:
- qubes-hw22
diff --git a/automation/scripts/qubes-x86_64.sh b/automation/scripts/qubes-x86_64.sh
index 73cbdff2be72..580a1e86f1ef 100755
--- a/automation/scripts/qubes-x86_64.sh
+++ b/automation/scripts/qubes-x86_64.sh
@@ -260,14 +260,14 @@ TFTP=/scratch/gitlab-runner/tftp
CONTROLLER=control@thor.testnet
echo "
-multiboot2 (http)/gitlab-ci/xen $XEN_CONSOLE loglvl=all guest_loglvl=all dom0_mem=4G console_timestamps=boot watchdog ${EXTRA_XEN_OPTS-} $extra_xen_opts
+multiboot2 (http)/gitlab-ci/xen $XEN_CONSOLE loglvl=all guest_loglvl=all dom0_mem=4G console_timestamps=boot watchdog ${EXTRA_XEN_CMDLINE-} $extra_xen_opts
module2 (http)/gitlab-ci/vmlinuz console=hvc0 root=/dev/ram0 earlyprintk=xen
module2 --nounzip (http)/gitlab-ci/initrd-dom0
" > $TFTP/grub.cfg
echo "#!ipxe
-kernel /gitlab-ci/xen $XEN_CONSOLE loglvl=all guest_loglvl=all dom0_mem=4G console_timestamps=boot watchdog ${EXTRA_XEN_OPTS-} $extra_xen_opts || reboot
+kernel /gitlab-ci/xen $XEN_CONSOLE loglvl=all guest_loglvl=all dom0_mem=4G console_timestamps=boot watchdog ${EXTRA_XEN_CMDLINE-} $extra_xen_opts || reboot
module /gitlab-ci/vmlinuz console=hvc0 root=/dev/ram0 earlyprintk=xen || reboot
module /gitlab-ci/initrd-dom0 || reboot
boot
--
2.55.0
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [PATCH v1 04/13] CI: enable XTF build jobs
2026-11-05 1:36 [PATCH v1 00/13] CI: updates for XTF jobs dmukhin
` (2 preceding siblings ...)
2026-11-05 1:36 ` [PATCH v1 03/13] CI: unify naming for hypervisor extra arguments dmukhin
@ 2026-11-05 1:36 ` dmukhin
2026-12-03 1:44 ` Stefano Stabellini
2026-11-05 1:36 ` [PATCH v1 05/13] CI: enable XTF status codes dmukhin
` (8 subsequent siblings)
12 siblings, 1 reply; 26+ messages in thread
From: dmukhin @ 2026-11-05 1:36 UTC (permalink / raw)
To: xen-devel
Cc: andrew.cooper3, anthony.perard, jbeulich, julien, michal.orzel,
roger, sstabellini, dmukhin, Denis Mukhin
From: Denis Mukhin <dmukhin@ford.com>
Build and publish XTF binaries to be consumed by test jobs.
Signed-off-by: Denis Mukhin <dmukhin@ford.com>
---
automation/gitlab-ci/build.yaml | 56 +++++++++++++++++++++++++++++++++
1 file changed, 56 insertions(+)
diff --git a/automation/gitlab-ci/build.yaml b/automation/gitlab-ci/build.yaml
index 3d37e0b572d0..1f6228ba74ff 100644
--- a/automation/gitlab-ci/build.yaml
+++ b/automation/gitlab-ci/build.yaml
@@ -288,6 +288,7 @@ alpine-3.24-x86_64-gcc-debug:
CONFIG_ARGO=y
CONFIG_UBSAN=y
CONFIG_UBSAN_FATAL=y
+ CONFIG_SHADOW_PAGING=y
CONFIG_MICROCODE_SCAN_DEFAULT=y
CONFIG_XHCI=y
@@ -297,6 +298,9 @@ debian-13-x86_64-gcc-debug:
variables:
CONTAINER: debian:13-x86_64
EXTRA_XEN_CONFIG: |
+ CONFIG_EXPERT=y
+ CONFIG_UNSUPPORTED=y
+ CONFIG_ARGO=y
CONFIG_SHADOW_PAGING=y
debian-13-x86_64-clang-debug:
@@ -305,6 +309,9 @@ debian-13-x86_64-clang-debug:
variables:
CONTAINER: debian:13-x86_64
EXTRA_XEN_CONFIG: |
+ CONFIG_EXPERT=y
+ CONFIG_UNSUPPORTED=y
+ CONFIG_ARGO=y
CONFIG_SHADOW_PAGING=y
debian-13-ppc64le-gcc-debug:
@@ -840,3 +847,52 @@ macos-26-arm64:
variables:
XEN_TARGET_ARCH: arm64
CROSS_COMPILE: aarch64-elf-
+
+.xtf-common:
+ variables:
+ BUILD_QEMU_XEN: y
+ script:
+ - git clone ${XTF_URI} xtf-${ARCH} -b ${XTF_BRANCH}
+ - make -C xtf-${ARCH} -j$(nproc) ${XTF_CONFIG}
+ - DESTDIR=$(pwd) xtfdir=/binaries make -C xtf-${ARCH} ${XTF_CONFIG} install
+ artifacts:
+ paths:
+ - binaries/*
+
+xtf-arm64-gcc-debug:
+ extends:
+ - .gcc-arm64-build-debug
+ - .xtf-common
+ <<: *build-test
+ variables:
+ CONTAINER: alpine:3.24-arm64v8
+ ARCH: arm64
+ XTF_URI: https://gitlab.com/xen-project/fusa/xtf.git
+ XTF_BRANCH: xtf-arm
+ XTF_CONFIG: |
+ CONFIG_GICV2=y
+ CONFIG_SBSA_UART=y
+
+xtf-x86_64-gcc-debug:
+ extends:
+ - .gcc-x86_64-build-debug
+ - .xtf-common
+ <<: *build-test
+ variables:
+ CONTAINER: alpine:3.24-x86_64
+ ARCH: x86_64
+ XTF_URI: https://xenbits.xen.org/git-http/xtf.git
+ XTF_BRANCH: master
+ XTF_CONFIG:
+
+xtf-x86_64-clang-debug:
+ extends:
+ - .clang-x86_64-build-debug
+ - .xtf-common
+ <<: *build-test
+ variables:
+ CONTAINER: debian:13-x86_64
+ ARCH: x86_64
+ XTF_URI: https://xenbits.xen.org/git-http/xtf.git
+ XTF_BRANCH: master
+ XTF_CONFIG:
--
2.55.0
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [PATCH v1 05/13] CI: enable XTF status codes
2026-11-05 1:36 [PATCH v1 00/13] CI: updates for XTF jobs dmukhin
` (3 preceding siblings ...)
2026-11-05 1:36 ` [PATCH v1 04/13] CI: enable XTF build jobs dmukhin
@ 2026-11-05 1:36 ` dmukhin
2026-12-03 1:58 ` Stefano Stabellini
2026-11-05 1:36 ` [PATCH v1 06/13] CI: enable binutils for alpine and debian containers dmukhin
` (7 subsequent siblings)
12 siblings, 1 reply; 26+ messages in thread
From: dmukhin @ 2026-11-05 1:36 UTC (permalink / raw)
To: xen-devel
Cc: andrew.cooper3, anthony.perard, jbeulich, julien, michal.orzel,
roger, sstabellini, dmukhin, Denis Mukhin
From: Denis Mukhin <dmukhin@ford.com>
Enable XTF status code parsing detection similarly to python
'xtf-runner' script (XTF repo) to allow fine-grained test report.
Signed-off-by: Denis Mukhin <dmukhin@ford.com>
---
automation/scripts/console.exp | 25 ++++++++++++++++++++-----
1 file changed, 20 insertions(+), 5 deletions(-)
diff --git a/automation/scripts/console.exp b/automation/scripts/console.exp
index e27886bbef23..55373f86e673 100755
--- a/automation/scripts/console.exp
+++ b/automation/scripts/console.exp
@@ -14,8 +14,9 @@
# - WAKEUP_CMD (optional): command to execute to wakeup the system 30s after
# seeing SUSPEND_MSG
# - LOG_MSG (optional): final console message to wait for
-# - PASSED: message to look for to consider test a success; if LOG_MSG is set,
+# - PASSED (optional): message to look for to consider test a success; if LOG_MSG is set,
# both LOG_MSG and PASSED must appear (in any order) for test to succeed
+# - TEST_XTF (optional): distinguish XTF error codes
if {[info exists env(TEST_TIMEOUT_OVERRIDE)]} {
set timeout $env(TEST_TIMEOUT_OVERRIDE)
@@ -31,12 +32,24 @@ match_max 10000
eval spawn $env(TEST_CMD)
+if {[info exists env(TEST_XTF)]} {
+ expect_before {
+ -re {Test result: SUCCESS} { exit 0 }
+ -re {ERROR-EOF} { exit 2 }
+ -re {Test result: SKIP} { exit 3 }
+ -re {Neither HAP nor Shadow available} { exit 3 }
+ -re {Test result: ERROR} { exit 4 }
+ -re {Test result: FAILURE} { exit 5 }
+ -re { crashed } { exit 6 }
+ }
+}
+
expect_after {
-re "(.*)\r" {
exp_continue -continue_timer
}
timeout {send_error "\nERROR-Timeout!\n"; exit 1}
- eof {send_error "\nERROR-EOF!\n"; exit 1}
+ eof {send_error "\nERROR-EOF!\n"; exit 2}
}
if {[info exists env(UBOOT_CMD)]} {
@@ -71,9 +84,11 @@ if {[info exists env(LOG_MSG)]} {
}
}
-expect {
- -re "$env(PASSED)" {
- exit 0
+if {[info exists env(PASSED)]} {
+ expect {
+ -re "$env(PASSED)" {
+ exit 0
+ }
}
}
--
2.55.0
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [PATCH v1 06/13] CI: enable binutils for alpine and debian containers
2026-11-05 1:36 [PATCH v1 00/13] CI: updates for XTF jobs dmukhin
` (4 preceding siblings ...)
2026-11-05 1:36 ` [PATCH v1 05/13] CI: enable XTF status codes dmukhin
@ 2026-11-05 1:36 ` dmukhin
2026-12-03 2:01 ` Stefano Stabellini
2026-11-05 1:36 ` [PATCH v1 07/13] CI: rework to allow hardware runners dmukhin
` (6 subsequent siblings)
12 siblings, 1 reply; 26+ messages in thread
From: dmukhin @ 2026-11-05 1:36 UTC (permalink / raw)
To: xen-devel
Cc: andrew.cooper3, anthony.perard, jbeulich, julien, michal.orzel,
roger, sstabellini, dmukhin, Denis Mukhin
From: Denis Mukhin <dmukhin@ford.com>
Enable binutils for the docker images used for test runners
(e.g. 'readelf' may be useful for inspecting build artifacts).
Signed-off-by: Denis Mukhin <dmukhin@ford.com>
---
automation/build/alpine/3.24-arm64v8.dockerfile | 3 +++
automation/build/alpine/3.24-x86_64.dockerfile | 3 +++
automation/build/debian/12-arm64v8.dockerfile | 3 +++
automation/build/debian/13-x86_64.dockerfile | 3 +++
4 files changed, 12 insertions(+)
diff --git a/automation/build/alpine/3.24-arm64v8.dockerfile b/automation/build/alpine/3.24-arm64v8.dockerfile
index 5b28d874efae..7952005141fc 100644
--- a/automation/build/alpine/3.24-arm64v8.dockerfile
+++ b/automation/build/alpine/3.24-arm64v8.dockerfile
@@ -44,6 +44,9 @@ RUN <<EOF
# Ocaml bindings/oxenstored
ocaml
ocaml-findlib
+
+ # XTF
+ binutils
)
apk add --no-cache "${DEPS[@]}"
diff --git a/automation/build/alpine/3.24-x86_64.dockerfile b/automation/build/alpine/3.24-x86_64.dockerfile
index f93158e0186d..e7bb73b05044 100644
--- a/automation/build/alpine/3.24-x86_64.dockerfile
+++ b/automation/build/alpine/3.24-x86_64.dockerfile
@@ -56,6 +56,9 @@ RUN <<EOF
# livepatch-tools deps
elfutils-dev
+
+ # XTF
+ binutils
)
apk add --no-cache "${DEPS[@]}"
diff --git a/automation/build/debian/12-arm64v8.dockerfile b/automation/build/debian/12-arm64v8.dockerfile
index 5cc4de822cc6..6003a8eef0c6 100644
--- a/automation/build/debian/12-arm64v8.dockerfile
+++ b/automation/build/debian/12-arm64v8.dockerfile
@@ -58,6 +58,9 @@ RUN <<EOF
ovmf
u-boot-qemu
u-boot-tools
+
+ # XTF
+ binutils
)
apt-get -y --no-install-recommends install "${DEPS[@]}"
diff --git a/automation/build/debian/13-x86_64.dockerfile b/automation/build/debian/13-x86_64.dockerfile
index 784299d52dc3..f11085685a37 100644
--- a/automation/build/debian/13-x86_64.dockerfile
+++ b/automation/build/debian/13-x86_64.dockerfile
@@ -62,6 +62,9 @@ RUN <<EOF
# for build-each-commit-gcc
ccache
+
+ # XTF
+ binutils
)
apt-get -y --no-install-recommends install "${DEPS[@]}"
--
2.55.0
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [PATCH v1 07/13] CI: rework to allow hardware runners
2026-11-05 1:36 [PATCH v1 00/13] CI: updates for XTF jobs dmukhin
` (5 preceding siblings ...)
2026-11-05 1:36 ` [PATCH v1 06/13] CI: enable binutils for alpine and debian containers dmukhin
@ 2026-11-05 1:36 ` dmukhin
2026-12-03 2:18 ` Stefano Stabellini
2026-11-05 1:36 ` [PATCH v1 08/13] CI: enable on-demand XTF on qubes runners dmukhin
` (5 subsequent siblings)
12 siblings, 1 reply; 26+ messages in thread
From: dmukhin @ 2026-11-05 1:36 UTC (permalink / raw)
To: xen-devel
Cc: andrew.cooper3, anthony.perard, jbeulich, julien, michal.orzel,
roger, sstabellini, dmukhin, Denis Mukhin
From: Denis Mukhin <dmukhin@ford.com>
Rework current bash tooling to simplify its use for local testing
and CI integration.
Allow batching multiple tests in one run.
The batching rules are:
- Use 'SELECTED_GROUP_ONLY' for running only XTF group of jobs.
If unset, run all XTF jobs.
- Use file passed in 'XTF_MANIFEST' to select a group of tests to
run. If unset, run all known tests.
- Use regex in 'SELECTED_XTF_ONLY' environment variable to select
a group of XTF tests. If unset, run all tests.
Correctly resolve individual XTF test statuses returned from
console.exp for pretty accounting.
Include per-test title in the output.
Rely on per-XTF 'info.json' for assembling per-test Xen command line.
Prefix all per-arch XTF QEMU configuration fragments with "qemu-"
prefix and move them under 'xtf' directory. While here, rename
qemu-xtf.sh to xtf.sh since the code is now generic, not QEMU
specific.
Update all affected QEMU XTF jobs.
Signed-off-by: Denis Mukhin <dmukhin@ford.com>
---
That may clash with
https://lore.kernel.org/xen-devel/20260922100900.29129-1-anthony@xenproject.org/
and
https://lore.kernel.org/xen-devel/1793715358.8631fc262581453bbf619ec5b2062170.1a1a1c44b87000403d@vates.tech
My take - pytests is the way to go, but I had to unblock myself
with running some AVIC testing, so ended up with existing bash
infra cleanup.
---
automation/gitlab-ci/test.yaml | 165 +++++---
.../scripts/include/configs/xtf-arm64-config | 2 -
.../scripts/include/configs/xtf-x86_64-config | 0
.../include/configs/xtf-x86_64-efi-config | 0
.../scripts/include/manifests/qemu-x86_64 | 75 ++++
automation/scripts/include/xtf-runner | 138 ------
.../include/{xtf-arm64 => xtf/qemu-arm64} | 13 +-
.../include/{xtf-x86_64 => xtf/qemu-x86_64} | 13 +-
.../{xtf-x86_64-efi => xtf/qemu-x86_64-efi} | 13 +-
automation/scripts/qemu-xtf.sh | 28 --
automation/scripts/xtf | 395 ++++++++++++++++++
11 files changed, 590 insertions(+), 252 deletions(-)
delete mode 100644 automation/scripts/include/configs/xtf-arm64-config
delete mode 100644 automation/scripts/include/configs/xtf-x86_64-config
delete mode 100644 automation/scripts/include/configs/xtf-x86_64-efi-config
create mode 100644 automation/scripts/include/manifests/qemu-x86_64
delete mode 100644 automation/scripts/include/xtf-runner
rename automation/scripts/include/{xtf-arm64 => xtf/qemu-arm64} (79%)
rename automation/scripts/include/{xtf-x86_64 => xtf/qemu-x86_64} (53%)
rename automation/scripts/include/{xtf-x86_64-efi => xtf/qemu-x86_64-efi} (75%)
delete mode 100755 automation/scripts/qemu-xtf.sh
create mode 100755 automation/scripts/xtf
diff --git a/automation/gitlab-ci/test.yaml b/automation/gitlab-ci/test.yaml
index 047c4d513a65..9ca93842dfe7 100644
--- a/automation/gitlab-ci/test.yaml
+++ b/automation/gitlab-ci/test.yaml
@@ -5,6 +5,31 @@
- if: $CI_JOB_NAME =~ $SELECTED_JOBS_ONLY
when: on_success
+.test-jobs-group:
+ extends:
+ - .test-jobs-common
+ rules:
+ - if: '$CI_JOB_NAME =~ $SELECTED_JOBS_ONLY && $SELECTED_GROUP_ONLY =~ /(^|,)(all|[*])(,|$)/'
+ when: on_success
+ - if: '$CI_JOB_NAME =~ $SELECTED_JOBS_ONLY && $SELECTED_GROUP_ONLY =~ $GROUP_REGEX'
+ when: on_success
+ - if: '$CI_JOB_NAME =~ $SELECTED_JOBS_ONLY'
+ when: manual
+ allow_failure: true
+ - when: never
+
+.test-jobs-perf:
+ extends:
+ - .test-jobs-group
+ variables:
+ GROUP_REGEX: '/(^|,)perf(,|$)/'
+
+.test-jobs-hardware-xtf:
+ extends:
+ - .test-jobs-group
+ variables:
+ GROUP_REGEX: '/(^|,)xtf(,|$)/'
+
.arm64-test-needs: &arm64-test-needs
- project: $ARTIFACTS_REPO
job: $LINUX_JOB_ARM64
@@ -27,11 +52,44 @@
job: microcode-x86
ref: $ARTIFACTS_BRANCH
+.xtf-arm64-gcc-debug:
+ variables:
+ ARCH: arm64
+ script:
+ - time ./automation/scripts/xtf 2>&1 | tee ${LOGFILE}
+ artifacts:
+ paths:
+ - '*.log'
+ when: always
+ needs:
+ - *arm64-test-needs
+ - alpine-3.24-arm64-gcc-debug
+ - xtf-arm64-gcc-debug
+
+.xtf-x86_64-gcc-debug:
+ variables:
+ ARCH: x86_64
+ script:
+ - |
+ if [[ "${CONTAINER}" != "debian:13-x86_64" ]]; then
+ apk add --no-cache binutils
+ fi
+ - time ./automation/scripts/xtf 2>&1 | tee ${LOGFILE}
+ artifacts:
+ paths:
+ - '*.log'
+ when: always
+ needs:
+ - *x86_64-test-needs
+ - alpine-3.24-x86_64-gcc-debug
+ - xtf-x86_64-gcc-debug
+
.qemu-arm64:
extends: .test-jobs-common
variables:
CONTAINER: debian:13-arm64v8
LOGFILE: qemu-smoke-arm64.log
+ XTF_TARGET: qemu-arm64
artifacts:
paths:
- smoke.serial
@@ -58,6 +116,7 @@
variables:
CONTAINER: debian:13-x86_64
LOGFILE: qemu-smoke-x86_64.log
+ XTF_TARGET: qemu-x86_64
artifacts:
paths:
- smoke.serial
@@ -66,11 +125,6 @@
tags:
- x86_64
-.qemu-smoke-x86_64:
- extends: .qemu-x86_64
- variables:
- TEST_TIMEOUT_OVERRIDE: 120
-
.qemu-riscv64:
extends: .test-jobs-common
variables:
@@ -503,6 +557,12 @@ zen2-suspend-x86_64-gcc-debug:
- *x86_64-test-needs
- alpine-3.24-x86_64-gcc-debug
+zen2-xtf-x86_64-gcc-debug:
+ extends:
+ - .zen2-x86_64
+ - .xtf-x86_64-gcc-debug
+ - .test-jobs-hardware-xtf
+
zen3p-smoke-x86_64-gcc-debug:
extends: .zen3p-x86_64
script:
@@ -565,6 +625,12 @@ zen3p-tools-tests-pvh-x86_64-gcc-debug:
- *x86_64-test-needs
- alpine-3.24-x86_64-gcc-debug
+zen3p-xtf-x86_64-gcc-debug:
+ extends:
+ - .zen3p-x86_64
+ - .xtf-x86_64-gcc-debug
+ - .test-jobs-hardware-xtf
+
qemu-smoke-dom0-arm64-gcc:
extends: .qemu-arm64
script:
@@ -653,21 +719,13 @@ qemu-smoke-dom0less-arm64-gcc-debug-earlyprintk:
- *arm64-test-needs
- alpine-3.24-arm64-gcc-debug-earlyprintk
-qemu-xtf-dom0less-arm64-gcc-hyp-xen-version:
- extends: .qemu-arm64
- script:
- - ./automation/scripts/qemu-xtf.sh arm64 mmu64le hyp-xen-version 2>&1 | tee ${LOGFILE}
- needs:
- - *arm64-test-needs
- - alpine-3.24-arm64-gcc
-
-qemu-xtf-dom0less-arm64-gcc-debug-hyp-xen-version:
- extends: .qemu-arm64
- script:
- - ./automation/scripts/qemu-xtf.sh arm64 mmu64le hyp-xen-version 2>&1 | tee ${LOGFILE}
- needs:
- - *arm64-test-needs
- - alpine-3.24-arm64-gcc-debug
+qemu-xtf-arm64-gcc-debug:
+ extends:
+ - .qemu-arm64
+ - .test-jobs-common
+ - .xtf-arm64-gcc-debug
+ variables:
+ TEST_TIMEOUT_OVERRIDE: 10
qemu-smoke-dom0-arm32-gcc:
extends: .qemu-arm32
@@ -741,49 +799,36 @@ qemu-alpine-x86_64-gcc:
- *x86_64-test-needs
- alpine-3.24-x86_64-gcc
-qemu-smoke-x86_64-gcc:
- extends: .qemu-smoke-x86_64
- script:
- - ./automation/scripts/qemu-xtf.sh x86_64 pv64 example 2>&1 | tee ${LOGFILE}
- needs:
- - debian-13-x86_64-gcc-debug
-
-qemu-smoke-x86_64-clang:
- extends: .qemu-smoke-x86_64
- script:
- - ./automation/scripts/qemu-xtf.sh x86_64 pv64 example 2>&1 | tee ${LOGFILE}
- needs:
- - debian-13-x86_64-clang-debug
-
-qemu-smoke-x86_64-gcc-pvh:
- extends: .qemu-smoke-x86_64
- script:
- - ./automation/scripts/qemu-xtf.sh x86_64 hvm64 example 2>&1 | tee ${LOGFILE}
- needs:
- - debian-13-x86_64-gcc-debug
-
-qemu-smoke-x86_64-clang-pvh:
- extends: .qemu-smoke-x86_64
- script:
- - ./automation/scripts/qemu-xtf.sh x86_64 hvm64 example 2>&1 | tee ${LOGFILE}
- needs:
- - debian-13-x86_64-clang-debug
-
-qemu-smoke-x86_64-gcc-efi:
- extends: .qemu-smoke-x86_64
- script:
- - ./automation/scripts/qemu-xtf.sh x86_64-efi pv64 example 2>&1 | tee ${LOGFILE}
- needs:
- - debian-13-x86_64-gcc-debug
-
-qemu-xtf-argo-x86_64-gcc-debug:
- extends: .qemu-smoke-x86_64
+qemu-xtf-x86_64-gcc-debug:
+ extends:
+ - .qemu-x86_64
+ - .test-jobs-common
+ - .xtf-x86_64-gcc-debug
variables:
- TEST_TIMEOUT_OVERRIDE: 60
+ TEST_TIMEOUT_OVERRIDE: 10
+ XTF_MANIFEST: include/manifests/qemu-x86_64
+
+qemu-xtf-x86_64-efi-gcc-debug:
+ extends: qemu-xtf-x86_64-gcc-debug
+ variables:
+ XTF_TARGET: qemu-x86_64-efi
+
+qemu-xtf-x86_64-clang-debug:
+ extends: .qemu-x86_64
+ variables:
+ ARCH: x86_64
+ TEST_TIMEOUT_OVERRIDE: 10
+ XTF_MANIFEST: include/manifests/qemu-x86_64
script:
- - ./automation/scripts/qemu-xtf.sh x86_64 pv64 argo 2>&1 | tee ${LOGFILE}
+ - time ./automation/scripts/xtf 2>&1 | tee ${LOGFILE}
+ artifacts:
+ paths:
+ - '*.log'
+ when: always
needs:
- - alpine-3.24-x86_64-gcc-debug
+ - *x86_64-test-needs
+ - debian-13-x86_64-clang-debug
+ - xtf-x86_64-clang-debug
qemu-smoke-riscv64-gcc:
extends: .qemu-riscv64
diff --git a/automation/scripts/include/configs/xtf-arm64-config b/automation/scripts/include/configs/xtf-arm64-config
deleted file mode 100644
index 99427409276d..000000000000
--- a/automation/scripts/include/configs/xtf-arm64-config
+++ /dev/null
@@ -1,2 +0,0 @@
-CONFIG_GICV2=y
-CONFIG_SBSA_UART=y
diff --git a/automation/scripts/include/configs/xtf-x86_64-config b/automation/scripts/include/configs/xtf-x86_64-config
deleted file mode 100644
index e69de29bb2d1..000000000000
diff --git a/automation/scripts/include/configs/xtf-x86_64-efi-config b/automation/scripts/include/configs/xtf-x86_64-efi-config
deleted file mode 100644
index e69de29bb2d1..000000000000
diff --git a/automation/scripts/include/manifests/qemu-x86_64 b/automation/scripts/include/manifests/qemu-x86_64
new file mode 100644
index 000000000000..82b40deb94e5
--- /dev/null
+++ b/automation/scripts/include/manifests/qemu-x86_64
@@ -0,0 +1,75 @@
+test-hvm32-argo
+test-hvm32-cpuid
+test-hvm32-debug-regs
+test-hvm32-example
+test-hvm32-invlpg
+test-hvm32-lm-ts
+test-hvm32-selftest
+test-hvm32-xsa-122
+test-hvm32-xsa-188
+test-hvm32-xsa-239
+test-hvm32-xsa-317
+test-hvm32pae-argo
+test-hvm32pae-cpuid
+test-hvm32pae-debug-regs
+test-hvm32pae-example
+test-hvm32pae-invlpg
+test-hvm32pae-selftest
+test-hvm32pae-xsa-122
+test-hvm32pae-xsa-188
+test-hvm32pae-xsa-317
+test-hvm32pse-argo
+test-hvm32pse-cpuid
+test-hvm32pse-debug-regs
+test-hvm32pse-example
+test-hvm32pse-selftest
+test-hvm32pse-xsa-122
+test-hvm32pse-xsa-188
+test-hvm32pse-xsa-317
+test-hvm64-argo
+test-hvm64-cpuid
+test-hvm64-debug-regs
+test-hvm64-example
+test-hvm64-invlpg
+test-hvm64-lbr-tsx-vmentry
+test-hvm64-lm-ts
+test-hvm64-rtm-check
+test-hvm64-selftest
+test-hvm64-xsa-122
+test-hvm64-xsa-168
+test-hvm64-xsa-173
+test-hvm64-xsa-188
+test-hvm64-xsa-195
+test-hvm64-xsa-221
+test-hvm64-xsa-231
+test-hvm64-xsa-232
+test-hvm64-xsa-269
+test-hvm64-xsa-277
+test-hvm64-xsa-278
+test-hvm64-xsa-304
+test-hvm64-xsa-317
+test-hvm64-xsa-454
+test-hvm64-xsa-463
+test-pv64-argo
+test-pv64-cpuid
+test-pv64-example
+test-pv64-rtm-check
+test-pv64-xsa-122
+test-pv64-xsa-182
+test-pv64-xsa-188
+test-pv64-xsa-193
+test-pv64-xsa-212
+test-pv64-xsa-221
+test-pv64-xsa-224
+test-pv64-xsa-227
+test-pv64-xsa-231
+test-pv64-xsa-232
+test-pv64-xsa-234
+test-pv64-xsa-255
+test-pv64-xsa-259
+test-pv64-xsa-279
+test-pv64-xsa-286
+test-pv64-xsa-296
+test-pv64-xsa-317
+test-pv64-xsa-333
+test-pv64-xsa-7
diff --git a/automation/scripts/include/xtf-runner b/automation/scripts/include/xtf-runner
deleted file mode 100644
index d1ef888465c3..000000000000
--- a/automation/scripts/include/xtf-runner
+++ /dev/null
@@ -1,138 +0,0 @@
-#!/bin/bash
-#
-# XTF test utilities.
-#
-# Environment variables:
-# BOOT_MSG: Expected boot message
-# FW_PREFIX: Firmware images path including '/' at the end
-# PASSED: XTF test printout in case of a pass
-# QEMU_PREFIX: QEMU path including '/' at the end
-# TEST_LOG: Output log file
-# UBOOT_CMD: U-Boot command line
-# WORKDIR: Test working directory
-# XEN_BINARY: Xen binary location
-# XEN_CONSOLE: Xen console device name
-# XTF_SRC_CONFIG: XTF config file
-# XTF_SRC_BRANCH: XTF branch
-# XTF_SRC_URI: XTF source code URI
-
-# Output log file
-TEST_LOG="${TEST_LOG:-${XEN_ROOT}/smoke.serial}"
-# XTF test printout in case of a pass
-PASSED="${PASSED:-Test result: SUCCESS}"
-# Expected boot message
-BOOT_MSG="${BOOT_MSG:-Latest ChangeSet: }"
-# Test working directory
-WORKDIR="${WORKDIR:-${XEN_ROOT}/binaries}"
-# XTF source code
-XTF_SRC_CONFIG="${XTF_SRC_CONFIG:-include/configs/xtf-${ARCH}-config}"
-
-function die()
-{
- set +x
- echo "FATAL: $*" >&2
- exit 1
-}
-
-# Build an XTF test binary.
-# $1 Test variant.
-# $2 Test name.
-function xtf_build_binary()
-{
- local xtf_variant=$1
- local xtf_name=$2
- local xtf_dir="xtf-${ARCH}"
-
- # Crude check for local testing
- if [ ! -d ${xtf_dir} ]; then
- git clone ${XTF_SRC_URI} ${xtf_dir} -b ${XTF_SRC_BRANCH}
- fi
-
- make \
- -C ${xtf_dir} \
- -j$(nproc) \
- $(tr '\n' ' ' < ${XTF_SRC_CONFIG}) \
- TESTS=tests/${xtf_name}
-
- export XTF_NAME="${xtf_name}"
- export XTF_VARIANT="${xtf_variant}"
- export XTF_WORKDIR="$(readlink -f ${xtf_dir})"
- export XTF_BINARY="${XTF_WORKDIR}/tests/${xtf_name}/test-${xtf_variant}-${xtf_name}"
-}
-
-# Build Xen command line for running an XTF test.
-# $1 Test variant.
-# $2 Test name.
-function xtf_build_cmdline()
-{
- local xtf_variant=$1
- local xtf_name=$2
- declare -a cmdline=()
- declare -A per_test_args=(
- [argo]="argo=1,mac-permissive=1"
- )
-
- cmdline+=("${XEN_CMDLINE}")
-
- # NB: OK to have hvm64, which is x86-only variant
- if [[ $xtf_variant == "hvm64" ]]; then
- cmdline+=("dom0-iommu=none dom0=pvh")
- fi
-
- if [[ -v per_test_args[${xtf_name}] ]]; then
- cmdline+=("${per_test_args[${xtf_name}]}")
- fi
-
- export XEN_CMDLINE="${cmdline[@]}"
-}
-
-# Build an XTF test environment.
-# $1 Test variant.
-# $2 Test name.
-function xtf_build_test()
-{
- local v=$1
- local xtf_name=$2
- local xtf_variant=""
-
- for x in ${XTF_SRC_VARIANTS}; do
- if [[ "${x}" == "${v}" ]]; then
- xtf_variant=${v}
- break
- fi
- done
- if [[ -z $xtf_variant ]]; then
- die "unsupported test variant '$1', supported variants: ${XTF_SRC_VARIANTS}"
- fi
-
- xtf_build_binary ${xtf_variant} ${xtf_name}
- xtf_build_cmdline ${xtf_variant} ${xtf_name}
-}
-
-# Execute an XTF test.
-function xtf_run_test()
-{
- rm -f ${TEST_LOG}
- export BOOT_MSG PASSED TEST_CMD TEST_LOG UBOOT_CMD
- ./console.exp |& sed 's/\r\+$//'
-}
-
-# Setup environment and run an XTF test.
-# $1 Test variant.
-# $2 Test name.
-function xtf_test()
-{
- # Out: FW_*, QEMU_*, XEN_{BINARY,CONSOLE}, XTF_SRC_*
- xtf_arch_prepare
-
- # In: XTF_SRC_*
- # OUt: XTF_{BINARY,NAME,VARIANT,WORKDIR} and XEN_CMDLINE
- xtf_build_test $@
-
- # In: FW_*, QEMU_*, XTF_*, XEN_*
- # Out: BOOT_MSG, PASSED, TEST_{CMD,LOG}, UBOOT_CMD
- xtf_arch_setup
-
- # In: BOOT_MSG, PASSED, TEST_{CMD,LOG}, UBOOT_CMD
- xtf_run_test
-}
diff --git a/automation/scripts/include/xtf-arm64 b/automation/scripts/include/xtf/qemu-arm64
similarity index 79%
rename from automation/scripts/include/xtf-arm64
rename to automation/scripts/include/xtf/qemu-arm64
index 5d851af788a1..1f23e33fc0ac 100644
--- a/automation/scripts/include/xtf-arm64
+++ b/automation/scripts/include/xtf/qemu-arm64
@@ -3,20 +3,17 @@
# XTF test utilities (arm64).
#
-# Arch-specific environment overrides.
-function xtf_arch_prepare()
+# Target-specific environment overrides.
+function xtf_init()
{
export FW_PREFIX="${FW_PREFIX:-/usr/lib/u-boot/qemu_arm64/}"
export QEMU_PREFIX="${QEMU_PREFIX:-}"
export XEN_BINARY="${XEN_BINARY:-${WORKDIR}/xen}"
- export XEN_CMDLINE="${XEN_CMDLINE:-loglvl=all noreboot console_timestamps=boot console=dtuart}"
- export XTF_SRC_BRANCH="${XTF_SRC_BRANCH:-xtf-arm}"
- export XTF_SRC_URI="${XTF_SRC_URI:-https://gitlab.com/xen-project/fusa/xtf.git}"
- export XTF_SRC_VARIANTS="mmu64le"
+ export EXTRA_XEN_CMDLINE="${XEN_CMDLINE:-loglvl=all noreboot console_timestamps=boot console=dtuart}"
}
-# Perform arch-specific XTF environment setup.
-function xtf_arch_setup()
+# Perform target-specific XTF environment setup.
+function xtf_setup_host()
{
# Crude check for local testing
if [ ! -d imagebuilder ]; then
diff --git a/automation/scripts/include/xtf-x86_64 b/automation/scripts/include/xtf/qemu-x86_64
similarity index 53%
rename from automation/scripts/include/xtf-x86_64
rename to automation/scripts/include/xtf/qemu-x86_64
index 186f074bd8eb..0e079893dc25 100644
--- a/automation/scripts/include/xtf-x86_64
+++ b/automation/scripts/include/xtf/qemu-x86_64
@@ -3,20 +3,17 @@
# XTF test utilities (x86_64).
#
-# Arch-specific environment overrides.
-function xtf_arch_prepare()
+# Target-specific environment overrides.
+function xtf_init()
{
export FW_PREFIX="${FW_PREFIX:-}"
export QEMU_PREFIX="${QEMU_PREFIX:-}"
export XEN_BINARY="${XEN_BINARY:-${WORKDIR}/xen}"
- export XEN_CMDLINE="${XEN_CMDLINE:-loglvl=all noreboot console_timestamps=boot console=com1}"
- export XTF_SRC_BRANCH="${XTF_SRC_BRANCH:-master}"
- export XTF_SRC_URI="${XTF_SRC_URI:-https://xenbits.xen.org/git-http/xtf.git}"
- export XTF_SRC_VARIANTS="hvm64 pv64"
+ export EXTRA_XEN_CMDLINE="${XEN_CMDLINE:-loglvl=all noreboot console_timestamps=boot console=com1}"
}
-# Perform arch-specific XTF environment setup.
-function xtf_arch_setup()
+# Perform target-specific XTF environment setup.
+function xtf_setup_host()
{
export TEST_CMD="${QEMU_PREFIX}qemu-system-x86_64 \
-no-reboot \
diff --git a/automation/scripts/include/xtf-x86_64-efi b/automation/scripts/include/xtf/qemu-x86_64-efi
similarity index 75%
rename from automation/scripts/include/xtf-x86_64-efi
rename to automation/scripts/include/xtf/qemu-x86_64-efi
index 15c6463dcdc5..dd2b8c3c6e52 100644
--- a/automation/scripts/include/xtf-x86_64-efi
+++ b/automation/scripts/include/xtf/qemu-x86_64-efi
@@ -3,20 +3,17 @@
# XTF test utilities (x86_64, EFI).
#
-# Arch-specific environment overrides.
-function xtf_arch_prepare()
+# Target-specific environment overrides.
+function xtf_init()
{
export FW_PREFIX="${FW_PREFIX:-/usr/share/OVMF/}"
export QEMU_PREFIX="${QEMU_PREFIX:-}"
export XEN_BINARY="${XEN_BINARY:-${WORKDIR}/xen.efi}"
- export XEN_CMDLINE="${XEN_CMDLINE:-loglvl=all noreboot console_timestamps=boot console=com1}"
- export XTF_SRC_BRANCH="${XTF_SRC_BRANCH:-master}"
- export XTF_SRC_URI="${XTF_SRC_URI:-https://xenbits.xen.org/git-http/xtf.git}"
- export XTF_SRC_VARIANTS="hvm64 pv64"
+ export EXTRA_XEN_CMDLINE="${XEN_CMDLINE:-loglvl=all noreboot console_timestamps=boot console=com1}"
}
-# Perform arch-specific XTF environment setup.
-function xtf_arch_setup()
+# Perform target-specific XTF environment setup.
+function xtf_setup_host()
{
local esp_dir="${WORKDIR}/boot-esp"
local efi_dir="${esp_dir}/EFI/BOOT"
diff --git a/automation/scripts/qemu-xtf.sh b/automation/scripts/qemu-xtf.sh
deleted file mode 100755
index 55c221b36dc5..000000000000
--- a/automation/scripts/qemu-xtf.sh
+++ /dev/null
@@ -1,28 +0,0 @@
-#!/bin/bash
-#
-# XTF test runner (QEMU).
-#
-
-set -e -o pipefail
-
-if [ $# -lt 3 ]; then
- echo "Usage: $(basename $0) ARCH XTF-VARIANT XTF-NAME"
- exit 0
-fi
-
-export ARCH="$1"
-shift
-
-set -x
-
-export XEN_ROOT="${PWD}"
-cd $(dirname $0)
-
-source include/xtf-runner
-
-if [ ! -f "include/xtf-${ARCH}" ]; then
- die "unsupported architecture '${ARCH}'"
-fi
-source include/xtf-${ARCH}
-
-xtf_test $@
diff --git a/automation/scripts/xtf b/automation/scripts/xtf
new file mode 100755
index 000000000000..9f75ad5f99d0
--- /dev/null
+++ b/automation/scripts/xtf
@@ -0,0 +1,395 @@
+#!/bin/bash
+#
+# XTF test utilities.
+#
+# Environment variables:
+# ARCH: Target CPU architecture
+# BOOT_MSG: Expected boot message
+# FW_PREFIX: Firmware images path including '/' at the end
+# QEMU_PREFIX: QEMU path including '/' at the end
+# TEST_LOG: Output log file
+# UBOOT_CMD: U-Boot command line
+# WORKDIR: Test working directory
+# XEN_BINARY: Xen binary location
+# XEN_CONSOLE: Xen console device name
+# XTF_SRC_CONFIG: XTF config file
+# XTF_SRC_BRANCH: XTF branch
+# XTF_SRC_URI: XTF source code URI
+# XTF_TARGET: Target name
+
+function die()
+{
+ set +x
+ echo "FATAL: $*" >&2
+ exit 255
+}
+
+set -e -o pipefail
+set -x
+
+if [[ -z "${ARCH}" ]]; then
+ die "'\$ARCH' is not defined"
+fi
+
+if [[ -z "${XTF_TARGET}" ]]; then
+ die "'\$XTF_TARGET' is not defined"
+fi
+
+TOP="$(readlink -f $(dirname $0))"
+xtf_include="${TOP}/include/xtf/${XTF_TARGET}"
+
+if [[ ! -e "${xtf_include}" ]]; then
+ die "cannot find '${xtf_include}'"
+fi
+
+# Scratch directory
+XEN_ROOT="${PWD}"
+# Output log file
+TEST_LOG="${TEST_LOG:-${XEN_ROOT}/smoke.serial}"
+# Expected boot message
+BOOT_MSG="${BOOT_MSG:-Latest ChangeSet: }"
+# Test working directory
+WORKDIR="${WORKDIR:-${XEN_ROOT}/binaries}"
+# XTF source code
+XTF_SRC_CONFIG="${XTF_SRC_CONFIG:-include/configs/xtf-${ARCH}-config}"
+
+cd ${TOP}
+
+source include/xtf/${XTF_TARGET}
+
+function xtf_string_from_elf()
+{
+ str="$1"
+ xtf_binary="$2"
+ local addr=0
+ local size=0
+ local idx=0
+ local sec_off=""
+ local offset=0
+
+ if ! command -v readelf &>/dev/null; then
+ die "readelf not found (install binutils)"
+ fi
+
+ # Get symbol address, size, and section index.
+ read -r addr size idx < <(
+ readelf -Ws "${xtf_binary}" |
+ awk '$8 == "'${str}'" && $7 ~ /^[0-9]+$/ {
+ print $2, $3, $7
+ exit
+ }'
+ )
+
+ if [[ -z "${idx}" || ${size} == 0 ]]; then
+ die "no ${str} in '${xtf_binary}'"
+ fi
+
+ # Get section virtual address and file offset.
+ read -r sec_addr sec_off < <(
+ readelf -WS "${xtf_binary}" |
+ awk -v idx="${idx}" \
+ '$0 ~ "^[[:space:]]*\\[[[:space:]]*" idx "\\]" {
+ sub(/^[[:space:]]*\[[[:space:]]*[0-9]+\][[:space:]]*/, "")
+ print $3, $4
+ exit
+ }'
+ )
+
+ if [[ -z "${sec_off}" ]]; then
+ die "failed to extact ${str} from '${xtf_binary}'"
+ fi
+
+ # xtf_binary symbol address -> file offset.
+ offset=$((16#${sec_off} + 16#${addr} - 16#${sec_addr}))
+
+ # Extract the NUL-terminated string.
+ dd if="${xtf_binary}" bs=1 skip="${offset}" count="${size}" status=none |
+ tr -d '\000'
+}
+
+function xtf_get_bootargs()
+{
+ local xtf_info=$1
+ local line
+ local re='"xen,xen-bootargs"[[:space:]]*:[[:space:]]*"([^"]*)"'
+
+ while IFS= read -r line || [[ -n "$line" ]]; do
+ if [[ "$line" =~ $re ]]; then
+ printf '%s\n' "${BASH_REMATCH[1]}"
+ return 0
+ fi
+ done < "$xtf_info"
+}
+
+# Build Xen command line for running an XTF test.
+# $1 Test variant.
+# $2 Test manifest.
+function xtf_setup_cmdline()
+{
+ local xtf_variant=$1
+ local xtf_info=$2
+ local -a cmdline=("${EXTRA_XEN_CMDLINE}")
+
+ if [[ "$xtf_variant" == hvm* ]]; then
+ cmdline+=("iommu=0 dom0-iommu=none dom0=pvh")
+ fi
+
+ if [[ -f "$xtf_info" ]]; then
+ cat "${xtf_info}"
+ cmdline+=($(xtf_get_bootargs "${xtf_info}"))
+ fi
+
+ export XEN_CMDLINE="${cmdline[*]}"
+}
+
+# Execute an XTF test.
+function xtf_run()
+{
+ rm -f ${TEST_LOG}
+ export BOOT_MSG TEST_CMD TEST_LOG UBOOT_CMD
+
+ printf "XTF binary: %s\n" "${XTF_BINARY}"
+ printf "XTF log: %s\n" "${XTF_LOG}"
+ printf "Xen binary: %s\n" "${XEN_BINARY}"
+ printf "Xen Command Line: %s\n" "${XEN_CMDLINE}"
+
+ TEST_XTF=y ./console.exp |& sed 's/\r\+$//'
+}
+
+function print_title()
+{
+ local str="$1"
+ local width=$(( 80 - ${#str} - 2 ))
+ local left=$(( width / 2 ))
+ local right=$(( width - left ))
+
+ printf -v lhs '%*s' "$left" ''
+ printf -v rhs '%*s' "$right" ''
+ printf '\n%s %s %s\n' "${lhs// /=}" "$str" "${rhs// /=}"
+}
+
+function main()
+{
+ declare -A nr_tests_by_status=(
+ [PASS]=0
+ [TIMEOUT]=0
+ [EOF]=0
+ [SKIP]=0
+ [ERROR]=0
+ [FAIL]=0
+ [CRASH]=0
+ [UNKNOWN]=0
+ )
+ local -A xtf_completed=()
+ local -A xtf_binaries_selected=()
+ local -A xtf_binary_by_path=()
+ local -a xtf_binaries=()
+ local -a xtf_binaries_filtered=()
+ local nr_tests=0
+ local xtf_binary xtf_file xtf_variant xtf_name xtf_title
+
+ xtf_init
+
+ #
+ # Pass 1: Discover all XTF ELF binaries.
+ #
+
+ while IFS= read -r -d '' xtf_binary; do
+ if ! readelf -h "$xtf_binary" &>/dev/null; then
+ continue
+ fi
+
+ # Some XTF build quirks
+ case "$ARCH" in
+ arm64)
+ if [[ "$xtf_binary" != *-syms ]]; then
+ continue
+ fi
+
+ xtf_binary="${xtf_binary%-syms}"
+
+ if [[ ! -s "$xtf_binary" ]]; then
+ die "Missing ARM64 boot image '$xtf_binary'"
+ fi
+ ;;
+ *)
+ ;;
+ esac
+
+ xtf_binaries+=(${xtf_binary})
+ done < <(find "$WORKDIR" -mindepth 2 -type f -name 'test-*' -print0)
+
+ if (( ${#xtf_binaries[@]} == 0 )); then
+ die "No XTF ELF binaries found in '$WORKDIR'"
+ fi
+
+ #
+ # Load test suite manifest, if any.
+ #
+
+ if [[ -n ${XTF_MANIFEST:-} ]]; then
+ local -a lines=()
+
+ if [[ ! -r "$XTF_MANIFEST" ]]; then
+ die "Cannot read '$XTF_MANIFEST'"
+ fi
+
+ mapfile -t lines < "$XTF_MANIFEST"
+ for x in "${lines[@]}"; do
+ xtf_binaries_selected["${x}"]=1
+ done
+
+ if (( ${#xtf_binaries_selected[@]} == 0 )); then
+ die "No tests found in '$XTF_MANIFEST'"
+ fi
+ fi
+
+ #
+ # Pass 2: Filter discovered XTF binaries.
+ #
+
+ for xtf_binary in "${xtf_binaries[@]}"; do
+ xtf_file=$(basename "${xtf_binary}")
+
+ # Filter 1: YAML
+ if [[ -n ${XTF_MANIFEST:-} && -z ${xtf_binaries_selected[$xtf_file]:-} ]]; then
+ continue
+ fi
+
+ # Filter 2: regex
+ if [[ -n ${SELECTED_XTF_ONLY:-} && ! $xtf_file =~ $SELECTED_XTF_ONLY ]]; then
+ continue
+ fi
+
+ xtf_binaries_filtered+=("$xtf_binary")
+ done
+
+ for xtf_binary in "${xtf_binaries_filtered[@]}"; do
+ local xtf_dir=$(dirname "$xtf_binary")
+ xtf_binary_by_path["$xtf_binary"]="${xtf_dir}/info.json"
+ done
+ nr_tests=${#xtf_binary_by_path[@]}
+
+ if (( ${nr_tests} == 0 )); then
+ die "No XTF tests matched the selection"
+ fi
+
+ #
+ # Pass 3: Execute selected tests.
+ #
+
+ print_title "Selected tests (${nr_tests})"
+
+ local nr=1
+ for xtf_binary in "${!xtf_binary_by_path[@]}"; do
+ local ret status_str
+ local xtf_pid progress_pid
+ local t_start t_end
+ local xtf_info="${xtf_binary_by_path[${xtf_binary}]}"
+
+ xtf_file="${xtf_binary##*/}"
+
+ xtf_variant="${xtf_file#test-}"
+ xtf_name="${xtf_variant#*-}"
+ xtf_variant="${xtf_variant%%-*}"
+
+ # Some XTF build quirks
+ case "$ARCH" in
+ arm64)
+ xtf_title=$(xtf_string_from_elf "test_title" "${xtf_binary}-syms")
+ ;;
+ *)
+ xtf_title=$(xtf_string_from_elf "test_title" "${xtf_binary}")
+ ;;
+ esac
+
+ export XTF_BINARY="${xtf_binary}"
+ export XTF_LOG="${TOP}/${xtf_file}.log"
+
+ printf "%3d/%3d %s (%s): " "$nr" "$nr_tests" "${xtf_title}" "${xtf_file}"
+
+ # Spawn in a subshell so that bash traps could be used
+ # (e.g. for power cycling the target)
+ t_start=$SECONDS
+ (
+ set -x
+
+ xtf_setup_cmdline "${xtf_variant}" "${xtf_info}"
+
+ # In: FW_*, QEMU_*, XTF_*, XEN_*
+ # Out: BOOT_MSG, TEST_{CMD,LOG}, UBOOT_CMD
+ xtf_setup_host
+
+ # In: BOOT_MSG, TEST_{CMD,LOG}, UBOOT_CMD
+ xtf_run
+ ) &> "${XTF_LOG}" &
+ xtf_pid=$!
+
+ # Print a dot every second while the test is running.
+ (
+ while kill -0 "${xtf_pid}" 2>/dev/null; do
+ sleep 1
+
+ if ! kill -0 "$xtf_pid" 2>/dev/null; then
+ break
+ fi
+
+ printf '.'
+ done
+ ) &
+ progress_pid=$!
+
+ if wait "${xtf_pid}"; then
+ ret=0
+ else
+ ret=$?
+ fi
+ t_end=$SECONDS
+
+ # Stop the progress indicator.
+ kill "$progress_pid" 2>/dev/null || true
+ wait "$progress_pid" 2>/dev/null || true
+
+ # See console.exp and xtf-runner
+ case "$ret" in
+ 0) status_str="PASS" ;;
+ 1) status_str="TIMEOUT" ;;
+ 2) status_str="EOF" ;;
+ 3) status_str="SKIP" ;;
+ 4) status_str="ERROR" ;;
+ 5) status_str="FAIL" ;;
+ 6) status_str="CRASH" ;;
+ *) status_str="UNKNOWN" ;;
+ esac
+
+ (( nr_tests_by_status[${status_str}] += 1 ))
+
+ xtf_completed["${xtf_title}"]="${XTF_LOG}"
+
+ printf '%s (%ss)\n' "${status_str}" $(( t_end - t_start ))
+ (( nr += 1 ))
+ done
+
+ for xtf_title in "${!xtf_completed[@]}"; do
+ print_title "${xtf_title}"
+ cat -v "${xtf_completed[$xtf_title]}" || true
+ done
+
+ print_title "Report"
+ printf " Total : %d\n" ${nr_tests}
+ for x in "${!nr_tests_by_status[@]}"; do
+ printf " %s: %d\n" "$x " "${nr_tests_by_status[$x]}"
+ done
+
+ nr_success=$(( nr_tests_by_status[PASS] + nr_tests_by_status[SKIP] ))
+ if (( nr_tests == 0 )); then
+ exit 255
+ elif (( nr_success == nr_tests )); then
+ exit 0
+ else
+ exit 1
+ fi
+}
+
+set +x
+main $@
--
2.55.0
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [PATCH v1 08/13] CI: enable on-demand XTF on qubes runners
2026-11-05 1:36 [PATCH v1 00/13] CI: updates for XTF jobs dmukhin
` (6 preceding siblings ...)
2026-11-05 1:36 ` [PATCH v1 07/13] CI: rework to allow hardware runners dmukhin
@ 2026-11-05 1:36 ` dmukhin
2026-12-03 2:24 ` Stefano Stabellini
2026-11-05 1:36 ` [PATCH v1 09/13] CI: enable on-demand IPI latency test on AMD Zen2/Zen3 runners dmukhin
` (4 subsequent siblings)
12 siblings, 1 reply; 26+ messages in thread
From: dmukhin @ 2026-11-05 1:36 UTC (permalink / raw)
To: xen-devel
Cc: andrew.cooper3, anthony.perard, jbeulich, julien, michal.orzel,
roger, sstabellini, dmukhin, Denis Mukhin
From: Denis Mukhin <dmukhin@ford.com>
Currently, public CI infra has no job to run an XTF on the hardware
runner.
This change enables running XTFs on hardware runners on demand, such
as test job on a development branch.
Signed-off-by: Denis Mukhin <dmukhin@ford.com>
---
automation/gitlab-ci/test.yaml | 2 +
automation/scripts/include/xtf/qubes-hw1 | 1 +
automation/scripts/include/xtf/qubes-hw11 | 1 +
automation/scripts/include/xtf/qubes-hw2 | 1 +
automation/scripts/include/xtf/qubes-hw22 | 1 +
automation/scripts/include/xtf/qubes-hw3 | 1 +
automation/scripts/include/xtf/qubes-x86_64 | 54 +++++++++++++++++++++
7 files changed, 61 insertions(+)
create mode 120000 automation/scripts/include/xtf/qubes-hw1
create mode 120000 automation/scripts/include/xtf/qubes-hw11
create mode 120000 automation/scripts/include/xtf/qubes-hw2
create mode 120000 automation/scripts/include/xtf/qubes-hw22
create mode 120000 automation/scripts/include/xtf/qubes-hw3
create mode 100644 automation/scripts/include/xtf/qubes-x86_64
diff --git a/automation/gitlab-ci/test.yaml b/automation/gitlab-ci/test.yaml
index 9ca93842dfe7..4d7d5e3d9a11 100644
--- a/automation/gitlab-ci/test.yaml
+++ b/automation/gitlab-ci/test.yaml
@@ -244,6 +244,7 @@
PCIDEV_INTR: "MSI-X"
XEN_CONSOLE: "console=com1 com1=115200,8n1,pci,msi,04:00.0"
SUT_ADDR: test-1.testnet
+ XTF_TARGET: qubes-hw1
tags:
- qubes-hw1
@@ -255,6 +256,7 @@
PCIDEV_INTR: "MSI-X"
XEN_CONSOLE: "console=com1 com1=115200,8n1,pci,msi"
SUT_ADDR: test-11.testnet
+ XTF_TARGET: qubes-hw11
tags:
- qubes-hw11
diff --git a/automation/scripts/include/xtf/qubes-hw1 b/automation/scripts/include/xtf/qubes-hw1
new file mode 120000
index 000000000000..c6b7de7308b6
--- /dev/null
+++ b/automation/scripts/include/xtf/qubes-hw1
@@ -0,0 +1 @@
+qubes-x86_64
\ No newline at end of file
diff --git a/automation/scripts/include/xtf/qubes-hw11 b/automation/scripts/include/xtf/qubes-hw11
new file mode 120000
index 000000000000..c6b7de7308b6
--- /dev/null
+++ b/automation/scripts/include/xtf/qubes-hw11
@@ -0,0 +1 @@
+qubes-x86_64
\ No newline at end of file
diff --git a/automation/scripts/include/xtf/qubes-hw2 b/automation/scripts/include/xtf/qubes-hw2
new file mode 120000
index 000000000000..c6b7de7308b6
--- /dev/null
+++ b/automation/scripts/include/xtf/qubes-hw2
@@ -0,0 +1 @@
+qubes-x86_64
\ No newline at end of file
diff --git a/automation/scripts/include/xtf/qubes-hw22 b/automation/scripts/include/xtf/qubes-hw22
new file mode 120000
index 000000000000..c6b7de7308b6
--- /dev/null
+++ b/automation/scripts/include/xtf/qubes-hw22
@@ -0,0 +1 @@
+qubes-x86_64
\ No newline at end of file
diff --git a/automation/scripts/include/xtf/qubes-hw3 b/automation/scripts/include/xtf/qubes-hw3
new file mode 120000
index 000000000000..c6b7de7308b6
--- /dev/null
+++ b/automation/scripts/include/xtf/qubes-hw3
@@ -0,0 +1 @@
+qubes-x86_64
\ No newline at end of file
diff --git a/automation/scripts/include/xtf/qubes-x86_64 b/automation/scripts/include/xtf/qubes-x86_64
new file mode 100644
index 000000000000..d183dd33e4af
--- /dev/null
+++ b/automation/scripts/include/xtf/qubes-x86_64
@@ -0,0 +1,54 @@
+#!/bin/bash
+#
+# XTF test utilities (qubes-* hardware x86_64 runners).
+#
+
+# Target-specific environment overrides.
+function xtf_init()
+{
+ export XEN_BINARY="${XEN_BINARY:-${WORKDIR}/xen}"
+
+ XEN_CMDLINE="${XEN_CMDLINE:-loglvl=all guest_loglvl=all dom0_mem=4G console_timestamps=boot}"
+ export EXTRA_XEN_CMDLINE="${XEN_CMDLINE} ${XEN_CONSOLE}"
+
+ export TFTP="/scratch/gitlab-runner/tftp"
+ export CONTROLLER="control@thor.testnet"
+}
+
+# Perform target-specific XTF environment setup.
+function xtf_setup_host()
+{
+ cat > "$TFTP/grub.cfg" <<EOF
+serial --port=auto --speed=115200 --word=8 --parity=no --stop=1
+terminal_input serial
+terminal_output serial
+
+insmod multiboot2
+
+echo Loading Xen...
+multiboot2 (http)/gitlab-ci/xen $XEN_CMDLINE
+
+echo Loading XTF...
+module2 (http)/gitlab-ci/xtf
+
+echo Booting Xen...
+boot
+ EOF
+
+ cat > $TFTP/boot.ipxe <<EOF
+#!ipxe
+kernel /gitlab-ci/xen $XEN_CMDLINE || reboot
+module /gitlab-ci/xtf || reboot
+boot
+EOF
+
+ cp ${XEN_BINARY} $TFTP/xen
+ cp ${XTF_BINARY} $TFTP/xtf
+
+ export TEST_CMD="ssh $CONTROLLER console"
+
+ trap "ssh $CONTROLLER poweroff" EXIT
+
+ # Boot the system
+ ssh $CONTROLLER gitlabci poweron
+}
--
2.55.0
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [PATCH v1 09/13] CI: enable on-demand IPI latency test on AMD Zen2/Zen3 runners
2026-11-05 1:36 [PATCH v1 00/13] CI: updates for XTF jobs dmukhin
` (7 preceding siblings ...)
2026-11-05 1:36 ` [PATCH v1 08/13] CI: enable on-demand XTF on qubes runners dmukhin
@ 2026-11-05 1:36 ` dmukhin
2026-12-03 2:27 ` Stefano Stabellini
2026-11-05 1:36 ` [PATCH v1 10/13] CI: x86: attempt to fixup flaky tests dmukhin
` (3 subsequent siblings)
12 siblings, 1 reply; 26+ messages in thread
From: dmukhin @ 2026-11-05 1:36 UTC (permalink / raw)
To: xen-devel
Cc: andrew.cooper3, anthony.perard, jbeulich, julien, michal.orzel,
roger, sstabellini, dmukhin, Denis Mukhin
From: Denis Mukhin <dmukhin@ford.com>
Enable IPI latency test on hardware Zen2/Zen3 runners.
Signed-off-by: Denis Mukhin <dmukhin@ford.com>
---
automation/gitlab-ci/test.yaml | 16 ++++++++++++++++
1 file changed, 16 insertions(+)
diff --git a/automation/gitlab-ci/test.yaml b/automation/gitlab-ci/test.yaml
index 4d7d5e3d9a11..98edf7eb9ff5 100644
--- a/automation/gitlab-ci/test.yaml
+++ b/automation/gitlab-ci/test.yaml
@@ -565,6 +565,14 @@ zen2-xtf-x86_64-gcc-debug:
- .xtf-x86_64-gcc-debug
- .test-jobs-hardware-xtf
+zen2-hvm64-interrupt-latency:
+ extends:
+ - zen2-xtf-x86_64-gcc-debug
+ - .test-jobs-perf
+ variables:
+ SELECTED_XTF_ONLY: test-hvm64-interrupt-latency
+ TEST_TIMEOUT_OVERRIDE: 600
+
zen3p-smoke-x86_64-gcc-debug:
extends: .zen3p-x86_64
script:
@@ -633,6 +641,14 @@ zen3p-xtf-x86_64-gcc-debug:
- .xtf-x86_64-gcc-debug
- .test-jobs-hardware-xtf
+zen3p-hvm64-interrupt-latency:
+ extends:
+ - zen3p-xtf-x86_64-gcc-debug
+ - .test-jobs-perf
+ variables:
+ SELECTED_XTF_ONLY: test-hvm64-interrupt-latency
+ TEST_TIMEOUT_OVERRIDE: 600
+
qemu-smoke-dom0-arm64-gcc:
extends: .qemu-arm64
script:
--
2.55.0
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [PATCH v1 10/13] CI: x86: attempt to fixup flaky tests
2026-11-05 1:36 [PATCH v1 00/13] CI: updates for XTF jobs dmukhin
` (8 preceding siblings ...)
2026-11-05 1:36 ` [PATCH v1 09/13] CI: enable on-demand IPI latency test on AMD Zen2/Zen3 runners dmukhin
@ 2026-11-05 1:36 ` dmukhin
2026-12-03 2:29 ` Stefano Stabellini
2026-11-05 1:36 ` [PATCH v1 11/13] CI: add test jobs on AMD Zen5 dmukhin
` (2 subsequent siblings)
12 siblings, 1 reply; 26+ messages in thread
From: dmukhin @ 2026-11-05 1:36 UTC (permalink / raw)
To: xen-devel
Cc: andrew.cooper3, anthony.perard, jbeulich, julien, michal.orzel,
roger, sstabellini, dmukhin, Denis Mukhin
From: Denis Mukhin <dmukhin@ford.com>
Allow maximum of 2 retries to account for flaky infrastructure
scripting for powering on the target board.
Signed-off-by: Denis Mukhin <dmukhin@ford.com>
---
automation/gitlab-ci/test.yaml | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/automation/gitlab-ci/test.yaml b/automation/gitlab-ci/test.yaml
index 98edf7eb9ff5..bf12b9123f1e 100644
--- a/automation/gitlab-ci/test.yaml
+++ b/automation/gitlab-ci/test.yaml
@@ -192,6 +192,10 @@
.adl-x86_64:
extends: .test-jobs-common
+ # Account for infra failure
+ retry:
+ max: 2
+ when: script_failure
variables:
# the test controller runs on RPi4
CONTAINER: alpine:qubes-hw-runner
--
2.55.0
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [PATCH v1 11/13] CI: add test jobs on AMD Zen5
2026-11-05 1:36 [PATCH v1 00/13] CI: updates for XTF jobs dmukhin
` (9 preceding siblings ...)
2026-11-05 1:36 ` [PATCH v1 10/13] CI: x86: attempt to fixup flaky tests dmukhin
@ 2026-11-05 1:36 ` dmukhin
2026-12-03 2:30 ` Stefano Stabellini
2026-11-05 1:37 ` [PATCH v1 12/13] CI: add on-demand XTF " dmukhin
2026-11-05 1:37 ` [PATCH v1 13/13] CI: do not merge: re-wire XTF repos to custom branches dmukhin
12 siblings, 1 reply; 26+ messages in thread
From: dmukhin @ 2026-11-05 1:36 UTC (permalink / raw)
To: xen-devel
Cc: andrew.cooper3, anthony.perard, jbeulich, julien, michal.orzel,
roger, sstabellini, dmukhin, Denis Mukhin,
Marek Marczykowski-Górecki
From: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
This is Minisforum X1 Pro AI mini PC with AMD Ryzen AI 9 HX 370.
Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
Signed-off-by: Denis Mukhin <dmukhin@ford.com>
---
automation/gitlab-ci/test.yaml | 74 ++++++++++++++++++++++++++++++++++
1 file changed, 74 insertions(+)
diff --git a/automation/gitlab-ci/test.yaml b/automation/gitlab-ci/test.yaml
index bf12b9123f1e..05dbd0d3e07c 100644
--- a/automation/gitlab-ci/test.yaml
+++ b/automation/gitlab-ci/test.yaml
@@ -264,6 +264,18 @@
tags:
- qubes-hw11
+.zen5-x86_64:
+ # it's really similar to the above
+ extends: .adl-x86_64
+ variables:
+ PCIDEV: "c3:00.0"
+ PCIDEV_INTR: "MSI-X"
+ XEN_CONSOLE: "console=com1 com1=115200,8n1,pci,msi"
+ SUT_ADDR: test-21.testnet
+ XTF_TARGET: qubes-hw21
+ tags:
+ - qubes-hw21
+
# Test jobs
build-each-commit-gcc:
extends: .test-jobs-common
@@ -653,6 +665,68 @@ zen3p-hvm64-interrupt-latency:
SELECTED_XTF_ONLY: test-hvm64-interrupt-latency
TEST_TIMEOUT_OVERRIDE: 600
+zen5-smoke-x86_64-gcc-debug:
+ extends: .zen5-x86_64
+ script:
+ - ./automation/scripts/qubes-x86_64.sh dom0pv 2>&1 | tee ${LOGFILE}
+ needs:
+ - *x86_64-test-needs
+ - alpine-3.24-x86_64-gcc-debug
+
+zen5-smoke-x86_64-dom0pvh-gcc-debug:
+ extends: .zen5-x86_64
+ script:
+ - ./automation/scripts/qubes-x86_64.sh dom0pvh 2>&1 | tee ${LOGFILE}
+ needs:
+ - *x86_64-test-needs
+ - alpine-3.24-x86_64-gcc-debug
+
+zen5-smoke-x86_64-dom0pvh-hvm-gcc-debug:
+ extends: .zen5-x86_64
+ script:
+ - ./automation/scripts/qubes-x86_64.sh dom0pvh-hvm 2>&1 | tee ${LOGFILE}
+ needs:
+ - *x86_64-test-needs
+ - alpine-3.24-x86_64-gcc-debug
+
+zen5-pci-hvm-x86_64-gcc-debug:
+ extends: .zen5-x86_64
+ script:
+ - ./automation/scripts/qubes-x86_64.sh pci-hvm 2>&1 | tee ${LOGFILE}
+ needs:
+ - *x86_64-test-needs
+ - alpine-3.24-x86_64-gcc-debug
+
+zen5-pvshim-x86_64-gcc-debug:
+ extends: .zen5-x86_64
+ script:
+ - ./automation/scripts/qubes-x86_64.sh pvshim 2>&1 | tee ${LOGFILE}
+ needs:
+ - *x86_64-test-needs
+ - alpine-3.24-x86_64-gcc-debug
+
+zen5-tools-tests-pv-x86_64-gcc-debug:
+ extends: .zen5-x86_64
+ script:
+ - ./automation/scripts/qubes-x86_64.sh tools-tests-pv 2>&1 | tee ${LOGFILE}
+ artifacts:
+ reports:
+ junit: tests-junit.xml
+ needs:
+ - *x86_64-test-needs
+ - alpine-3.24-x86_64-gcc-debug
+
+zen5-tools-tests-pvh-x86_64-gcc-debug:
+ extends: .zen5-x86_64
+ script:
+ - ./automation/scripts/qubes-x86_64.sh tools-tests-pvh 2>&1 | tee ${LOGFILE}
+ artifacts:
+ reports:
+ junit: tests-junit.xml
+ needs:
+ - *x86_64-test-needs
+ - alpine-3.24-x86_64-gcc-debug
+
qemu-smoke-dom0-arm64-gcc:
extends: .qemu-arm64
script:
--
2.55.0
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [PATCH v1 12/13] CI: add on-demand XTF test jobs on AMD Zen5
2026-11-05 1:36 [PATCH v1 00/13] CI: updates for XTF jobs dmukhin
` (10 preceding siblings ...)
2026-11-05 1:36 ` [PATCH v1 11/13] CI: add test jobs on AMD Zen5 dmukhin
@ 2026-11-05 1:37 ` dmukhin
2026-12-03 2:31 ` Stefano Stabellini
2026-11-05 1:37 ` [PATCH v1 13/13] CI: do not merge: re-wire XTF repos to custom branches dmukhin
12 siblings, 1 reply; 26+ messages in thread
From: dmukhin @ 2026-11-05 1:37 UTC (permalink / raw)
To: xen-devel
Cc: andrew.cooper3, anthony.perard, jbeulich, julien, michal.orzel,
roger, sstabellini, dmukhin, Denis Mukhin
From: Denis Mukhin <dmukhin@ford.com>
Add on-demand XTF test jobs: complete run of all tests and
a standalone interrupt latency test (AVIC).
Signed-off-by: Denis Mukhin <dmukhin@ford.com>
---
automation/gitlab-ci/test.yaml | 14 ++++++++++++++
automation/scripts/include/xtf/qubes-hw21 | 1 +
2 files changed, 15 insertions(+)
create mode 120000 automation/scripts/include/xtf/qubes-hw21
diff --git a/automation/gitlab-ci/test.yaml b/automation/gitlab-ci/test.yaml
index 05dbd0d3e07c..f65758cf3b96 100644
--- a/automation/gitlab-ci/test.yaml
+++ b/automation/gitlab-ci/test.yaml
@@ -276,6 +276,20 @@
tags:
- qubes-hw21
+zen5-xtf-x86_64-gcc-debug:
+ extends:
+ - .zen5-x86_64
+ - .xtf-x86_64-gcc-debug
+ - .test-jobs-hardware-xtf
+
+zen5-hvm64-interrupt-latency:
+ extends:
+ - zen5-xtf-x86_64-gcc-debug
+ - .test-jobs-perf
+ variables:
+ SELECTED_XTF_ONLY: test-hvm64-interrupt-latency
+ TEST_TIMEOUT_OVERRIDE: 600
+
# Test jobs
build-each-commit-gcc:
extends: .test-jobs-common
diff --git a/automation/scripts/include/xtf/qubes-hw21 b/automation/scripts/include/xtf/qubes-hw21
new file mode 120000
index 000000000000..c6b7de7308b6
--- /dev/null
+++ b/automation/scripts/include/xtf/qubes-hw21
@@ -0,0 +1 @@
+qubes-x86_64
\ No newline at end of file
--
2.55.0
^ permalink raw reply related [flat|nested] 26+ messages in thread
* [PATCH v1 13/13] CI: do not merge: re-wire XTF repos to custom branches
2026-11-05 1:36 [PATCH v1 00/13] CI: updates for XTF jobs dmukhin
` (11 preceding siblings ...)
2026-11-05 1:37 ` [PATCH v1 12/13] CI: add on-demand XTF " dmukhin
@ 2026-11-05 1:37 ` dmukhin
12 siblings, 0 replies; 26+ messages in thread
From: dmukhin @ 2026-11-05 1:37 UTC (permalink / raw)
To: xen-devel
Cc: andrew.cooper3, anthony.perard, jbeulich, julien, michal.orzel,
roger, sstabellini, dmukhin, Denis Mukhin
From: Denis Mukhin <dmukhin@ford.com>
Only for testing.
Signed-off-by: Denis Mukhin <dmukhin@ford.com>
---
automation/gitlab-ci/build.yaml | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/automation/gitlab-ci/build.yaml b/automation/gitlab-ci/build.yaml
index 1f6228ba74ff..a9f85fd9915f 100644
--- a/automation/gitlab-ci/build.yaml
+++ b/automation/gitlab-ci/build.yaml
@@ -867,8 +867,8 @@ xtf-arm64-gcc-debug:
variables:
CONTAINER: alpine:3.24-arm64v8
ARCH: arm64
- XTF_URI: https://gitlab.com/xen-project/fusa/xtf.git
- XTF_BRANCH: xtf-arm
+ XTF_URI: https://gitlab.com/xen-project/people/dmukhin/xtf.git
+ XTF_BRANCH: xtf-arm64
XTF_CONFIG: |
CONFIG_GICV2=y
CONFIG_SBSA_UART=y
@@ -881,8 +881,8 @@ xtf-x86_64-gcc-debug:
variables:
CONTAINER: alpine:3.24-x86_64
ARCH: x86_64
- XTF_URI: https://xenbits.xen.org/git-http/xtf.git
- XTF_BRANCH: master
+ XTF_URI: https://gitlab.com/xen-project/people/dmukhin/xtf.git
+ XTF_BRANCH: x86_64-ipi-latency
XTF_CONFIG:
xtf-x86_64-clang-debug:
@@ -893,6 +893,6 @@ xtf-x86_64-clang-debug:
variables:
CONTAINER: debian:13-x86_64
ARCH: x86_64
- XTF_URI: https://xenbits.xen.org/git-http/xtf.git
- XTF_BRANCH: master
+ XTF_URI: https://gitlab.com/xen-project/people/dmukhin/xtf.git
+ XTF_BRANCH: x86_64-ipi-latency
XTF_CONFIG:
--
2.55.0
^ permalink raw reply related [flat|nested] 26+ messages in thread
* Re: [PATCH v1 02/13] CI: unify hypervisor console parametrization
2026-11-05 1:36 ` [PATCH v1 02/13] CI: unify hypervisor console parametrization dmukhin
@ 2026-12-03 1:34 ` Stefano Stabellini
0 siblings, 0 replies; 26+ messages in thread
From: Stefano Stabellini @ 2026-12-03 1:34 UTC (permalink / raw)
To: Denis Mukhin
Cc: xen-devel, andrew.cooper3, anthony.perard, jbeulich, julien,
michal.orzel, roger, sstabellini, dmukhin
On Wed, 4 Nov 2026, dmukhin@ford.com wrote:
> From: Denis Mukhin <dmukhin@ford.com>
>
> gitlab CI configuration uses different environment variables for
> passing Xen console arguments to the test jobs.
>
> Switch all tests uniformly to 'XEN_CONSOLE=' environment variable.
>
> Not a functional change.
>
> Signed-off-by: Denis Mukhin <dmukhin@ford.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
> ---
> automation/gitlab-ci/test.yaml | 12 ++++++------
> automation/scripts/qubes-x86_64.sh | 4 ++--
> automation/scripts/xilinx-smoke-dom0-x86_64.sh | 2 +-
> 3 files changed, 9 insertions(+), 9 deletions(-)
>
> diff --git a/automation/gitlab-ci/test.yaml b/automation/gitlab-ci/test.yaml
> index 96127995d7be..f984c34a922e 100644
> --- a/automation/gitlab-ci/test.yaml
> +++ b/automation/gitlab-ci/test.yaml
> @@ -121,7 +121,7 @@
> variables:
> CONTAINER: ubuntu:xilinx-hw-runner
> LOGFILE: xilinx-smoke-x86_64.log
> - XEN_CMD_CONSOLE: "console=com2 com2=57600,8n1,0x2F8,4"
> + XEN_CONSOLE: "console=com2 com2=57600,8n1,0x2F8,4"
> TEST_BOARD: "crater"
> TEST_TIMEOUT_OVERRIDE: 1000
> artifacts:
> @@ -144,7 +144,7 @@
> LOGFILE: smoke-test.log
> PCIDEV: "03:00.0"
> PCIDEV_INTR: "MSI-X"
> - CONSOLE_OPTS: "console=com1 com1=115200,8n1"
> + XEN_CONSOLE: "console=com1 com1=115200,8n1"
> SUT_ADDR: test-2.testnet
> artifacts:
> paths:
> @@ -165,7 +165,7 @@
> variables:
> PCIDEV: "00:1f.6"
> PCIDEV_INTR: "MSI"
> - CONSOLE_OPTS: "console=com1 com1=115200,8n1,pci,0"
> + XEN_CONSOLE: "console=com1 com1=115200,8n1,pci,0"
> SUT_ADDR: test-3.testnet
> tags:
> - qubes-hw3
> @@ -176,7 +176,7 @@
> variables:
> PCIDEV: "56:00.0"
> PCIDEV_INTR: "MSI-X"
> - CONSOLE_OPTS: "console=com1 com1=115200,8n1"
> + XEN_CONSOLE: "console=com1 com1=115200,8n1"
> EXTRA_XEN_OPTS: "fred"
> SUT_ADDR: test-22.testnet
> tags:
> @@ -188,7 +188,7 @@
> variables:
> PCIDEV: "01:00.0"
> PCIDEV_INTR: "MSI-X"
> - CONSOLE_OPTS: "console=com1 com1=115200,8n1,pci,msi,04:00.0"
> + XEN_CONSOLE: "console=com1 com1=115200,8n1,pci,msi,04:00.0"
> SUT_ADDR: test-1.testnet
> tags:
> - qubes-hw1
> @@ -199,7 +199,7 @@
> variables:
> PCIDEV: "01:00.0"
> PCIDEV_INTR: "MSI-X"
> - CONSOLE_OPTS: "console=com1 com1=115200,8n1,pci,msi"
> + XEN_CONSOLE: "console=com1 com1=115200,8n1,pci,msi"
> SUT_ADDR: test-11.testnet
> tags:
> - qubes-hw11
> diff --git a/automation/scripts/qubes-x86_64.sh b/automation/scripts/qubes-x86_64.sh
> index 065f03931bea..73cbdff2be72 100755
> --- a/automation/scripts/qubes-x86_64.sh
> +++ b/automation/scripts/qubes-x86_64.sh
> @@ -260,14 +260,14 @@ TFTP=/scratch/gitlab-runner/tftp
> CONTROLLER=control@thor.testnet
>
> echo "
> -multiboot2 (http)/gitlab-ci/xen $CONSOLE_OPTS loglvl=all guest_loglvl=all dom0_mem=4G console_timestamps=boot watchdog ${EXTRA_XEN_OPTS-} $extra_xen_opts
> +multiboot2 (http)/gitlab-ci/xen $XEN_CONSOLE loglvl=all guest_loglvl=all dom0_mem=4G console_timestamps=boot watchdog ${EXTRA_XEN_OPTS-} $extra_xen_opts
> module2 (http)/gitlab-ci/vmlinuz console=hvc0 root=/dev/ram0 earlyprintk=xen
> module2 --nounzip (http)/gitlab-ci/initrd-dom0
> " > $TFTP/grub.cfg
>
> echo "#!ipxe
>
> -kernel /gitlab-ci/xen $CONSOLE_OPTS loglvl=all guest_loglvl=all dom0_mem=4G console_timestamps=boot watchdog ${EXTRA_XEN_OPTS-} $extra_xen_opts || reboot
> +kernel /gitlab-ci/xen $XEN_CONSOLE loglvl=all guest_loglvl=all dom0_mem=4G console_timestamps=boot watchdog ${EXTRA_XEN_OPTS-} $extra_xen_opts || reboot
> module /gitlab-ci/vmlinuz console=hvc0 root=/dev/ram0 earlyprintk=xen || reboot
> module /gitlab-ci/initrd-dom0 || reboot
> boot
> diff --git a/automation/scripts/xilinx-smoke-dom0-x86_64.sh b/automation/scripts/xilinx-smoke-dom0-x86_64.sh
> index 5379738019a7..0fe96d62534b 100755
> --- a/automation/scripts/xilinx-smoke-dom0-x86_64.sh
> +++ b/automation/scripts/xilinx-smoke-dom0-x86_64.sh
> @@ -146,7 +146,7 @@ cd ..
>
> # Load software into TFTP server directory.
> TFTP="/scratch/gitlab-runner/tftp"
> -XEN_CMDLINE="${XEN_CMD_CONSOLE} ${XEN_CMD_XEN} ${XEN_CMD_DOM0} ${XEN_CMD_EXTRA}"
> +XEN_CMDLINE="${XEN_CONSOLE} ${XEN_CMD_XEN} ${XEN_CMD_DOM0} ${XEN_CMD_EXTRA}"
> cp -f binaries/xen ${TFTP}/${TEST_BOARD}/xen
> cp -f binaries/bzImage ${TFTP}/${TEST_BOARD}/vmlinuz
> cp -f binaries/dom0-rootfs.cpio.gz ${TFTP}/${TEST_BOARD}/initrd-dom0
> --
> 2.55.0
>
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [PATCH v1 03/13] CI: unify naming for hypervisor extra arguments
2026-11-05 1:36 ` [PATCH v1 03/13] CI: unify naming for hypervisor extra arguments dmukhin
@ 2026-12-03 1:35 ` Stefano Stabellini
0 siblings, 0 replies; 26+ messages in thread
From: Stefano Stabellini @ 2026-12-03 1:35 UTC (permalink / raw)
To: Denis Mukhin
Cc: xen-devel, andrew.cooper3, anthony.perard, jbeulich, julien,
michal.orzel, roger, sstabellini, dmukhin
On Wed, 4 Nov 2026, dmukhin@ford.com wrote:
> From: Denis Mukhin <dmukhin@ford.com>
>
> Update the name of environment variable used to append an extra
> hypervisor arguments to 'EXTRA_XEN_CMDLINE' for consistency
> with existing 'XEN_CMDLINE'.
>
> Not a functional change.
>
> Signed-off-by: Denis Mukhin <dmukhin@ford.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
> ---
> automation/gitlab-ci/test.yaml | 2 +-
> automation/scripts/qubes-x86_64.sh | 4 ++--
> 2 files changed, 3 insertions(+), 3 deletions(-)
>
> diff --git a/automation/gitlab-ci/test.yaml b/automation/gitlab-ci/test.yaml
> index f984c34a922e..047c4d513a65 100644
> --- a/automation/gitlab-ci/test.yaml
> +++ b/automation/gitlab-ci/test.yaml
> @@ -177,7 +177,7 @@
> PCIDEV: "56:00.0"
> PCIDEV_INTR: "MSI-X"
> XEN_CONSOLE: "console=com1 com1=115200,8n1"
> - EXTRA_XEN_OPTS: "fred"
> + EXTRA_XEN_CMDLINE: "fred"
> SUT_ADDR: test-22.testnet
> tags:
> - qubes-hw22
> diff --git a/automation/scripts/qubes-x86_64.sh b/automation/scripts/qubes-x86_64.sh
> index 73cbdff2be72..580a1e86f1ef 100755
> --- a/automation/scripts/qubes-x86_64.sh
> +++ b/automation/scripts/qubes-x86_64.sh
> @@ -260,14 +260,14 @@ TFTP=/scratch/gitlab-runner/tftp
> CONTROLLER=control@thor.testnet
>
> echo "
> -multiboot2 (http)/gitlab-ci/xen $XEN_CONSOLE loglvl=all guest_loglvl=all dom0_mem=4G console_timestamps=boot watchdog ${EXTRA_XEN_OPTS-} $extra_xen_opts
> +multiboot2 (http)/gitlab-ci/xen $XEN_CONSOLE loglvl=all guest_loglvl=all dom0_mem=4G console_timestamps=boot watchdog ${EXTRA_XEN_CMDLINE-} $extra_xen_opts
> module2 (http)/gitlab-ci/vmlinuz console=hvc0 root=/dev/ram0 earlyprintk=xen
> module2 --nounzip (http)/gitlab-ci/initrd-dom0
> " > $TFTP/grub.cfg
>
> echo "#!ipxe
>
> -kernel /gitlab-ci/xen $XEN_CONSOLE loglvl=all guest_loglvl=all dom0_mem=4G console_timestamps=boot watchdog ${EXTRA_XEN_OPTS-} $extra_xen_opts || reboot
> +kernel /gitlab-ci/xen $XEN_CONSOLE loglvl=all guest_loglvl=all dom0_mem=4G console_timestamps=boot watchdog ${EXTRA_XEN_CMDLINE-} $extra_xen_opts || reboot
> module /gitlab-ci/vmlinuz console=hvc0 root=/dev/ram0 earlyprintk=xen || reboot
> module /gitlab-ci/initrd-dom0 || reboot
> boot
> --
> 2.55.0
>
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [PATCH v1 04/13] CI: enable XTF build jobs
2026-11-05 1:36 ` [PATCH v1 04/13] CI: enable XTF build jobs dmukhin
@ 2026-12-03 1:44 ` Stefano Stabellini
0 siblings, 0 replies; 26+ messages in thread
From: Stefano Stabellini @ 2026-12-03 1:44 UTC (permalink / raw)
To: Denis Mukhin
Cc: xen-devel, andrew.cooper3, anthony.perard, jbeulich, julien,
michal.orzel, roger, sstabellini, dmukhin
On Wed, 4 Nov 2026, dmukhin@ford.com wrote:
> From: Denis Mukhin <dmukhin@ford.com>
>
> Build and publish XTF binaries to be consumed by test jobs.
>
> Signed-off-by: Denis Mukhin <dmukhin@ford.com>
> ---
> automation/gitlab-ci/build.yaml | 56 +++++++++++++++++++++++++++++++++
> 1 file changed, 56 insertions(+)
>
> diff --git a/automation/gitlab-ci/build.yaml b/automation/gitlab-ci/build.yaml
> index 3d37e0b572d0..1f6228ba74ff 100644
> --- a/automation/gitlab-ci/build.yaml
> +++ b/automation/gitlab-ci/build.yaml
> @@ -288,6 +288,7 @@ alpine-3.24-x86_64-gcc-debug:
> CONFIG_ARGO=y
> CONFIG_UBSAN=y
> CONFIG_UBSAN_FATAL=y
> + CONFIG_SHADOW_PAGING=y
> CONFIG_MICROCODE_SCAN_DEFAULT=y
> CONFIG_XHCI=y
CONFIG_SHADOW_PAGING=y is not needed to run XTF
> @@ -297,6 +298,9 @@ debian-13-x86_64-gcc-debug:
> variables:
> CONTAINER: debian:13-x86_64
> EXTRA_XEN_CONFIG: |
> + CONFIG_EXPERT=y
> + CONFIG_UNSUPPORTED=y
> + CONFIG_ARGO=y
> CONFIG_SHADOW_PAGING=y
I see that you added this because some XTF tests require ARGO but I'd
prefer it in a separate patch
> debian-13-x86_64-clang-debug:
> @@ -305,6 +309,9 @@ debian-13-x86_64-clang-debug:
> variables:
> CONTAINER: debian:13-x86_64
> EXTRA_XEN_CONFIG: |
> + CONFIG_EXPERT=y
> + CONFIG_UNSUPPORTED=y
> + CONFIG_ARGO=y
> CONFIG_SHADOW_PAGING=y
>
> debian-13-ppc64le-gcc-debug:
> @@ -840,3 +847,52 @@ macos-26-arm64:
> variables:
> XEN_TARGET_ARCH: arm64
> CROSS_COMPILE: aarch64-elf-
> +
> +.xtf-common:
> + variables:
> + BUILD_QEMU_XEN: y
> + script:
> + - git clone ${XTF_URI} xtf-${ARCH} -b ${XTF_BRANCH}
> + - make -C xtf-${ARCH} -j$(nproc) ${XTF_CONFIG}
It is better to use a variable name other than ARCH such as XTF_ARCH
because ARCH is also used by the XTF build system and the string needs
to match exactly, for instance x86_64 doesn't work, only x86 works.
> + - DESTDIR=$(pwd) xtfdir=/binaries make -C xtf-${ARCH} ${XTF_CONFIG} install
> + artifacts:
> + paths:
> + - binaries/*
> +
> +xtf-arm64-gcc-debug:
> + extends:
> + - .gcc-arm64-build-debug
> + - .xtf-common
> + <<: *build-test
> + variables:
> + CONTAINER: alpine:3.24-arm64v8
> + ARCH: arm64
> + XTF_URI: https://gitlab.com/xen-project/fusa/xtf.git
> + XTF_BRANCH: xtf-arm
> + XTF_CONFIG: |
> + CONFIG_GICV2=y
> + CONFIG_SBSA_UART=y
> +
> +xtf-x86_64-gcc-debug:
> + extends:
> + - .gcc-x86_64-build-debug
> + - .xtf-common
> + <<: *build-test
> + variables:
> + CONTAINER: alpine:3.24-x86_64
> + ARCH: x86_64
> + XTF_URI: https://xenbits.xen.org/git-http/xtf.git
> + XTF_BRANCH: master
> + XTF_CONFIG:
> +
> +xtf-x86_64-clang-debug:
> + extends:
> + - .clang-x86_64-build-debug
> + - .xtf-common
> + <<: *build-test
> + variables:
> + CONTAINER: debian:13-x86_64
> + ARCH: x86_64
> + XTF_URI: https://xenbits.xen.org/git-http/xtf.git
> + XTF_BRANCH: master
> + XTF_CONFIG:
I think we need to pass LLVM= so that XTF actually builds with clang
> --
> 2.55.0
>
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [PATCH v1 01/13] gitignore: exclude QEMU testing artifacts
2026-11-05 1:36 ` [PATCH v1 01/13] gitignore: exclude QEMU testing artifacts dmukhin
@ 2026-12-03 1:45 ` Stefano Stabellini
0 siblings, 0 replies; 26+ messages in thread
From: Stefano Stabellini @ 2026-12-03 1:45 UTC (permalink / raw)
To: Denis Mukhin
Cc: xen-devel, andrew.cooper3, anthony.perard, jbeulich, julien,
michal.orzel, roger, sstabellini, dmukhin
On Wed, 4 Nov 2026, dmukhin@ford.com wrote:
> From: Denis Mukhin <dmukhin@ford.com>
>
> Signed-off-by: Denis Mukhin <dmukhin@ford.com>
> ---
> .gitignore | 5 +++++
> automation/scripts/.gitignore | 1 +
> 2 files changed, 6 insertions(+)
>
> diff --git a/.gitignore b/.gitignore
> index 0aa9b801de63..46d14a86da84 100644
> --- a/.gitignore
> +++ b/.gitignore
> @@ -37,6 +37,11 @@ cscope.po.out
> .vimrc
> .vscode
>
> +# Local QEMU testing
> +binaries
> +smoke.serial
> +xen-config
I think they should be /binaries etc to match top level only. Other than
that:
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
I can fix on commit
> dist
>
> autom4te.cache/
> diff --git a/automation/scripts/.gitignore b/automation/scripts/.gitignore
> index a01b533c60a8..f5f0c15d2606 100644
> --- a/automation/scripts/.gitignore
> +++ b/automation/scripts/.gitignore
> @@ -3,4 +3,5 @@
> /smoke.serial
> /xtf-*/
>
> +*.log
> *.rom
> --
> 2.55.0
>
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [PATCH v1 05/13] CI: enable XTF status codes
2026-11-05 1:36 ` [PATCH v1 05/13] CI: enable XTF status codes dmukhin
@ 2026-12-03 1:58 ` Stefano Stabellini
0 siblings, 0 replies; 26+ messages in thread
From: Stefano Stabellini @ 2026-12-03 1:58 UTC (permalink / raw)
To: Denis Mukhin
Cc: xen-devel, andrew.cooper3, anthony.perard, jbeulich, julien,
michal.orzel, roger, sstabellini, dmukhin
On Wed, 4 Nov 2026, dmukhin@ford.com wrote:
> From: Denis Mukhin <dmukhin@ford.com>
>
> Enable XTF status code parsing detection similarly to python
> 'xtf-runner' script (XTF repo) to allow fine-grained test report.
>
> Signed-off-by: Denis Mukhin <dmukhin@ford.com>
> ---
> automation/scripts/console.exp | 25 ++++++++++++++++++++-----
> 1 file changed, 20 insertions(+), 5 deletions(-)
>
> diff --git a/automation/scripts/console.exp b/automation/scripts/console.exp
> index e27886bbef23..55373f86e673 100755
> --- a/automation/scripts/console.exp
> +++ b/automation/scripts/console.exp
> @@ -14,8 +14,9 @@
> # - WAKEUP_CMD (optional): command to execute to wakeup the system 30s after
> # seeing SUSPEND_MSG
> # - LOG_MSG (optional): final console message to wait for
> -# - PASSED: message to look for to consider test a success; if LOG_MSG is set,
> +# - PASSED (optional): message to look for to consider test a success; if LOG_MSG is set,
> # both LOG_MSG and PASSED must appear (in any order) for test to succeed
> +# - TEST_XTF (optional): distinguish XTF error codes
>
> if {[info exists env(TEST_TIMEOUT_OVERRIDE)]} {
> set timeout $env(TEST_TIMEOUT_OVERRIDE)
> @@ -31,12 +32,24 @@ match_max 10000
>
> eval spawn $env(TEST_CMD)
>
> +if {[info exists env(TEST_XTF)]} {
> + expect_before {
> + -re {Test result: SUCCESS} { exit 0 }
> + -re {ERROR-EOF} { exit 2 }
What prints "ERROR-EOF" on the console? The only producer is send_error,
and that goes to stderr, so expect does not see it.
> + -re {Test result: SKIP} { exit 3 }
> + -re {Neither HAP nor Shadow available} { exit 3 }
This is an error, it should not be a skip
> + -re {Test result: ERROR} { exit 4 }
> + -re {Test result: FAILURE} { exit 5 }
> + -re { crashed } { exit 6 }
XTF panic() ends with hypercall_shutdown(SHUTDOWN_crash) which prints:
(XEN) Hardware Dom0 crashed: 'noreboot' set - not rebooting.
The trick is that "crashed:" probably does not match " crashed "
This should work:
if {[info exists env(TEST_XTF)]} {
expect_before {
-re {Test result: SUCCESS} { exit 0 }
-re {Test result: SKIP} { exit 3 }
-re {Test result: ERROR} { exit 4 }
-re {Test result: FAILURE} { exit 5 }
-re {PANIC: } { exit 6 }
-re {Panic on CPU} { exit 6 }
-re {Dom[0-9]+ crashed:} { exit 6 }
-re {\(vcpu#[0-9]+\) crashed} { exit 6 }
}
}
> + }
> +}
> +
> expect_after {
> -re "(.*)\r" {
> exp_continue -continue_timer
> }
> timeout {send_error "\nERROR-Timeout!\n"; exit 1}
> - eof {send_error "\nERROR-EOF!\n"; exit 1}
> + eof {send_error "\nERROR-EOF!\n"; exit 2}
> }
timeout keeps exit 1, which is also what expect returns when the script
hits a Tcl error, and patch 7 maps 1 to TIMEOUT. Please give timeout its
own code, so that a TIMEOUT in the report really is a timeout
> if {[info exists env(UBOOT_CMD)]} {
> @@ -71,9 +84,11 @@ if {[info exists env(LOG_MSG)]} {
> }
> }
>
> -expect {
> - -re "$env(PASSED)" {
> - exit 0
> +if {[info exists env(PASSED)]} {
> + expect {
> + -re "$env(PASSED)" {
> + exit 0
> + }
> }
> }
>
> --
> 2.55.0
>
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [PATCH v1 06/13] CI: enable binutils for alpine and debian containers
2026-11-05 1:36 ` [PATCH v1 06/13] CI: enable binutils for alpine and debian containers dmukhin
@ 2026-12-03 2:01 ` Stefano Stabellini
0 siblings, 0 replies; 26+ messages in thread
From: Stefano Stabellini @ 2026-12-03 2:01 UTC (permalink / raw)
To: Denis Mukhin
Cc: xen-devel, andrew.cooper3, anthony.perard, jbeulich, julien,
michal.orzel, roger, sstabellini, dmukhin
On Wed, 4 Nov 2026, dmukhin@ford.com wrote:
> From: Denis Mukhin <dmukhin@ford.com>
>
> Enable binutils for the docker images used for test runners
> (e.g. 'readelf' may be useful for inspecting build artifacts).
>
> Signed-off-by: Denis Mukhin <dmukhin@ford.com>
Are you sure this is needed? binutils should be already present, pulled
in by gcc on Alpine and by build-essential on Debian.
> ---
> automation/build/alpine/3.24-arm64v8.dockerfile | 3 +++
> automation/build/alpine/3.24-x86_64.dockerfile | 3 +++
> automation/build/debian/12-arm64v8.dockerfile | 3 +++
> automation/build/debian/13-x86_64.dockerfile | 3 +++
> 4 files changed, 12 insertions(+)
>
> diff --git a/automation/build/alpine/3.24-arm64v8.dockerfile b/automation/build/alpine/3.24-arm64v8.dockerfile
> index 5b28d874efae..7952005141fc 100644
> --- a/automation/build/alpine/3.24-arm64v8.dockerfile
> +++ b/automation/build/alpine/3.24-arm64v8.dockerfile
> @@ -44,6 +44,9 @@ RUN <<EOF
> # Ocaml bindings/oxenstored
> ocaml
> ocaml-findlib
> +
> + # XTF
> + binutils
> )
>
> apk add --no-cache "${DEPS[@]}"
> diff --git a/automation/build/alpine/3.24-x86_64.dockerfile b/automation/build/alpine/3.24-x86_64.dockerfile
> index f93158e0186d..e7bb73b05044 100644
> --- a/automation/build/alpine/3.24-x86_64.dockerfile
> +++ b/automation/build/alpine/3.24-x86_64.dockerfile
> @@ -56,6 +56,9 @@ RUN <<EOF
>
> # livepatch-tools deps
> elfutils-dev
> +
> + # XTF
> + binutils
> )
>
> apk add --no-cache "${DEPS[@]}"
> diff --git a/automation/build/debian/12-arm64v8.dockerfile b/automation/build/debian/12-arm64v8.dockerfile
> index 5cc4de822cc6..6003a8eef0c6 100644
> --- a/automation/build/debian/12-arm64v8.dockerfile
> +++ b/automation/build/debian/12-arm64v8.dockerfile
> @@ -58,6 +58,9 @@ RUN <<EOF
> ovmf
> u-boot-qemu
> u-boot-tools
> +
> + # XTF
> + binutils
> )
>
> apt-get -y --no-install-recommends install "${DEPS[@]}"
> diff --git a/automation/build/debian/13-x86_64.dockerfile b/automation/build/debian/13-x86_64.dockerfile
> index 784299d52dc3..f11085685a37 100644
> --- a/automation/build/debian/13-x86_64.dockerfile
> +++ b/automation/build/debian/13-x86_64.dockerfile
> @@ -62,6 +62,9 @@ RUN <<EOF
>
> # for build-each-commit-gcc
> ccache
> +
> + # XTF
> + binutils
> )
>
> apt-get -y --no-install-recommends install "${DEPS[@]}"
> --
> 2.55.0
>
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [PATCH v1 07/13] CI: rework to allow hardware runners
2026-11-05 1:36 ` [PATCH v1 07/13] CI: rework to allow hardware runners dmukhin
@ 2026-12-03 2:18 ` Stefano Stabellini
0 siblings, 0 replies; 26+ messages in thread
From: Stefano Stabellini @ 2026-12-03 2:18 UTC (permalink / raw)
To: Denis Mukhin
Cc: xen-devel, andrew.cooper3, anthony.perard, jbeulich, julien,
michal.orzel, roger, sstabellini, dmukhin
On Wed, 4 Nov 2026, dmukhin@ford.com wrote:
> From: Denis Mukhin <dmukhin@ford.com>
>
> Rework current bash tooling to simplify its use for local testing
> and CI integration.
>
> Allow batching multiple tests in one run.
>
> The batching rules are:
> - Use 'SELECTED_GROUP_ONLY' for running only XTF group of jobs.
> If unset, run all XTF jobs.
> - Use file passed in 'XTF_MANIFEST' to select a group of tests to
> run. If unset, run all known tests.
> - Use regex in 'SELECTED_XTF_ONLY' environment variable to select
> a group of XTF tests. If unset, run all tests.
>
> Correctly resolve individual XTF test statuses returned from
> console.exp for pretty accounting.
>
> Include per-test title in the output.
>
> Rely on per-XTF 'info.json' for assembling per-test Xen command line.
>
> Prefix all per-arch XTF QEMU configuration fragments with "qemu-"
> prefix and move them under 'xtf' directory. While here, rename
> qemu-xtf.sh to xtf.sh since the code is now generic, not QEMU
> specific.
>
> Update all affected QEMU XTF jobs.
>
> Signed-off-by: Denis Mukhin <dmukhin@ford.com>
I like this patch but it is large and does 4 independent things that
should be possible to split in independent patches:
- rename include/xtf-* to include/xtf/qemu-*
- rewrite the runner (automation/scripts/xtf, manifest, accounting)
- switch the QEMU jobs over to it, dropping some jobs
- add the group rules and the hardware jobs
> ---
> That may clash with
> https://lore.kernel.org/xen-devel/20260922100900.29129-1-anthony@xenproject.org/
> and
> https://lore.kernel.org/xen-devel/1793715358.8631fc262581453bbf619ec5b2062170.1a1a1c44b87000403d@vates.tech
>
> My take - pytests is the way to go, but I had to unblock myself
> with running some AVIC testing, so ended up with existing bash
> infra cleanup.
> ---
> automation/gitlab-ci/test.yaml | 165 +++++---
> .../scripts/include/configs/xtf-arm64-config | 2 -
> .../scripts/include/configs/xtf-x86_64-config | 0
> .../include/configs/xtf-x86_64-efi-config | 0
> .../scripts/include/manifests/qemu-x86_64 | 75 ++++
> automation/scripts/include/xtf-runner | 138 ------
> .../include/{xtf-arm64 => xtf/qemu-arm64} | 13 +-
> .../include/{xtf-x86_64 => xtf/qemu-x86_64} | 13 +-
> .../{xtf-x86_64-efi => xtf/qemu-x86_64-efi} | 13 +-
> automation/scripts/qemu-xtf.sh | 28 --
> automation/scripts/xtf | 395 ++++++++++++++++++
> 11 files changed, 590 insertions(+), 252 deletions(-)
> delete mode 100644 automation/scripts/include/configs/xtf-arm64-config
> delete mode 100644 automation/scripts/include/configs/xtf-x86_64-config
> delete mode 100644 automation/scripts/include/configs/xtf-x86_64-efi-config
> create mode 100644 automation/scripts/include/manifests/qemu-x86_64
> delete mode 100644 automation/scripts/include/xtf-runner
> rename automation/scripts/include/{xtf-arm64 => xtf/qemu-arm64} (79%)
> rename automation/scripts/include/{xtf-x86_64 => xtf/qemu-x86_64} (53%)
> rename automation/scripts/include/{xtf-x86_64-efi => xtf/qemu-x86_64-efi} (75%)
> delete mode 100755 automation/scripts/qemu-xtf.sh
> create mode 100755 automation/scripts/xtf
>
> diff --git a/automation/gitlab-ci/test.yaml b/automation/gitlab-ci/test.yaml
> index 047c4d513a65..9ca93842dfe7 100644
> --- a/automation/gitlab-ci/test.yaml
> +++ b/automation/gitlab-ci/test.yaml
> @@ -5,6 +5,31 @@
> - if: $CI_JOB_NAME =~ $SELECTED_JOBS_ONLY
> when: on_success
>
> +.test-jobs-group:
> + extends:
> + - .test-jobs-common
> + rules:
> + - if: '$CI_JOB_NAME =~ $SELECTED_JOBS_ONLY && $SELECTED_GROUP_ONLY =~ /(^|,)(all|[*])(,|$)/'
> + when: on_success
> + - if: '$CI_JOB_NAME =~ $SELECTED_JOBS_ONLY && $SELECTED_GROUP_ONLY =~ $GROUP_REGEX'
> + when: on_success
> + - if: '$CI_JOB_NAME =~ $SELECTED_JOBS_ONLY'
> + when: manual
> + allow_failure: true
> + - when: never
> +
> +.test-jobs-perf:
> + extends:
> + - .test-jobs-group
> + variables:
> + GROUP_REGEX: '/(^|,)perf(,|$)/'
> +
> +.test-jobs-hardware-xtf:
> + extends:
> + - .test-jobs-group
> + variables:
> + GROUP_REGEX: '/(^|,)xtf(,|$)/'
> +
> .arm64-test-needs: &arm64-test-needs
> - project: $ARTIFACTS_REPO
> job: $LINUX_JOB_ARM64
> @@ -27,11 +52,44 @@
> job: microcode-x86
> ref: $ARTIFACTS_BRANCH
>
> +.xtf-arm64-gcc-debug:
> + variables:
> + ARCH: arm64
> + script:
> + - time ./automation/scripts/xtf 2>&1 | tee ${LOGFILE}
> + artifacts:
> + paths:
> + - '*.log'
> + when: always
> + needs:
> + - *arm64-test-needs
> + - alpine-3.24-arm64-gcc-debug
> + - xtf-arm64-gcc-debug
> +
> +.xtf-x86_64-gcc-debug:
> + variables:
> + ARCH: x86_64
> + script:
> + - |
> + if [[ "${CONTAINER}" != "debian:13-x86_64" ]]; then
> + apk add --no-cache binutils
We shouldn't need this
> + fi
> + - time ./automation/scripts/xtf 2>&1 | tee ${LOGFILE}
> + artifacts:
> + paths:
> + - '*.log'
> + when: always
> + needs:
> + - *x86_64-test-needs
> + - alpine-3.24-x86_64-gcc-debug
> + - xtf-x86_64-gcc-debug
In general for any job group we should produce a junit xml output so
that the gitlab ui can show the individual results easily
> .qemu-arm64:
> extends: .test-jobs-common
> variables:
> CONTAINER: debian:13-arm64v8
> LOGFILE: qemu-smoke-arm64.log
> + XTF_TARGET: qemu-arm64
> artifacts:
> paths:
> - smoke.serial
> @@ -58,6 +116,7 @@
> variables:
> CONTAINER: debian:13-x86_64
> LOGFILE: qemu-smoke-x86_64.log
> + XTF_TARGET: qemu-x86_64
> artifacts:
> paths:
> - smoke.serial
> @@ -66,11 +125,6 @@
> tags:
> - x86_64
>
> -.qemu-smoke-x86_64:
> - extends: .qemu-x86_64
> - variables:
> - TEST_TIMEOUT_OVERRIDE: 120
> -
> .qemu-riscv64:
> extends: .test-jobs-common
> variables:
> @@ -503,6 +557,12 @@ zen2-suspend-x86_64-gcc-debug:
> - *x86_64-test-needs
> - alpine-3.24-x86_64-gcc-debug
>
> +zen2-xtf-x86_64-gcc-debug:
> + extends:
> + - .zen2-x86_64
> + - .xtf-x86_64-gcc-debug
> + - .test-jobs-hardware-xtf
> +
> zen3p-smoke-x86_64-gcc-debug:
> extends: .zen3p-x86_64
> script:
> @@ -565,6 +625,12 @@ zen3p-tools-tests-pvh-x86_64-gcc-debug:
> - *x86_64-test-needs
> - alpine-3.24-x86_64-gcc-debug
>
> +zen3p-xtf-x86_64-gcc-debug:
> + extends:
> + - .zen3p-x86_64
> + - .xtf-x86_64-gcc-debug
> + - .test-jobs-hardware-xtf
> +
> qemu-smoke-dom0-arm64-gcc:
> extends: .qemu-arm64
> script:
> @@ -653,21 +719,13 @@ qemu-smoke-dom0less-arm64-gcc-debug-earlyprintk:
> - *arm64-test-needs
> - alpine-3.24-arm64-gcc-debug-earlyprintk
>
> -qemu-xtf-dom0less-arm64-gcc-hyp-xen-version:
> - extends: .qemu-arm64
> - script:
> - - ./automation/scripts/qemu-xtf.sh arm64 mmu64le hyp-xen-version 2>&1 | tee ${LOGFILE}
> - needs:
> - - *arm64-test-needs
> - - alpine-3.24-arm64-gcc
> -
> -qemu-xtf-dom0less-arm64-gcc-debug-hyp-xen-version:
> - extends: .qemu-arm64
> - script:
> - - ./automation/scripts/qemu-xtf.sh arm64 mmu64le hyp-xen-version 2>&1 | tee ${LOGFILE}
> - needs:
> - - *arm64-test-needs
> - - alpine-3.24-arm64-gcc-debug
> +qemu-xtf-arm64-gcc-debug:
> + extends:
> + - .qemu-arm64
> + - .test-jobs-common
> + - .xtf-arm64-gcc-debug
> + variables:
> + TEST_TIMEOUT_OVERRIDE: 10
>
> qemu-smoke-dom0-arm32-gcc:
> extends: .qemu-arm32
> @@ -741,49 +799,36 @@ qemu-alpine-x86_64-gcc:
> - *x86_64-test-needs
> - alpine-3.24-x86_64-gcc
>
> -qemu-smoke-x86_64-gcc:
> - extends: .qemu-smoke-x86_64
> - script:
> - - ./automation/scripts/qemu-xtf.sh x86_64 pv64 example 2>&1 | tee ${LOGFILE}
> - needs:
> - - debian-13-x86_64-gcc-debug
> -
> -qemu-smoke-x86_64-clang:
> - extends: .qemu-smoke-x86_64
> - script:
> - - ./automation/scripts/qemu-xtf.sh x86_64 pv64 example 2>&1 | tee ${LOGFILE}
> - needs:
> - - debian-13-x86_64-clang-debug
> -
> -qemu-smoke-x86_64-gcc-pvh:
> - extends: .qemu-smoke-x86_64
> - script:
> - - ./automation/scripts/qemu-xtf.sh x86_64 hvm64 example 2>&1 | tee ${LOGFILE}
> - needs:
> - - debian-13-x86_64-gcc-debug
> -
> -qemu-smoke-x86_64-clang-pvh:
> - extends: .qemu-smoke-x86_64
> - script:
> - - ./automation/scripts/qemu-xtf.sh x86_64 hvm64 example 2>&1 | tee ${LOGFILE}
> - needs:
> - - debian-13-x86_64-clang-debug
> -
> -qemu-smoke-x86_64-gcc-efi:
> - extends: .qemu-smoke-x86_64
> - script:
> - - ./automation/scripts/qemu-xtf.sh x86_64-efi pv64 example 2>&1 | tee ${LOGFILE}
> - needs:
> - - debian-13-x86_64-gcc-debug
> -
> -qemu-xtf-argo-x86_64-gcc-debug:
> - extends: .qemu-smoke-x86_64
> +qemu-xtf-x86_64-gcc-debug:
> + extends:
> + - .qemu-x86_64
> + - .test-jobs-common
> + - .xtf-x86_64-gcc-debug
> variables:
> - TEST_TIMEOUT_OVERRIDE: 60
> + TEST_TIMEOUT_OVERRIDE: 10
> + XTF_MANIFEST: include/manifests/qemu-x86_64
> +
> +qemu-xtf-x86_64-efi-gcc-debug:
> + extends: qemu-xtf-x86_64-gcc-debug
> + variables:
> + XTF_TARGET: qemu-x86_64-efi
> +
> +qemu-xtf-x86_64-clang-debug:
> + extends: .qemu-x86_64
> + variables:
> + ARCH: x86_64
> + TEST_TIMEOUT_OVERRIDE: 10
> + XTF_MANIFEST: include/manifests/qemu-x86_64
> script:
> - - ./automation/scripts/qemu-xtf.sh x86_64 pv64 argo 2>&1 | tee ${LOGFILE}
> + - time ./automation/scripts/xtf 2>&1 | tee ${LOGFILE}
> + artifacts:
> + paths:
> + - '*.log'
> + when: always
> needs:
> - - alpine-3.24-x86_64-gcc-debug
> + - *x86_64-test-needs
> + - debian-13-x86_64-clang-debug
> + - xtf-x86_64-clang-debug
>
> qemu-smoke-riscv64-gcc:
> extends: .qemu-riscv64
> diff --git a/automation/scripts/include/configs/xtf-arm64-config b/automation/scripts/include/configs/xtf-arm64-config
> deleted file mode 100644
> index 99427409276d..000000000000
> --- a/automation/scripts/include/configs/xtf-arm64-config
> +++ /dev/null
> @@ -1,2 +0,0 @@
> -CONFIG_GICV2=y
> -CONFIG_SBSA_UART=y
> diff --git a/automation/scripts/include/configs/xtf-x86_64-config b/automation/scripts/include/configs/xtf-x86_64-config
> deleted file mode 100644
> index e69de29bb2d1..000000000000
> diff --git a/automation/scripts/include/configs/xtf-x86_64-efi-config b/automation/scripts/include/configs/xtf-x86_64-efi-config
> deleted file mode 100644
> index e69de29bb2d1..000000000000
> diff --git a/automation/scripts/include/manifests/qemu-x86_64 b/automation/scripts/include/manifests/qemu-x86_64
> new file mode 100644
> index 000000000000..82b40deb94e5
> --- /dev/null
> +++ b/automation/scripts/include/manifests/qemu-x86_64
> @@ -0,0 +1,75 @@
> +test-hvm32-argo
> +test-hvm32-cpuid
> +test-hvm32-debug-regs
> +test-hvm32-example
> +test-hvm32-invlpg
> +test-hvm32-lm-ts
> +test-hvm32-selftest
> +test-hvm32-xsa-122
> +test-hvm32-xsa-188
> +test-hvm32-xsa-239
> +test-hvm32-xsa-317
> +test-hvm32pae-argo
> +test-hvm32pae-cpuid
> +test-hvm32pae-debug-regs
> +test-hvm32pae-example
> +test-hvm32pae-invlpg
> +test-hvm32pae-selftest
> +test-hvm32pae-xsa-122
> +test-hvm32pae-xsa-188
> +test-hvm32pae-xsa-317
> +test-hvm32pse-argo
> +test-hvm32pse-cpuid
> +test-hvm32pse-debug-regs
> +test-hvm32pse-example
> +test-hvm32pse-selftest
> +test-hvm32pse-xsa-122
> +test-hvm32pse-xsa-188
> +test-hvm32pse-xsa-317
> +test-hvm64-argo
> +test-hvm64-cpuid
> +test-hvm64-debug-regs
> +test-hvm64-example
> +test-hvm64-invlpg
> +test-hvm64-lbr-tsx-vmentry
> +test-hvm64-lm-ts
> +test-hvm64-rtm-check
> +test-hvm64-selftest
> +test-hvm64-xsa-122
> +test-hvm64-xsa-168
> +test-hvm64-xsa-173
> +test-hvm64-xsa-188
> +test-hvm64-xsa-195
> +test-hvm64-xsa-221
> +test-hvm64-xsa-231
> +test-hvm64-xsa-232
> +test-hvm64-xsa-269
> +test-hvm64-xsa-277
> +test-hvm64-xsa-278
> +test-hvm64-xsa-304
> +test-hvm64-xsa-317
> +test-hvm64-xsa-454
> +test-hvm64-xsa-463
> +test-pv64-argo
> +test-pv64-cpuid
> +test-pv64-example
> +test-pv64-rtm-check
> +test-pv64-xsa-122
> +test-pv64-xsa-182
> +test-pv64-xsa-188
> +test-pv64-xsa-193
> +test-pv64-xsa-212
> +test-pv64-xsa-221
> +test-pv64-xsa-224
> +test-pv64-xsa-227
> +test-pv64-xsa-231
> +test-pv64-xsa-232
> +test-pv64-xsa-234
> +test-pv64-xsa-255
> +test-pv64-xsa-259
> +test-pv64-xsa-279
> +test-pv64-xsa-286
> +test-pv64-xsa-296
> +test-pv64-xsa-317
> +test-pv64-xsa-333
> +test-pv64-xsa-7
> diff --git a/automation/scripts/include/xtf-runner b/automation/scripts/include/xtf-runner
> deleted file mode 100644
> index d1ef888465c3..000000000000
> --- a/automation/scripts/include/xtf-runner
> +++ /dev/null
> @@ -1,138 +0,0 @@
> -#!/bin/bash
> -#
> -# XTF test utilities.
> -#
> -# Environment variables:
> -# BOOT_MSG: Expected boot message
> -# FW_PREFIX: Firmware images path including '/' at the end
> -# PASSED: XTF test printout in case of a pass
> -# QEMU_PREFIX: QEMU path including '/' at the end
> -# TEST_LOG: Output log file
> -# UBOOT_CMD: U-Boot command line
> -# WORKDIR: Test working directory
> -# XEN_BINARY: Xen binary location
> -# XEN_CONSOLE: Xen console device name
> -# XTF_SRC_CONFIG: XTF config file
> -# XTF_SRC_BRANCH: XTF branch
> -# XTF_SRC_URI: XTF source code URI
> -
> -# Output log file
> -TEST_LOG="${TEST_LOG:-${XEN_ROOT}/smoke.serial}"
> -# XTF test printout in case of a pass
> -PASSED="${PASSED:-Test result: SUCCESS}"
> -# Expected boot message
> -BOOT_MSG="${BOOT_MSG:-Latest ChangeSet: }"
> -# Test working directory
> -WORKDIR="${WORKDIR:-${XEN_ROOT}/binaries}"
> -# XTF source code
> -XTF_SRC_CONFIG="${XTF_SRC_CONFIG:-include/configs/xtf-${ARCH}-config}"
> -
> -function die()
> -{
> - set +x
> - echo "FATAL: $*" >&2
> - exit 1
> -}
> -
> -# Build an XTF test binary.
> -# $1 Test variant.
> -# $2 Test name.
> -function xtf_build_binary()
> -{
> - local xtf_variant=$1
> - local xtf_name=$2
> - local xtf_dir="xtf-${ARCH}"
> -
> - # Crude check for local testing
> - if [ ! -d ${xtf_dir} ]; then
> - git clone ${XTF_SRC_URI} ${xtf_dir} -b ${XTF_SRC_BRANCH}
> - fi
> -
> - make \
> - -C ${xtf_dir} \
> - -j$(nproc) \
> - $(tr '\n' ' ' < ${XTF_SRC_CONFIG}) \
> - TESTS=tests/${xtf_name}
> -
> - export XTF_NAME="${xtf_name}"
> - export XTF_VARIANT="${xtf_variant}"
> - export XTF_WORKDIR="$(readlink -f ${xtf_dir})"
> - export XTF_BINARY="${XTF_WORKDIR}/tests/${xtf_name}/test-${xtf_variant}-${xtf_name}"
> -}
> -
> -# Build Xen command line for running an XTF test.
> -# $1 Test variant.
> -# $2 Test name.
> -function xtf_build_cmdline()
> -{
> - local xtf_variant=$1
> - local xtf_name=$2
> - declare -a cmdline=()
> - declare -A per_test_args=(
> - [argo]="argo=1,mac-permissive=1"
> - )
> -
> - cmdline+=("${XEN_CMDLINE}")
> -
> - # NB: OK to have hvm64, which is x86-only variant
> - if [[ $xtf_variant == "hvm64" ]]; then
> - cmdline+=("dom0-iommu=none dom0=pvh")
> - fi
> -
> - if [[ -v per_test_args[${xtf_name}] ]]; then
> - cmdline+=("${per_test_args[${xtf_name}]}")
> - fi
> -
> - export XEN_CMDLINE="${cmdline[@]}"
> -}
> -
> -# Build an XTF test environment.
> -# $1 Test variant.
> -# $2 Test name.
> -function xtf_build_test()
> -{
> - local v=$1
> - local xtf_name=$2
> - local xtf_variant=""
> -
> - for x in ${XTF_SRC_VARIANTS}; do
> - if [[ "${x}" == "${v}" ]]; then
> - xtf_variant=${v}
> - break
> - fi
> - done
> - if [[ -z $xtf_variant ]]; then
> - die "unsupported test variant '$1', supported variants: ${XTF_SRC_VARIANTS}"
> - fi
> -
> - xtf_build_binary ${xtf_variant} ${xtf_name}
> - xtf_build_cmdline ${xtf_variant} ${xtf_name}
> -}
> -
> -# Execute an XTF test.
> -function xtf_run_test()
> -{
> - rm -f ${TEST_LOG}
> - export BOOT_MSG PASSED TEST_CMD TEST_LOG UBOOT_CMD
> - ./console.exp |& sed 's/\r\+$//'
> -}
> -
> -# Setup environment and run an XTF test.
> -# $1 Test variant.
> -# $2 Test name.
> -function xtf_test()
> -{
> - # Out: FW_*, QEMU_*, XEN_{BINARY,CONSOLE}, XTF_SRC_*
> - xtf_arch_prepare
> -
> - # In: XTF_SRC_*
> - # OUt: XTF_{BINARY,NAME,VARIANT,WORKDIR} and XEN_CMDLINE
> - xtf_build_test $@
> -
> - # In: FW_*, QEMU_*, XTF_*, XEN_*
> - # Out: BOOT_MSG, PASSED, TEST_{CMD,LOG}, UBOOT_CMD
> - xtf_arch_setup
> -
> - # In: BOOT_MSG, PASSED, TEST_{CMD,LOG}, UBOOT_CMD
> - xtf_run_test
> -}
> diff --git a/automation/scripts/include/xtf-arm64 b/automation/scripts/include/xtf/qemu-arm64
> similarity index 79%
> rename from automation/scripts/include/xtf-arm64
> rename to automation/scripts/include/xtf/qemu-arm64
> index 5d851af788a1..1f23e33fc0ac 100644
> --- a/automation/scripts/include/xtf-arm64
> +++ b/automation/scripts/include/xtf/qemu-arm64
> @@ -3,20 +3,17 @@
> # XTF test utilities (arm64).
> #
>
> -# Arch-specific environment overrides.
> -function xtf_arch_prepare()
> +# Target-specific environment overrides.
> +function xtf_init()
> {
> export FW_PREFIX="${FW_PREFIX:-/usr/lib/u-boot/qemu_arm64/}"
> export QEMU_PREFIX="${QEMU_PREFIX:-}"
> export XEN_BINARY="${XEN_BINARY:-${WORKDIR}/xen}"
> - export XEN_CMDLINE="${XEN_CMDLINE:-loglvl=all noreboot console_timestamps=boot console=dtuart}"
> - export XTF_SRC_BRANCH="${XTF_SRC_BRANCH:-xtf-arm}"
> - export XTF_SRC_URI="${XTF_SRC_URI:-https://gitlab.com/xen-project/fusa/xtf.git}"
> - export XTF_SRC_VARIANTS="mmu64le"
> + export EXTRA_XEN_CMDLINE="${XEN_CMDLINE:-loglvl=all noreboot console_timestamps=boot console=dtuart}"
> }
>
> -# Perform arch-specific XTF environment setup.
> -function xtf_arch_setup()
> +# Perform target-specific XTF environment setup.
> +function xtf_setup_host()
> {
> # Crude check for local testing
> if [ ! -d imagebuilder ]; then
> diff --git a/automation/scripts/include/xtf-x86_64 b/automation/scripts/include/xtf/qemu-x86_64
> similarity index 53%
> rename from automation/scripts/include/xtf-x86_64
> rename to automation/scripts/include/xtf/qemu-x86_64
> index 186f074bd8eb..0e079893dc25 100644
> --- a/automation/scripts/include/xtf-x86_64
> +++ b/automation/scripts/include/xtf/qemu-x86_64
> @@ -3,20 +3,17 @@
> # XTF test utilities (x86_64).
> #
>
> -# Arch-specific environment overrides.
> -function xtf_arch_prepare()
> +# Target-specific environment overrides.
> +function xtf_init()
> {
> export FW_PREFIX="${FW_PREFIX:-}"
> export QEMU_PREFIX="${QEMU_PREFIX:-}"
> export XEN_BINARY="${XEN_BINARY:-${WORKDIR}/xen}"
> - export XEN_CMDLINE="${XEN_CMDLINE:-loglvl=all noreboot console_timestamps=boot console=com1}"
> - export XTF_SRC_BRANCH="${XTF_SRC_BRANCH:-master}"
> - export XTF_SRC_URI="${XTF_SRC_URI:-https://xenbits.xen.org/git-http/xtf.git}"
> - export XTF_SRC_VARIANTS="hvm64 pv64"
> + export EXTRA_XEN_CMDLINE="${XEN_CMDLINE:-loglvl=all noreboot console_timestamps=boot console=com1}"
> }
>
> -# Perform arch-specific XTF environment setup.
> -function xtf_arch_setup()
> +# Perform target-specific XTF environment setup.
> +function xtf_setup_host()
> {
> export TEST_CMD="${QEMU_PREFIX}qemu-system-x86_64 \
> -no-reboot \
> diff --git a/automation/scripts/include/xtf-x86_64-efi b/automation/scripts/include/xtf/qemu-x86_64-efi
> similarity index 75%
> rename from automation/scripts/include/xtf-x86_64-efi
> rename to automation/scripts/include/xtf/qemu-x86_64-efi
> index 15c6463dcdc5..dd2b8c3c6e52 100644
> --- a/automation/scripts/include/xtf-x86_64-efi
> +++ b/automation/scripts/include/xtf/qemu-x86_64-efi
> @@ -3,20 +3,17 @@
> # XTF test utilities (x86_64, EFI).
> #
>
> -# Arch-specific environment overrides.
> -function xtf_arch_prepare()
> +# Target-specific environment overrides.
> +function xtf_init()
> {
> export FW_PREFIX="${FW_PREFIX:-/usr/share/OVMF/}"
> export QEMU_PREFIX="${QEMU_PREFIX:-}"
> export XEN_BINARY="${XEN_BINARY:-${WORKDIR}/xen.efi}"
> - export XEN_CMDLINE="${XEN_CMDLINE:-loglvl=all noreboot console_timestamps=boot console=com1}"
> - export XTF_SRC_BRANCH="${XTF_SRC_BRANCH:-master}"
> - export XTF_SRC_URI="${XTF_SRC_URI:-https://xenbits.xen.org/git-http/xtf.git}"
> - export XTF_SRC_VARIANTS="hvm64 pv64"
> + export EXTRA_XEN_CMDLINE="${XEN_CMDLINE:-loglvl=all noreboot console_timestamps=boot console=com1}"
> }
>
> -# Perform arch-specific XTF environment setup.
> -function xtf_arch_setup()
> +# Perform target-specific XTF environment setup.
> +function xtf_setup_host()
> {
> local esp_dir="${WORKDIR}/boot-esp"
> local efi_dir="${esp_dir}/EFI/BOOT"
> diff --git a/automation/scripts/qemu-xtf.sh b/automation/scripts/qemu-xtf.sh
> deleted file mode 100755
> index 55c221b36dc5..000000000000
> --- a/automation/scripts/qemu-xtf.sh
> +++ /dev/null
> @@ -1,28 +0,0 @@
> -#!/bin/bash
> -#
> -# XTF test runner (QEMU).
> -#
> -
> -set -e -o pipefail
> -
> -if [ $# -lt 3 ]; then
> - echo "Usage: $(basename $0) ARCH XTF-VARIANT XTF-NAME"
> - exit 0
> -fi
> -
> -export ARCH="$1"
> -shift
> -
> -set -x
> -
> -export XEN_ROOT="${PWD}"
> -cd $(dirname $0)
> -
> -source include/xtf-runner
> -
> -if [ ! -f "include/xtf-${ARCH}" ]; then
> - die "unsupported architecture '${ARCH}'"
> -fi
> -source include/xtf-${ARCH}
> -
> -xtf_test $@
> diff --git a/automation/scripts/xtf b/automation/scripts/xtf
> new file mode 100755
> index 000000000000..9f75ad5f99d0
> --- /dev/null
> +++ b/automation/scripts/xtf
> @@ -0,0 +1,395 @@
> +#!/bin/bash
> +#
> +# XTF test utilities.
> +#
> +# Environment variables:
> +# ARCH: Target CPU architecture
> +# BOOT_MSG: Expected boot message
> +# FW_PREFIX: Firmware images path including '/' at the end
> +# QEMU_PREFIX: QEMU path including '/' at the end
> +# TEST_LOG: Output log file
> +# UBOOT_CMD: U-Boot command line
> +# WORKDIR: Test working directory
> +# XEN_BINARY: Xen binary location
> +# XEN_CONSOLE: Xen console device name
> +# XTF_SRC_CONFIG: XTF config file
> +# XTF_SRC_BRANCH: XTF branch
> +# XTF_SRC_URI: XTF source code URI
> +# XTF_TARGET: Target name
> +
> +function die()
> +{
> + set +x
> + echo "FATAL: $*" >&2
> + exit 255
> +}
> +
> +set -e -o pipefail
> +set -x
> +
> +if [[ -z "${ARCH}" ]]; then
> + die "'\$ARCH' is not defined"
> +fi
> +
> +if [[ -z "${XTF_TARGET}" ]]; then
> + die "'\$XTF_TARGET' is not defined"
> +fi
> +
> +TOP="$(readlink -f $(dirname $0))"
> +xtf_include="${TOP}/include/xtf/${XTF_TARGET}"
> +
> +if [[ ! -e "${xtf_include}" ]]; then
> + die "cannot find '${xtf_include}'"
> +fi
> +
> +# Scratch directory
> +XEN_ROOT="${PWD}"
> +# Output log file
> +TEST_LOG="${TEST_LOG:-${XEN_ROOT}/smoke.serial}"
> +# Expected boot message
> +BOOT_MSG="${BOOT_MSG:-Latest ChangeSet: }"
> +# Test working directory
> +WORKDIR="${WORKDIR:-${XEN_ROOT}/binaries}"
> +# XTF source code
> +XTF_SRC_CONFIG="${XTF_SRC_CONFIG:-include/configs/xtf-${ARCH}-config}"
> +
> +cd ${TOP}
> +
> +source include/xtf/${XTF_TARGET}
> +
> +function xtf_string_from_elf()
> +{
> + str="$1"
> + xtf_binary="$2"
> + local addr=0
> + local size=0
> + local idx=0
> + local sec_off=""
> + local offset=0
> +
> + if ! command -v readelf &>/dev/null; then
> + die "readelf not found (install binutils)"
> + fi
> +
> + # Get symbol address, size, and section index.
> + read -r addr size idx < <(
> + readelf -Ws "${xtf_binary}" |
> + awk '$8 == "'${str}'" && $7 ~ /^[0-9]+$/ {
> + print $2, $3, $7
> + exit
> + }'
> + )
> +
> + if [[ -z "${idx}" || ${size} == 0 ]]; then
> + die "no ${str} in '${xtf_binary}'"
> + fi
> +
> + # Get section virtual address and file offset.
> + read -r sec_addr sec_off < <(
> + readelf -WS "${xtf_binary}" |
> + awk -v idx="${idx}" \
> + '$0 ~ "^[[:space:]]*\\[[[:space:]]*" idx "\\]" {
> + sub(/^[[:space:]]*\[[[:space:]]*[0-9]+\][[:space:]]*/, "")
> + print $3, $4
> + exit
> + }'
> + )
> +
> + if [[ -z "${sec_off}" ]]; then
> + die "failed to extact ${str} from '${xtf_binary}'"
> + fi
> +
> + # xtf_binary symbol address -> file offset.
> + offset=$((16#${sec_off} + 16#${addr} - 16#${sec_addr}))
> +
> + # Extract the NUL-terminated string.
> + dd if="${xtf_binary}" bs=1 skip="${offset}" count="${size}" status=none |
> + tr -d '\000'
> +}
> +
> +function xtf_get_bootargs()
> +{
> + local xtf_info=$1
> + local line
> + local re='"xen,xen-bootargs"[[:space:]]*:[[:space:]]*"([^"]*)"'
> +
> + while IFS= read -r line || [[ -n "$line" ]]; do
> + if [[ "$line" =~ $re ]]; then
> + printf '%s\n' "${BASH_REMATCH[1]}"
> + return 0
> + fi
> + done < "$xtf_info"
> +}
> +
> +# Build Xen command line for running an XTF test.
> +# $1 Test variant.
> +# $2 Test manifest.
> +function xtf_setup_cmdline()
> +{
> + local xtf_variant=$1
> + local xtf_info=$2
> + local -a cmdline=("${EXTRA_XEN_CMDLINE}")
> +
> + if [[ "$xtf_variant" == hvm* ]]; then
> + cmdline+=("iommu=0 dom0-iommu=none dom0=pvh")
> + fi
> +
> + if [[ -f "$xtf_info" ]]; then
> + cat "${xtf_info}"
> + cmdline+=($(xtf_get_bootargs "${xtf_info}"))
> + fi
> +
> + export XEN_CMDLINE="${cmdline[*]}"
> +}
> +
> +# Execute an XTF test.
> +function xtf_run()
> +{
> + rm -f ${TEST_LOG}
> + export BOOT_MSG TEST_CMD TEST_LOG UBOOT_CMD
> +
> + printf "XTF binary: %s\n" "${XTF_BINARY}"
> + printf "XTF log: %s\n" "${XTF_LOG}"
> + printf "Xen binary: %s\n" "${XEN_BINARY}"
> + printf "Xen Command Line: %s\n" "${XEN_CMDLINE}"
> +
> + TEST_XTF=y ./console.exp |& sed 's/\r\+$//'
> +}
> +
> +function print_title()
> +{
> + local str="$1"
> + local width=$(( 80 - ${#str} - 2 ))
> + local left=$(( width / 2 ))
> + local right=$(( width - left ))
> +
> + printf -v lhs '%*s' "$left" ''
> + printf -v rhs '%*s' "$right" ''
> + printf '\n%s %s %s\n' "${lhs// /=}" "$str" "${rhs// /=}"
> +}
> +
> +function main()
> +{
> + declare -A nr_tests_by_status=(
> + [PASS]=0
> + [TIMEOUT]=0
> + [EOF]=0
> + [SKIP]=0
> + [ERROR]=0
> + [FAIL]=0
> + [CRASH]=0
> + [UNKNOWN]=0
> + )
> + local -A xtf_completed=()
> + local -A xtf_binaries_selected=()
> + local -A xtf_binary_by_path=()
> + local -a xtf_binaries=()
> + local -a xtf_binaries_filtered=()
> + local nr_tests=0
> + local xtf_binary xtf_file xtf_variant xtf_name xtf_title
> +
> + xtf_init
> +
> + #
> + # Pass 1: Discover all XTF ELF binaries.
> + #
> +
> + while IFS= read -r -d '' xtf_binary; do
> + if ! readelf -h "$xtf_binary" &>/dev/null; then
> + continue
> + fi
> +
> + # Some XTF build quirks
> + case "$ARCH" in
> + arm64)
> + if [[ "$xtf_binary" != *-syms ]]; then
> + continue
> + fi
> +
> + xtf_binary="${xtf_binary%-syms}"
> +
> + if [[ ! -s "$xtf_binary" ]]; then
> + die "Missing ARM64 boot image '$xtf_binary'"
> + fi
> + ;;
> + *)
> + ;;
> + esac
> +
> + xtf_binaries+=(${xtf_binary})
> + done < <(find "$WORKDIR" -mindepth 2 -type f -name 'test-*' -print0)
> +
> + if (( ${#xtf_binaries[@]} == 0 )); then
> + die "No XTF ELF binaries found in '$WORKDIR'"
> + fi
> +
> + #
> + # Load test suite manifest, if any.
> + #
> +
> + if [[ -n ${XTF_MANIFEST:-} ]]; then
> + local -a lines=()
> +
> + if [[ ! -r "$XTF_MANIFEST" ]]; then
> + die "Cannot read '$XTF_MANIFEST'"
> + fi
> +
> + mapfile -t lines < "$XTF_MANIFEST"
> + for x in "${lines[@]}"; do
> + xtf_binaries_selected["${x}"]=1
> + done
> +
> + if (( ${#xtf_binaries_selected[@]} == 0 )); then
> + die "No tests found in '$XTF_MANIFEST'"
> + fi
> + fi
> +
> + #
> + # Pass 2: Filter discovered XTF binaries.
> + #
> +
> + for xtf_binary in "${xtf_binaries[@]}"; do
> + xtf_file=$(basename "${xtf_binary}")
> +
> + # Filter 1: YAML
> + if [[ -n ${XTF_MANIFEST:-} && -z ${xtf_binaries_selected[$xtf_file]:-} ]]; then
> + continue
> + fi
> +
> + # Filter 2: regex
> + if [[ -n ${SELECTED_XTF_ONLY:-} && ! $xtf_file =~ $SELECTED_XTF_ONLY ]]; then
> + continue
> + fi
> +
> + xtf_binaries_filtered+=("$xtf_binary")
> + done
> +
> + for xtf_binary in "${xtf_binaries_filtered[@]}"; do
> + local xtf_dir=$(dirname "$xtf_binary")
> + xtf_binary_by_path["$xtf_binary"]="${xtf_dir}/info.json"
> + done
> + nr_tests=${#xtf_binary_by_path[@]}
> +
> + if (( ${nr_tests} == 0 )); then
> + die "No XTF tests matched the selection"
> + fi
> +
> + #
> + # Pass 3: Execute selected tests.
> + #
> +
> + print_title "Selected tests (${nr_tests})"
> +
> + local nr=1
> + for xtf_binary in "${!xtf_binary_by_path[@]}"; do
> + local ret status_str
> + local xtf_pid progress_pid
> + local t_start t_end
> + local xtf_info="${xtf_binary_by_path[${xtf_binary}]}"
> +
> + xtf_file="${xtf_binary##*/}"
> +
> + xtf_variant="${xtf_file#test-}"
> + xtf_name="${xtf_variant#*-}"
> + xtf_variant="${xtf_variant%%-*}"
> +
> + # Some XTF build quirks
> + case "$ARCH" in
> + arm64)
> + xtf_title=$(xtf_string_from_elf "test_title" "${xtf_binary}-syms")
> + ;;
> + *)
> + xtf_title=$(xtf_string_from_elf "test_title" "${xtf_binary}")
> + ;;
> + esac
> +
> + export XTF_BINARY="${xtf_binary}"
> + export XTF_LOG="${TOP}/${xtf_file}.log"
> +
> + printf "%3d/%3d %s (%s): " "$nr" "$nr_tests" "${xtf_title}" "${xtf_file}"
> +
> + # Spawn in a subshell so that bash traps could be used
> + # (e.g. for power cycling the target)
> + t_start=$SECONDS
> + (
> + set -x
> +
> + xtf_setup_cmdline "${xtf_variant}" "${xtf_info}"
> +
> + # In: FW_*, QEMU_*, XTF_*, XEN_*
> + # Out: BOOT_MSG, TEST_{CMD,LOG}, UBOOT_CMD
> + xtf_setup_host
> +
> + # In: BOOT_MSG, TEST_{CMD,LOG}, UBOOT_CMD
> + xtf_run
> + ) &> "${XTF_LOG}" &
> + xtf_pid=$!
> +
> + # Print a dot every second while the test is running.
> + (
> + while kill -0 "${xtf_pid}" 2>/dev/null; do
> + sleep 1
> +
> + if ! kill -0 "$xtf_pid" 2>/dev/null; then
> + break
> + fi
> +
> + printf '.'
> + done
> + ) &
> + progress_pid=$!
> +
> + if wait "${xtf_pid}"; then
> + ret=0
> + else
> + ret=$?
> + fi
> + t_end=$SECONDS
> +
> + # Stop the progress indicator.
> + kill "$progress_pid" 2>/dev/null || true
> + wait "$progress_pid" 2>/dev/null || true
> +
> + # See console.exp and xtf-runner
> + case "$ret" in
> + 0) status_str="PASS" ;;
> + 1) status_str="TIMEOUT" ;;
> + 2) status_str="EOF" ;;
> + 3) status_str="SKIP" ;;
> + 4) status_str="ERROR" ;;
> + 5) status_str="FAIL" ;;
> + 6) status_str="CRASH" ;;
> + *) status_str="UNKNOWN" ;;
> + esac
> +
> + (( nr_tests_by_status[${status_str}] += 1 ))
> +
> + xtf_completed["${xtf_title}"]="${XTF_LOG}"
> +
> + printf '%s (%ss)\n' "${status_str}" $(( t_end - t_start ))
> + (( nr += 1 ))
> + done
> +
> + for xtf_title in "${!xtf_completed[@]}"; do
> + print_title "${xtf_title}"
> + cat -v "${xtf_completed[$xtf_title]}" || true
> + done
> +
> + print_title "Report"
> + printf " Total : %d\n" ${nr_tests}
> + for x in "${!nr_tests_by_status[@]}"; do
> + printf " %s: %d\n" "$x " "${nr_tests_by_status[$x]}"
> + done
> +
> + nr_success=$(( nr_tests_by_status[PASS] + nr_tests_by_status[SKIP] ))
> + if (( nr_tests == 0 )); then
> + exit 255
> + elif (( nr_success == nr_tests )); then
> + exit 0
> + else
> + exit 1
> + fi
> +}
> +
> +set +x
> +main $@
> --
> 2.55.0
>
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [PATCH v1 08/13] CI: enable on-demand XTF on qubes runners
2026-11-05 1:36 ` [PATCH v1 08/13] CI: enable on-demand XTF on qubes runners dmukhin
@ 2026-12-03 2:24 ` Stefano Stabellini
0 siblings, 0 replies; 26+ messages in thread
From: Stefano Stabellini @ 2026-12-03 2:24 UTC (permalink / raw)
To: Denis Mukhin
Cc: xen-devel, andrew.cooper3, anthony.perard, jbeulich, julien,
michal.orzel, roger, sstabellini, dmukhin
On Wed, 4 Nov 2026, dmukhin@ford.com wrote:
> From: Denis Mukhin <dmukhin@ford.com>
>
> Currently, public CI infra has no job to run an XTF on the hardware
> runner.
>
> This change enables running XTFs on hardware runners on demand, such
> as test job on a development branch.
very nice!!
> Signed-off-by: Denis Mukhin <dmukhin@ford.com>
> ---
> automation/gitlab-ci/test.yaml | 2 +
> automation/scripts/include/xtf/qubes-hw1 | 1 +
> automation/scripts/include/xtf/qubes-hw11 | 1 +
> automation/scripts/include/xtf/qubes-hw2 | 1 +
> automation/scripts/include/xtf/qubes-hw22 | 1 +
> automation/scripts/include/xtf/qubes-hw3 | 1 +
> automation/scripts/include/xtf/qubes-x86_64 | 54 +++++++++++++++++++++
> 7 files changed, 61 insertions(+)
> create mode 120000 automation/scripts/include/xtf/qubes-hw1
> create mode 120000 automation/scripts/include/xtf/qubes-hw11
> create mode 120000 automation/scripts/include/xtf/qubes-hw2
> create mode 120000 automation/scripts/include/xtf/qubes-hw22
> create mode 120000 automation/scripts/include/xtf/qubes-hw3
> create mode 100644 automation/scripts/include/xtf/qubes-x86_64
>
> diff --git a/automation/gitlab-ci/test.yaml b/automation/gitlab-ci/test.yaml
> index 9ca93842dfe7..4d7d5e3d9a11 100644
> --- a/automation/gitlab-ci/test.yaml
> +++ b/automation/gitlab-ci/test.yaml
> @@ -244,6 +244,7 @@
> PCIDEV_INTR: "MSI-X"
> XEN_CONSOLE: "console=com1 com1=115200,8n1,pci,msi,04:00.0"
> SUT_ADDR: test-1.testnet
> + XTF_TARGET: qubes-hw1
> tags:
> - qubes-hw1
>
> @@ -255,6 +256,7 @@
> PCIDEV_INTR: "MSI-X"
> XEN_CONSOLE: "console=com1 com1=115200,8n1,pci,msi"
> SUT_ADDR: test-11.testnet
> + XTF_TARGET: qubes-hw11
> tags:
> - qubes-hw11
>
> diff --git a/automation/scripts/include/xtf/qubes-hw1 b/automation/scripts/include/xtf/qubes-hw1
> new file mode 120000
> index 000000000000..c6b7de7308b6
> --- /dev/null
> +++ b/automation/scripts/include/xtf/qubes-hw1
> @@ -0,0 +1 @@
> +qubes-x86_64
> \ No newline at end of file
> diff --git a/automation/scripts/include/xtf/qubes-hw11 b/automation/scripts/include/xtf/qubes-hw11
> new file mode 120000
> index 000000000000..c6b7de7308b6
> --- /dev/null
> +++ b/automation/scripts/include/xtf/qubes-hw11
> @@ -0,0 +1 @@
> +qubes-x86_64
> \ No newline at end of file
> diff --git a/automation/scripts/include/xtf/qubes-hw2 b/automation/scripts/include/xtf/qubes-hw2
> new file mode 120000
> index 000000000000..c6b7de7308b6
> --- /dev/null
> +++ b/automation/scripts/include/xtf/qubes-hw2
> @@ -0,0 +1 @@
> +qubes-x86_64
> \ No newline at end of file
> diff --git a/automation/scripts/include/xtf/qubes-hw22 b/automation/scripts/include/xtf/qubes-hw22
> new file mode 120000
> index 000000000000..c6b7de7308b6
> --- /dev/null
> +++ b/automation/scripts/include/xtf/qubes-hw22
> @@ -0,0 +1 @@
> +qubes-x86_64
> \ No newline at end of file
> diff --git a/automation/scripts/include/xtf/qubes-hw3 b/automation/scripts/include/xtf/qubes-hw3
> new file mode 120000
> index 000000000000..c6b7de7308b6
> --- /dev/null
> +++ b/automation/scripts/include/xtf/qubes-hw3
> @@ -0,0 +1 @@
> +qubes-x86_64
> \ No newline at end of file
Setting
XTF_TARGET: qubes-x86_64
once in .adl-x86_64 would cover every Qubes runner, including zen5,
without any symlinks.
> diff --git a/automation/scripts/include/xtf/qubes-x86_64 b/automation/scripts/include/xtf/qubes-x86_64
> new file mode 100644
> index 000000000000..d183dd33e4af
> --- /dev/null
> +++ b/automation/scripts/include/xtf/qubes-x86_64
> @@ -0,0 +1,54 @@
> +#!/bin/bash
> +#
> +# XTF test utilities (qubes-* hardware x86_64 runners).
> +#
> +
> +# Target-specific environment overrides.
> +function xtf_init()
> +{
> + export XEN_BINARY="${XEN_BINARY:-${WORKDIR}/xen}"
> +
> + XEN_CMDLINE="${XEN_CMDLINE:-loglvl=all guest_loglvl=all dom0_mem=4G console_timestamps=boot}"
> + export EXTRA_XEN_CMDLINE="${XEN_CMDLINE} ${XEN_CONSOLE}"
this overwrites the job's EXTRA_XEN_CMDLINE, for example "fred" would be
dropped
> + export TFTP="/scratch/gitlab-runner/tftp"
> + export CONTROLLER="control@thor.testnet"
> +}
> +
> +# Perform target-specific XTF environment setup.
> +function xtf_setup_host()
> +{
> + cat > "$TFTP/grub.cfg" <<EOF
> +serial --port=auto --speed=115200 --word=8 --parity=no --stop=1
> +terminal_input serial
> +terminal_output serial
> +
> +insmod multiboot2
> +
> +echo Loading Xen...
> +multiboot2 (http)/gitlab-ci/xen $XEN_CMDLINE
> +
> +echo Loading XTF...
> +module2 (http)/gitlab-ci/xtf
> +
> +echo Booting Xen...
> +boot
> + EOF
EOF is indented and does not end the heredoc
> +
> + cat > $TFTP/boot.ipxe <<EOF
> +#!ipxe
> +kernel /gitlab-ci/xen $XEN_CMDLINE || reboot
> +module /gitlab-ci/xtf || reboot
> +boot
> +EOF
> +
> + cp ${XEN_BINARY} $TFTP/xen
> + cp ${XTF_BINARY} $TFTP/xtf
> +
> + export TEST_CMD="ssh $CONTROLLER console"
> +
> + trap "ssh $CONTROLLER poweroff" EXIT
> +
> + # Boot the system
> + ssh $CONTROLLER gitlabci poweron
As this powercycle the board once per test, do you have an estimate for
how long it takes to run this?
> +}
> --
> 2.55.0
>
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [PATCH v1 09/13] CI: enable on-demand IPI latency test on AMD Zen2/Zen3 runners
2026-11-05 1:36 ` [PATCH v1 09/13] CI: enable on-demand IPI latency test on AMD Zen2/Zen3 runners dmukhin
@ 2026-12-03 2:27 ` Stefano Stabellini
0 siblings, 0 replies; 26+ messages in thread
From: Stefano Stabellini @ 2026-12-03 2:27 UTC (permalink / raw)
To: Denis Mukhin
Cc: xen-devel, andrew.cooper3, anthony.perard, jbeulich, julien,
michal.orzel, roger, sstabellini, dmukhin
On Wed, 4 Nov 2026, dmukhin@ford.com wrote:
> From: Denis Mukhin <dmukhin@ford.com>
>
> Enable IPI latency test on hardware Zen2/Zen3 runners.
This is super nice! Thank you!
> Signed-off-by: Denis Mukhin <dmukhin@ford.com>
Pending the corresponding test being committed to XTF:
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
> ---
> automation/gitlab-ci/test.yaml | 16 ++++++++++++++++
> 1 file changed, 16 insertions(+)
>
> diff --git a/automation/gitlab-ci/test.yaml b/automation/gitlab-ci/test.yaml
> index 4d7d5e3d9a11..98edf7eb9ff5 100644
> --- a/automation/gitlab-ci/test.yaml
> +++ b/automation/gitlab-ci/test.yaml
> @@ -565,6 +565,14 @@ zen2-xtf-x86_64-gcc-debug:
> - .xtf-x86_64-gcc-debug
> - .test-jobs-hardware-xtf
>
> +zen2-hvm64-interrupt-latency:
> + extends:
> + - zen2-xtf-x86_64-gcc-debug
> + - .test-jobs-perf
> + variables:
> + SELECTED_XTF_ONLY: test-hvm64-interrupt-latency
> + TEST_TIMEOUT_OVERRIDE: 600
> +
> zen3p-smoke-x86_64-gcc-debug:
> extends: .zen3p-x86_64
> script:
> @@ -633,6 +641,14 @@ zen3p-xtf-x86_64-gcc-debug:
> - .xtf-x86_64-gcc-debug
> - .test-jobs-hardware-xtf
>
> +zen3p-hvm64-interrupt-latency:
> + extends:
> + - zen3p-xtf-x86_64-gcc-debug
> + - .test-jobs-perf
> + variables:
> + SELECTED_XTF_ONLY: test-hvm64-interrupt-latency
> + TEST_TIMEOUT_OVERRIDE: 600
> +
> qemu-smoke-dom0-arm64-gcc:
> extends: .qemu-arm64
> script:
> --
> 2.55.0
>
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [PATCH v1 10/13] CI: x86: attempt to fixup flaky tests
2026-11-05 1:36 ` [PATCH v1 10/13] CI: x86: attempt to fixup flaky tests dmukhin
@ 2026-12-03 2:29 ` Stefano Stabellini
0 siblings, 0 replies; 26+ messages in thread
From: Stefano Stabellini @ 2026-12-03 2:29 UTC (permalink / raw)
To: Denis Mukhin
Cc: xen-devel, andrew.cooper3, anthony.perard, jbeulich, julien,
michal.orzel, roger, sstabellini, dmukhin
On Wed, 4 Nov 2026, dmukhin@ford.com wrote:
> From: Denis Mukhin <dmukhin@ford.com>
>
> Allow maximum of 2 retries to account for flaky infrastructure
> scripting for powering on the target board.
>
> Signed-off-by: Denis Mukhin <dmukhin@ford.com>
I am a bit worried because this change would affect every ADL job. I'll
let Marek decide.
> ---
> automation/gitlab-ci/test.yaml | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/automation/gitlab-ci/test.yaml b/automation/gitlab-ci/test.yaml
> index 98edf7eb9ff5..bf12b9123f1e 100644
> --- a/automation/gitlab-ci/test.yaml
> +++ b/automation/gitlab-ci/test.yaml
> @@ -192,6 +192,10 @@
>
> .adl-x86_64:
> extends: .test-jobs-common
> + # Account for infra failure
> + retry:
> + max: 2
> + when: script_failure
> variables:
> # the test controller runs on RPi4
> CONTAINER: alpine:qubes-hw-runner
> --
> 2.55.0
>
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [PATCH v1 11/13] CI: add test jobs on AMD Zen5
2026-11-05 1:36 ` [PATCH v1 11/13] CI: add test jobs on AMD Zen5 dmukhin
@ 2026-12-03 2:30 ` Stefano Stabellini
0 siblings, 0 replies; 26+ messages in thread
From: Stefano Stabellini @ 2026-12-03 2:30 UTC (permalink / raw)
To: Denis Mukhin
Cc: xen-devel, andrew.cooper3, anthony.perard, jbeulich, julien,
michal.orzel, roger, sstabellini, dmukhin,
Marek Marczykowski-Górecki
[-- Attachment #1: Type: text/plain, Size: 3160 bytes --]
On Wed, 4 Nov 2026, dmukhin@ford.com wrote:
> From: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
>
> This is Minisforum X1 Pro AI mini PC with AMD Ryzen AI 9 HX 370.
>
> Signed-off-by: Marek Marczykowski-Górecki <marmarek@invisiblethingslab.com>
> Signed-off-by: Denis Mukhin <dmukhin@ford.com>
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
> ---
> automation/gitlab-ci/test.yaml | 74 ++++++++++++++++++++++++++++++++++
> 1 file changed, 74 insertions(+)
>
> diff --git a/automation/gitlab-ci/test.yaml b/automation/gitlab-ci/test.yaml
> index bf12b9123f1e..05dbd0d3e07c 100644
> --- a/automation/gitlab-ci/test.yaml
> +++ b/automation/gitlab-ci/test.yaml
> @@ -264,6 +264,18 @@
> tags:
> - qubes-hw11
>
> +.zen5-x86_64:
> + # it's really similar to the above
> + extends: .adl-x86_64
> + variables:
> + PCIDEV: "c3:00.0"
> + PCIDEV_INTR: "MSI-X"
> + XEN_CONSOLE: "console=com1 com1=115200,8n1,pci,msi"
> + SUT_ADDR: test-21.testnet
> + XTF_TARGET: qubes-hw21
> + tags:
> + - qubes-hw21
> +
> # Test jobs
> build-each-commit-gcc:
> extends: .test-jobs-common
> @@ -653,6 +665,68 @@ zen3p-hvm64-interrupt-latency:
> SELECTED_XTF_ONLY: test-hvm64-interrupt-latency
> TEST_TIMEOUT_OVERRIDE: 600
>
> +zen5-smoke-x86_64-gcc-debug:
> + extends: .zen5-x86_64
> + script:
> + - ./automation/scripts/qubes-x86_64.sh dom0pv 2>&1 | tee ${LOGFILE}
> + needs:
> + - *x86_64-test-needs
> + - alpine-3.24-x86_64-gcc-debug
> +
> +zen5-smoke-x86_64-dom0pvh-gcc-debug:
> + extends: .zen5-x86_64
> + script:
> + - ./automation/scripts/qubes-x86_64.sh dom0pvh 2>&1 | tee ${LOGFILE}
> + needs:
> + - *x86_64-test-needs
> + - alpine-3.24-x86_64-gcc-debug
> +
> +zen5-smoke-x86_64-dom0pvh-hvm-gcc-debug:
> + extends: .zen5-x86_64
> + script:
> + - ./automation/scripts/qubes-x86_64.sh dom0pvh-hvm 2>&1 | tee ${LOGFILE}
> + needs:
> + - *x86_64-test-needs
> + - alpine-3.24-x86_64-gcc-debug
> +
> +zen5-pci-hvm-x86_64-gcc-debug:
> + extends: .zen5-x86_64
> + script:
> + - ./automation/scripts/qubes-x86_64.sh pci-hvm 2>&1 | tee ${LOGFILE}
> + needs:
> + - *x86_64-test-needs
> + - alpine-3.24-x86_64-gcc-debug
> +
> +zen5-pvshim-x86_64-gcc-debug:
> + extends: .zen5-x86_64
> + script:
> + - ./automation/scripts/qubes-x86_64.sh pvshim 2>&1 | tee ${LOGFILE}
> + needs:
> + - *x86_64-test-needs
> + - alpine-3.24-x86_64-gcc-debug
> +
> +zen5-tools-tests-pv-x86_64-gcc-debug:
> + extends: .zen5-x86_64
> + script:
> + - ./automation/scripts/qubes-x86_64.sh tools-tests-pv 2>&1 | tee ${LOGFILE}
> + artifacts:
> + reports:
> + junit: tests-junit.xml
> + needs:
> + - *x86_64-test-needs
> + - alpine-3.24-x86_64-gcc-debug
> +
> +zen5-tools-tests-pvh-x86_64-gcc-debug:
> + extends: .zen5-x86_64
> + script:
> + - ./automation/scripts/qubes-x86_64.sh tools-tests-pvh 2>&1 | tee ${LOGFILE}
> + artifacts:
> + reports:
> + junit: tests-junit.xml
> + needs:
> + - *x86_64-test-needs
> + - alpine-3.24-x86_64-gcc-debug
> +
> qemu-smoke-dom0-arm64-gcc:
> extends: .qemu-arm64
> script:
> --
> 2.55.0
>
^ permalink raw reply [flat|nested] 26+ messages in thread
* Re: [PATCH v1 12/13] CI: add on-demand XTF test jobs on AMD Zen5
2026-11-05 1:37 ` [PATCH v1 12/13] CI: add on-demand XTF " dmukhin
@ 2026-12-03 2:31 ` Stefano Stabellini
0 siblings, 0 replies; 26+ messages in thread
From: Stefano Stabellini @ 2026-12-03 2:31 UTC (permalink / raw)
To: Denis Mukhin
Cc: xen-devel, andrew.cooper3, anthony.perard, jbeulich, julien,
michal.orzel, roger, sstabellini, dmukhin
On Wed, 4 Nov 2026, dmukhin@ford.com wrote:
> From: Denis Mukhin <dmukhin@ford.com>
>
> Add on-demand XTF test jobs: complete run of all tests and
> a standalone interrupt latency test (AVIC).
>
> Signed-off-by: Denis Mukhin <dmukhin@ford.com>
Pending the XTF test being committed to XTF:
Acked-by: Stefano Stabellini <sstabellini@kernel.org>
> ---
> automation/gitlab-ci/test.yaml | 14 ++++++++++++++
> automation/scripts/include/xtf/qubes-hw21 | 1 +
> 2 files changed, 15 insertions(+)
> create mode 120000 automation/scripts/include/xtf/qubes-hw21
>
> diff --git a/automation/gitlab-ci/test.yaml b/automation/gitlab-ci/test.yaml
> index 05dbd0d3e07c..f65758cf3b96 100644
> --- a/automation/gitlab-ci/test.yaml
> +++ b/automation/gitlab-ci/test.yaml
> @@ -276,6 +276,20 @@
> tags:
> - qubes-hw21
>
> +zen5-xtf-x86_64-gcc-debug:
> + extends:
> + - .zen5-x86_64
> + - .xtf-x86_64-gcc-debug
> + - .test-jobs-hardware-xtf
> +
> +zen5-hvm64-interrupt-latency:
> + extends:
> + - zen5-xtf-x86_64-gcc-debug
> + - .test-jobs-perf
> + variables:
> + SELECTED_XTF_ONLY: test-hvm64-interrupt-latency
> + TEST_TIMEOUT_OVERRIDE: 600
> +
> # Test jobs
> build-each-commit-gcc:
> extends: .test-jobs-common
> diff --git a/automation/scripts/include/xtf/qubes-hw21 b/automation/scripts/include/xtf/qubes-hw21
> new file mode 120000
> index 000000000000..c6b7de7308b6
> --- /dev/null
> +++ b/automation/scripts/include/xtf/qubes-hw21
> @@ -0,0 +1 @@
> +qubes-x86_64
> \ No newline at end of file
> --
> 2.55.0
>
^ permalink raw reply [flat|nested] 26+ messages in thread
end of thread, other threads:[~2026-12-03 2:31 UTC | newest]
Thread overview: 26+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-11-05 1:36 [PATCH v1 00/13] CI: updates for XTF jobs dmukhin
2026-11-05 1:36 ` [PATCH v1 01/13] gitignore: exclude QEMU testing artifacts dmukhin
2026-12-03 1:45 ` Stefano Stabellini
2026-11-05 1:36 ` [PATCH v1 02/13] CI: unify hypervisor console parametrization dmukhin
2026-12-03 1:34 ` Stefano Stabellini
2026-11-05 1:36 ` [PATCH v1 03/13] CI: unify naming for hypervisor extra arguments dmukhin
2026-12-03 1:35 ` Stefano Stabellini
2026-11-05 1:36 ` [PATCH v1 04/13] CI: enable XTF build jobs dmukhin
2026-12-03 1:44 ` Stefano Stabellini
2026-11-05 1:36 ` [PATCH v1 05/13] CI: enable XTF status codes dmukhin
2026-12-03 1:58 ` Stefano Stabellini
2026-11-05 1:36 ` [PATCH v1 06/13] CI: enable binutils for alpine and debian containers dmukhin
2026-12-03 2:01 ` Stefano Stabellini
2026-11-05 1:36 ` [PATCH v1 07/13] CI: rework to allow hardware runners dmukhin
2026-12-03 2:18 ` Stefano Stabellini
2026-11-05 1:36 ` [PATCH v1 08/13] CI: enable on-demand XTF on qubes runners dmukhin
2026-12-03 2:24 ` Stefano Stabellini
2026-11-05 1:36 ` [PATCH v1 09/13] CI: enable on-demand IPI latency test on AMD Zen2/Zen3 runners dmukhin
2026-12-03 2:27 ` Stefano Stabellini
2026-11-05 1:36 ` [PATCH v1 10/13] CI: x86: attempt to fixup flaky tests dmukhin
2026-12-03 2:29 ` Stefano Stabellini
2026-11-05 1:36 ` [PATCH v1 11/13] CI: add test jobs on AMD Zen5 dmukhin
2026-12-03 2:30 ` Stefano Stabellini
2026-11-05 1:37 ` [PATCH v1 12/13] CI: add on-demand XTF " dmukhin
2026-12-03 2:31 ` Stefano Stabellini
2026-11-05 1:37 ` [PATCH v1 13/13] CI: do not merge: re-wire XTF repos to custom branches dmukhin
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.