From: Jared Rossi Date: Mon, 9 Mar 2026 00:36:01 +0000 (-0400) Subject: tests/qtest: Add s390x PCI boot test to cdrom-test.c X-Git-Tag: v11.0.0-rc0~21^2~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=98c93dfec1362463ce70fc577fb5de0526d3de05;p=thirdparty%2Fqemu.git tests/qtest: Add s390x PCI boot test to cdrom-test.c Add a rudimentary test for s390x IPL to verify that a guest may boot using virtio-blk-pci device. Reviewed-by: Thomas Huth Signed-off-by: Jared Rossi Message-ID: <20260309003601.242634-16-jrossi@linux.ibm.com> Signed-off-by: Thomas Huth --- diff --git a/tests/qtest/cdrom-test.c b/tests/qtest/cdrom-test.c index 56e2d283a9d..a65854d2bc5 100644 --- a/tests/qtest/cdrom-test.c +++ b/tests/qtest/cdrom-test.c @@ -246,6 +246,13 @@ static void add_s390x_tests(void) "-drive if=none,id=d2,media=cdrom,file=", test_cdboot); } + if (qtest_has_device("virtio-blk-pci")) { + qtest_add_data_func("cdrom/boot/pci-bus-with-bootindex", + "-device virtio-scsi -device virtio-serial " + "-device virtio-blk-pci,drive=d1,bootindex=1 " + "-drive if=none,id=d1,media=cdrom,file=", + test_cdboot); + } } int main(int argc, char **argv)