On 8/18/2026 4:53 PM, Zhuoying Cai wrote:
Add test coverage for virtio-net-pci network booting on s390x by
including it in the PXE test suite. The test verifies that PXE
network booting works correctly with virtio-net-pci devices.
Signed-off-by: Zhuoying Cai <[email protected]>
---
tests/qtest/meson.build | 1 +
tests/qtest/pxe-test.c | 1 +
2 files changed, 2 insertions(+)
diff --git a/tests/qtest/meson.build b/tests/qtest/meson.build
index f7c7d06620..94e2555935 100644
--- a/tests/qtest/meson.build
+++ b/tests/qtest/meson.build
@@ -281,6 +281,7 @@ qtests_aarch64 = \
'migration-test']
qtests_s390x = \
+ (slirp.found() ? ['pxe-test'] : []) + \
qtests_filter + \
['boot-serial-test',
'drive_del-test',
diff --git a/tests/qtest/pxe-test.c b/tests/qtest/pxe-test.c
index a3f900fbea..d4b74e28cd 100644
--- a/tests/qtest/pxe-test.c
+++ b/tests/qtest/pxe-test.c
@@ -60,6 +60,7 @@ static testdef_t ppc64_tests_slow[] = {
static testdef_t s390x_tests[] = {
{ "s390-ccw-virtio", "virtio-net-ccw" },
+ { "s390-ccw-virtio", "virtio-net-pci" },
{ NULL },
};
Tested-by: Joshua Daley <[email protected]>
Resent because I used "Reply List" instead of "Reply All." Sorry!
meson test --suite qtest-s390x 'qtest-s390x/pxe-test'
...
# starting QEMU: exec ./qemu-system-s390x -qtest unix:/tmp/qtest-170442.sock
-qtest-log /dev/null -chardev socket,path=/tmp/qtest-170442.qmp,id=char0
-object monitor-qmp,id=qmp0,chardev=char0 -display none -audio none -run-with
exit-with-parent=on -accel kvm -accel tcg -machine s390-ccw-virtio -nodefaults
-boot order=n -netdev
user,id=net0,tftp=./,bootfile=tests/pxe-test-disk-ivTCmO,ipv4=on,ipv6=off
-device virtio-net-pci,bootindex=1,netdev=net0 -accel qtest
ok 2 /s390x/pxe/ipv4/s390-ccw-virtio/virtio-net-pci