s390/ipl: fix ipl with -no-reboot
authorChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 22 Jun 2018 10:29:28 +0000 (12:29 +0200)
committerCornelia Huck <cohuck@redhat.com>
Mon, 2 Jul 2018 08:37:38 +0000 (10:37 +0200)
commit76ed4b18debfe597329d1f6a9eb2ec9ffa751ecd
tree7a05efba9a105ba959c87b5cf1ac96f402da147e
parent281bd281222776229d5dbf84d1a5c6d8d9d2a34b
s390/ipl: fix ipl with -no-reboot

kexec/kdump as well as the bootloader use a subcode of diagnose 308
that is supposed to reset the I/O subsystem but not comprise a full
"reboot". With the latest refactoring this is now broken when
-no-reboot is used or when libvirt acts on a reboot QMP event, for
example a virt-install from iso images.

We need to mark these "subsystem resets" as special.

Fixes: a30fb811cbe9 (s390x: refactor reset/reipl handling)
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Message-Id: <20180622102928.173420-1-borntraeger@de.ibm.com>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
hw/s390x/ipl.c
include/sysemu/sysemu.h
vl.c