]> git.karo-electronics.de Git - karo-tx-linux.git/commit
s390/kvm: Fix store status for ACRS/FPRS
authorChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 25 Jan 2013 14:34:15 +0000 (15:34 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 28 Feb 2013 13:38:31 +0000 (05:38 -0800)
commitf12993e9c6723b3507239b4c4358348e0b182304
treee8a1362c3d65406d0ae3e69d23843231d5b1dda9
parent92fdb6f158923fb2c45eba5d5548d930c0fe0afe
s390/kvm: Fix store status for ACRS/FPRS

commit 15bc8d8457875f495c59d933b05770ba88d1eacb upstream.

On store status we need to copy the current state of registers
into a save area. Currently we might save stale versions:
The sie state descriptor doesnt have fields for guest ACRS,FPRS,
those registers are simply stored in the host registers. The host
program must copy these away if needed. We do that in vcpu_put/load.

If we now do a store status in KVM code between vcpu_put/load, the
saved values are not up-to-date. Lets collect the ACRS/FPRS before
saving them.

This also fixes some strange problems with hotplug and virtio-ccw,
since the low level machine check handler (on hotplug a machine check
will happen) will revalidate all registers with the content of the
save area.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
arch/s390/kvm/kvm-s390.c