pc-bios/s390-ccw: write IPLB location for non-net virtio devices
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 <jrossi@linux.ibm.com> Reviewed-by: Eric Farman <farman@linux.ibm.com> Tested-by: Matthew Rosato <mjrosato@linux.ibm.com> Message-ID: <20260630141917.673995-6-jrossi@linux.ibm.com> Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Jared Rossi committed
Jun 30, 2026 at 10:19 UTC
d04736438035ddbafdbe343f00172501c449e744
1 file changed
+2
-1
pc-bios/s390-ccw/main.c
+2
-1
@@ -52,7 +52,8 @@ void write_subsystem_identification(void)
52
53
void write_iplb_location(void)
54
{
55
- if (cutype == CU_TYPE_VIRTIO && virtio_get_device_type() != VIRTIO_ID_NET) {
55
+ if (virtio_is_supported(virtio_get_device()) &&
56
+ virtio_get_device_type() != VIRTIO_ID_NET) {
57
lowcore->ptr_iplb = ptr2u32(&iplb);
58
}
59
}