From: Jared Rossi <[email protected]> Add a test to verify that a guest can use a PCI controlled CD as a fallback boot device after a failed CCW IPL.
Signed-off-by: Jared Rossi <[email protected]> Tested-by: Eric Farman <[email protected]> Reviewed-by: Eric Farman <[email protected]> Tested-by: Joshua Daley <[email protected]> Link: https://lore.kernel.org/qemu-devel/[email protected] Signed-off-by: Eric Farman <[email protected]> --- tests/qtest/cdrom-test.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tests/qtest/cdrom-test.c b/tests/qtest/cdrom-test.c index bf997be6d6..9e725126cf 100644 --- a/tests/qtest/cdrom-test.c +++ b/tests/qtest/cdrom-test.c @@ -272,6 +272,14 @@ static void add_s390x_tests(void) "-drive if=none,id=d1,media=cdrom,file=", test_cdboot); } + if (qtest_has_device("virtio-scsi-pci")) { + qtest_add_data_func("cdrom/boot/pci-scsi-fallback-from-blk-ccw", + "-device virtio-scsi-pci -device virtio-serial " + "-device virtio-blk-ccw,drive=d1,bootindex=1 " + "-drive driver=null-co,read-zeroes=on,if=none,id=d1 " + "-device scsi-cd,drive=d2,bootindex=2 " + "-drive if=none,id=d2,media=cdrom,file=", test_cdboot); + } } int main(int argc, char **argv) -- 2.55.0
