mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 15:53:54 -06:00
s390/IPL: Allow boot from other ssid than 0
We now take the subchannel set id also into account to find the boot device. If we want to use a subchannel set other than the default set 0, we first need to enable the mss facility. Signed-off-by: Dominik Dingel <dingel@linux.vnet.ibm.com> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com> Signed-off-by: Alexander Graf <agraf@suse.de>
This commit is contained in:
parent
461bdb3414
commit
c8cda8748e
4 changed files with 46 additions and 0 deletions
|
@ -35,6 +35,13 @@ static void virtio_setup(uint64_t dev_info)
|
|||
check_devno = true;
|
||||
dev_no = dev_info & 0xffff;
|
||||
debug_print_int("device no. ", dev_no);
|
||||
blk_schid.ssid = (dev_info >> 16) & 0x3;
|
||||
if (blk_schid.ssid != 0) {
|
||||
debug_print_int("ssid ", blk_schid.ssid);
|
||||
if (enable_mss_facility() != 0) {
|
||||
virtio_panic("Failed to enable mss facility\n");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (i = 0; i < 0x10000; i++) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue