On 9/14/2026 3:34 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/pxe-test.c | 7 +++++++
  1 file changed, 7 insertions(+)

diff --git a/tests/qtest/pxe-test.c b/tests/qtest/pxe-test.c
index 8b6015b6cd..c29386ed4b 100644
--- a/tests/qtest/pxe-test.c
+++ b/tests/qtest/pxe-test.c
@@ -129,9 +129,16 @@ static bool s390_bios_has_net_ccw(void)
      return s390_bios_has_string("Network boot starting...");
  }
+static bool s390_bios_has_net_pci(void)
+{
+    return s390_bios_has_string("Setup failed for virtio-net-pci");
+}
+
The presence of this string in the bios img indicates that virtio-net-pci
support has been implemented (this string is added in patch 4).

Maybe a clarifying comment would be helpful... the fact that it's a failure
message disoriented me at first. :)

  static testdef_t s390x_tests[] = {
      { "s390-ccw-virtio", "virtio-net-ccw",
        .boot_dev_support = s390_bios_has_net_ccw },
+    { "s390-ccw-virtio", "virtio-net-pci",
+      .boot_dev_support = s390_bios_has_net_pci },
      { NULL },
  };


Reply via email to