]> git.proxmox.com Git - mirror_qemu.git/commit - hw/s390x/ipl.c
s390x/ipl: support diagnose 308 subcodes 5 and 6
authorFan Zhang <zhangfan@linux.vnet.ibm.com>
Thu, 12 Feb 2015 17:02:14 +0000 (18:02 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 13 Feb 2015 15:14:09 +0000 (16:14 +0100)
commitdf75a4e2c607836eee044d7e6b0d94724d6ebf21
treed17ea032e83adb532c7dbe56a8c2f8f68b3ccef8
parentf0180f913e3bcd04cb132f5f6036e823a78e0673
s390x/ipl: support diagnose 308 subcodes 5 and 6

To support dynamically updating the IPL device from inside the KVM
guest on the s390 platform, DIAG 308 instruction is intercepted
in QEMU to handle the request.

Subcode 5 allows to specify a new boot device, which is saved for
later in the s390_ipl device. This also allows to switch from an
external kernel to a boot device.

Subcode 6 retrieves boot device configuration that has been previously
set.

Reviewed-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Jens Freimann <jfrei@linux.vnet.ibm.com>
Signed-off-by: Fan Zhang <zhangfan@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
hw/s390x/ipl.c
hw/s390x/ipl.h [new file with mode: 0644]
hw/s390x/s390-virtio.c
target-s390x/misc_helper.c