mirror of
https://github.com/qemu/qemu.git
synced 2026-07-08 17:56:38 +00:00
pc-bios/s390-ccw: Always reset virtio device on failed boot attempt
The virtio spec necessitates that live virtqueues must not be altered. Reset the failed device so that the queues are not live before we attempt to boot any fallback devices. Reviewed-by: Thomas Huth <thuth@redhat.com> Reviewed-by: Eric Farman <farman@linux.ibm.com> Signed-off-by: Jared Rossi <jrossi@linux.ibm.com> Message-ID: <20260309003601.242634-4-jrossi@linux.ibm.com> Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
@@ -277,7 +277,8 @@ static void ipl_boot_device(void)
|
||||
break;
|
||||
case CU_TYPE_VIRTIO:
|
||||
if (virtio_setup() == 0) {
|
||||
zipl_load();
|
||||
zipl_load(); /* only return on error */
|
||||
virtio_reset(virtio_get_device());
|
||||
}
|
||||
break;
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user