On 9/14/26 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");
> +}
See comment on patch 6, tests run as expected with/without the
virtio-net-pci support but the output is confusing.
> +
> 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 },
> };
>