OSDN Git Service

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)
committerCornelia Huck <cohuck@redhat.com>
Mon, 9 Apr 2018 11:50:31 +0000 (13:50 +0200)
commite8c7ef288abb05b741a95418ee2de85c1071e0db
treed7f1a193dde1fc7489cd58962c70d954b75f97f5
parent789b5a401b330510da663b4d4ae1ef8a7410c353
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>
pc-bios/s390-ccw/bootmap.c
pc-bios/s390-ccw/iplb.h