linux/arch/s390/kvm
Carsten Otte 7eef87dc99 KVM: s390: fix register setting
KVM common code does vcpu_load prior to calling our arch ioctls and
vcpu_put after we're done here. Via the kvm_arch_vcpu_load/put
callbacks we do load the fpu and access register state into the
processor, which saves us moving the state on every SIE exit the
kernel handles. However this breaks register setting from userspace,
because of the following sequence:
1a. vcpu load stores userspace register content
1b. vcpu load loads guest register content
2.  kvm_arch_vcpu_ioctl_set_fpu/sregs updates saved guest register content
3a. vcpu put stores the guest registers and overwrites the new content
3b. vcpu put loads the userspace register set again

This patch loads the new guest register state into the cpu, so that the correct
(new) set of guest registers will be stored in step 3a.

Signed-off-by: Carsten Otte <cotte@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
2011-10-30 12:24:00 +02:00
..
diag.c [S390] Replace ENOTSUPP usage with EOPNOTSUPP 2010-02-26 22:37:31 +01:00
gaccess.h [S390] Use gmap translation for accessing guest memory 2011-07-24 10:48:21 +02:00
intercept.c [S390] Use gmap translation for accessing guest memory 2011-07-24 10:48:21 +02:00
interrupt.c [S390] kvm: make sigp emerg smp capable 2011-07-24 10:48:22 +02:00
Kconfig virtio: expose for non-virtualization users too 2011-07-23 16:20:30 +09:30
kvm-s390.c KVM: s390: fix register setting 2011-10-30 12:24:00 +02:00
kvm-s390.h [S390] remove kvm mmu reload on s390 2011-07-24 10:48:21 +02:00
Makefile [S390] move sie code to entry.S 2011-07-24 10:48:21 +02:00
priv.c [S390] kvm: handle tprot intercepts 2011-07-24 10:48:20 +02:00
sigp.c [S390] Use gmap translation for accessing guest memory 2011-07-24 10:48:21 +02:00