linux/arch/s390
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
..
appldata [S390] mm: add ZONE_DMA to 31-bit config again 2011-05-26 09:48:25 +02:00
boot [S390] fix s390 assembler code alignments 2011-07-24 10:48:21 +02:00
crypto crypto: s390 - support hardware accelerated SHA-224 2011-07-04 20:06:01 +08:00
hypfs treewide: remove extra semicolons 2011-04-10 17:01:05 +02:00
include/asm [S390] kvm: fix address mode switching 2011-09-20 17:07:34 +02:00
kernel [S390] kvm: fix address mode switching 2011-09-20 17:07:34 +02:00
kvm KVM: s390: fix register setting 2011-10-30 12:24:00 +02:00
lib [S390] fix s390 assembler code alignments 2011-07-24 10:48:21 +02:00
math-emu s390: change to new flag variable 2011-03-17 14:02:57 +01:00
mm [S390] kvm: fix address mode switching 2011-09-20 17:07:34 +02:00
oprofile Merge branch 'master' into for-next 2011-07-11 14:15:55 +02:00
defconfig [S390] Update default configuration 2011-01-12 09:55:24 +01:00
Kbuild [S390] standardize Kbuild rules 2010-10-25 16:10:14 +02:00
Kconfig Merge branch 'for-linus' of git://git390.marist.edu/pub/scm/linux-2.6 2011-08-04 06:35:51 -10:00
Kconfig.debug [S390] Write protect module text and RO data 2011-03-15 17:08:23 +01:00
Makefile [S390] remove redundant stack check option 2011-03-15 17:08:22 +01:00