]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: s390: Clear Crypto Control Block when using vSIE
authorPierre Morel <pmorel@linux.ibm.com>
Tue, 25 Sep 2018 23:16:30 +0000 (19:16 -0400)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 28 Sep 2018 13:50:11 +0000 (15:50 +0200)
commit0a645d9799dcaa667c2c626f72532aa9e75bf85e
tree5a2894e2f2710de9252530f181640287b7819082
parenta4b7ace28d2a7936a57c4c5a12c751e880c8ccac
KVM: s390: Clear Crypto Control Block when using vSIE

When we clear the Crypto Control Block (CRYCB) used by a guest
level 2, the vSIE shadow CRYCB for guest level 3 must be updated
before the guest uses it.

We achieve this by using the KVM_REQ_VSIE_RESTART synchronous
request for each vCPU belonging to the guest to force the reload
of the shadow CRYCB before rerunning the guest level 3.

Signed-off-by: Pierre Morel <pmorel@linux.ibm.com>
Signed-off-by: Tony Krowiak <akrowiak@linux.ibm.com>
Message-Id: <20180925231641.4954-16-akrowiak@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/kvm-s390.c