KVM: s390: gs support for kvm guests
authorFan Zhang <zhangfan@linux.vnet.ibm.com>
Tue, 29 Nov 2016 06:17:55 +0000 (07:17 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 22 Mar 2017 17:59:33 +0000 (18:59 +0100)
commit4e0b1ab72b8af961bcaca9ec1475279c1cd9579c
tree4d4d05d417d222e02dba5c82955bf0eb1c19313d
parent7c2b3e0ddc063f61a201ccb70a121fecc8373a49
KVM: s390: gs support for kvm guests

This patch adds guarded storage support for KVM guest. We need to
setup the necessary control blocks, the kvm_run structure for the
new registers, the necessary wrappers for VSIE, as well as the
machine check save areas.
GS is enabled lazily and the register saving and reloading is done in
KVM code.  As this feature adds new content for migration, we provide
a new capability for enablement (KVM_CAP_S390_GS).

Signed-off-by: Fan Zhang <zhangfan@linux.vnet.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Janosch Frank <frankja@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
Documentation/virtual/kvm/api.txt
arch/s390/include/asm/kvm_host.h
arch/s390/include/uapi/asm/kvm.h
arch/s390/kvm/intercept.c
arch/s390/kvm/interrupt.c
arch/s390/kvm/kvm-s390.c
arch/s390/kvm/kvm-s390.h
arch/s390/kvm/priv.c
arch/s390/kvm/vsie.c
include/uapi/linux/kvm.h