[Stable-11.0.4 v2 135/161] pc-bios/s390-ccw: write IPLB location for non-net virtio devices
Michael Tokarev <[email protected]>
| Newsgroups | gmane.comp.emulators.qemu.stable,gmane.comp.emulators.qemu |
|---|---|
| Message-ID | <[email protected]> |
From: Jared Rossi <[email protected]> When IPL type is PCI, cutype is unknown, so the IPLB location does not get written to lowcore. Instead of checking cutype, check if the device is virtio generically, which covers both CCW and PCI variants. Net devices are excluded. Signed-off-by: Jared Rossi <[email protected]> Reviewed-by: Eric Farman <[email protected]> Tested-by: Matthew Rosato <[email protected]> Message-ID: <[email protected]> Signed-off-by: Cornelia Huck <[email protected]> (cherry picked from commit d04736438035ddbafdbe343f00172501c449e744) Signed-off-by: Michael Tokarev <[email protected]> diff --git a/pc-bios/s390-ccw/main.c b/pc-bios/s390-ccw/main.c index fb47d29bb1f..9c147ac5fa5 100644 --- a/pc-bios/s390-ccw/main.c +++ b/pc-bios/s390-ccw/main.c @@ -52,7 +52,8 @@ void write_subsystem_identification(void) void write_iplb_location(void) { - if (cutype == CU_TYPE_VIRTIO && virtio_get_device_type() != VIRTIO_ID_NET) { + if (virtio_is_supported(virtio_get_device()) && + virtio_get_device_type() != VIRTIO_ID_NET) { lowcore->ptr_iplb = ptr2u32(&iplb); } } -- 2.47.3