KVM: s390: Always store status during SIGP STOP_AND_STORE_STATUS
authorThomas Huth <thuth@linux.vnet.ibm.com>
Wed, 6 Nov 2013 14:46:33 +0000 (15:46 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 6 Feb 2014 19:34:01 +0000 (11:34 -0800)
commited039ce3768ecaeac51bb24e297c8ef6e642693e
tree169bc43f75ccd5b583d6091ba60e33d48e46379e
parent4d93ec131e692450bf4507ee09dd65007ffaaa46
KVM: s390: Always store status during SIGP STOP_AND_STORE_STATUS

commit e879892c725217a4af1012f31ae56be762473216 upstream.

The SIGP order STOP_AND_STORE_STATUS is defined to stop a CPU and store
its status. However, we only stored the status if the CPU was still
running, so make sure that the status is now also stored if the CPU was
already stopped. This fixes the problem that the CPU information was
not stored correctly in kdump files, rendering them unreadable.

Signed-off-by: Thomas Huth <thuth@linux.vnet.ibm.com>
Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/s390/kvm/kvm-s390.c
arch/s390/kvm/kvm-s390.h
arch/s390/kvm/sigp.c