]> git.ipfire.org Git - thirdparty/qemu.git/commit
s390: Do not pass inofficial IPL type to the guest
authorViktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
Thu, 5 Apr 2018 15:07:24 +0000 (17:07 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Thu, 21 Jun 2018 01:45:02 +0000 (20:45 -0500)
commit0304f75f61dfc1838904e9efc77646f0032b7467
treeb43785b90b54e8f8dfb09d9908b700a6467f721e
parent955b77f56e3ce585569168c60fff2d5cb0f82e00
s390: Do not pass inofficial IPL type to the guest

IPL over a virtio-scsi device requires special handling not
available in the real architecture. For this purpose the IPL
type 0xFF has been chosen as means of communication between
QEMU and the pc-bios. However, a guest OS could be confused
by seeing an unknown IPL type.

This change sets the IPL parameter type to 0x02 (CCW) to prevent
this. Pre-existing Linux has looked up the IPL parameters only in
the case of FCP IPL. This means that the behavior should stay
the same even if Linux checks for the IPL type unconditionally.

Signed-off-by: Viktor Mihajlovski <mihajlov@linux.vnet.ibm.com>
Message-Id: <1522940844-12336-4-git-send-email-mihajlov@linux.vnet.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
(cherry picked from commit e8c7ef288abb05b741a95418ee2de85c1071e0db)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
pc-bios/s390-ccw/bootmap.c
pc-bios/s390-ccw/iplb.h