KVM: s390: backup the currently enabled gmap when scheduled out
authorDavid Hildenbrand <dahi@linux.vnet.ibm.com>
Wed, 11 Mar 2015 15:47:33 +0000 (16:47 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 20 Jun 2016 07:55:24 +0000 (09:55 +0200)
commit37d9df98b71afdf3baf41ee5451b6206c13328c6
tree9eac97b278ade808aef637721d417a03a5285bc1
parent65d0b0d4bcc67b596d8e7286c3bebf24c59ade6a
KVM: s390: backup the currently enabled gmap when scheduled out

Nested virtualization will have to enable own gmaps. Current code
would enable the wrong gmap whenever scheduled out and back in,
therefore resulting in the wrong gmap being enabled.

This patch reenables the last enabled gmap, therefore avoiding having to
touch vcpu->arch.gmap when enabling a different gmap.

Acked-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/include/asm/gmap.h
arch/s390/include/asm/kvm_host.h
arch/s390/kvm/kvm-s390.c
arch/s390/mm/gmap.c