mirror of
https://github.com/qemu/qemu.git
synced 2026-07-08 17:46:10 +00:00
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 <thuth@redhat.com> Signed-off-by: Jared Rossi <jrossi@linux.ibm.com> Message-ID: <20260309003601.242634-16-jrossi@linux.ibm.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user