s390-bios: Use control unit type to determine boot method
commit3668cb7ce864ee9351d5d20a1ec6b427cd0b3be4
authorJason J. Herne <jjherne@linux.ibm.com>
Thu, 4 Apr 2019 14:34:32 +0000 (4 10:34 -0400)
committerThomas Huth <thuth@redhat.com>
Fri, 12 Apr 2019 10:40:35 +0000 (12 12:40 +0200)
treeed85a6915b6b35857961202e57689c4b06f758bf
parent9de6cbb152bee3917e58ad00633eddafb40d6678
s390-bios: Use control unit type to determine boot method

The boot method is different depending on which device type we are
booting from. Let's examine the control unit type to determine if we're
a virtio device. We'll eventually add a case to check for a real dasd device
here as well.

Since we have to call enable_subchannel() in main now, might as well
remove that call from virtio.c : run_ccw(). This requires adding some
additional enable_subchannel calls to not break calls to
virtio_is_supported().

Signed-off-by: Jason J. Herne <jjherne@linux.ibm.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-Id: <1554388475-18329-14-git-send-email-jjherne@linux.ibm.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
pc-bios/s390-ccw/main.c
pc-bios/s390-ccw/netmain.c
pc-bios/s390-ccw/virtio.c