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)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Thu, 28 Nov 2013 10:08:13 +0000 (11:08 +0100)
commite879892c725217a4af1012f31ae56be762473216
tree9da5a9bfd1de0517f7353d219347fde9c714dd6e
parentc95221f69dfa5d3696b2b91374cbd7e5897657c5
KVM: s390: Always store status during SIGP STOP_AND_STORE_STATUS

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>
Cc: stable@vger.kernel.org
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
arch/s390/kvm/kvm-s390.c
arch/s390/kvm/kvm-s390.h
arch/s390/kvm/sigp.c