]> git.proxmox.com Git - mirror_ubuntu-bionic-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)
committerJoseph Salisbury <joseph.salisbury@canonical.com>
Thu, 15 Nov 2018 17:38:12 +0000 (12:38 -0500)
commit7331634f00fe186bc8a991c585ae61877b87e81f
tree65a27b61bca2313cc84c2043136e09f85143d345
parent2148c0aa109b8eb244b4cb2355d7fef8ad5c4417
KVM: s390: Clear Crypto Control Block when using vSIE

BugLink: https://bugs.launchpad.net/bugs/1787405
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>
(cherry picked from commit 6cc571b1b1e8b6fbcf69411d115cf9d9be866276)
Signed-off-by: Joseph Salisbury <joseph.salisbury@canonical.com>
Acked-by: Brad Figg <brad.figg@canonical.com>
Acked-by: Kamal Mostafa <kamal@canonical.com>
Acked-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
Signed-off-by: Thadeu Lima de Souza Cascardo <cascardo@canonical.com>
arch/s390/kvm/kvm-s390.c