]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: s390: Introduce switching code
authorEugene (jno) Dvurechenski <jno@linux.vnet.ibm.com>
Wed, 22 Apr 2015 16:08:39 +0000 (18:08 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 30 Nov 2015 11:47:08 +0000 (12:47 +0100)
commiteb8af15c57b345ef3f5e54ed49635ccb22307068
tree143843125470e817394a2854c380baf9030c56e8
parent272e952946a1b2d0d9f86e6040d467a5e4995b98
KVM: s390: Introduce switching code

This patch adds code that performs transparent switch to Extended
SCA on addition of 65th VCPU in a VM. Disposal of ESCA is added too.
The entier ESCA functionality, however, is still not enabled.
The enablement will be provided in a separate patch.

This patch also uses read/write lock protection of SCA and its subfields for
possible disposal at the BSCA-to-ESCA transition. While only Basic SCA needs such
a protection (for the swap), any SCA access is now guarded.

Signed-off-by: Eugene (jno) Dvurechenski <jno@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/include/asm/kvm_host.h
arch/s390/kvm/gaccess.c
arch/s390/kvm/interrupt.c
arch/s390/kvm/kvm-s390.c