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>
Jared Rossi committed
Mar 8, 2026 at 20:35 UTC
dd8c8f16c0244fd5393dc305501675ca1ae2990a
1 file changed
+2
-1
pc-bios/s390-ccw/main.c
+2
-1
@@ -277,7 +277,8 @@ static void ipl_boot_device(void)
277
break;
278
case CU_TYPE_VIRTIO:
279
if (virtio_setup() == 0) {
280
- zipl_load();
280
+ zipl_load(); /* only return on error */
281
+ virtio_reset(virtio_get_device());
282
}
283
break;
284
default: