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:
Jared Rossi
2026-03-08 20:35:49 -04:00
committed by Thomas Huth
parent 5dbabcfee8
commit dd8c8f16c0

View File

@@ -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: