]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: s390: vsie: Do not shadow CRYCB when no AP and no keys
authorPierre Morel <pmorel@linux.ibm.com>
Fri, 26 Apr 2019 08:56:50 +0000 (10:56 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 29 Apr 2019 07:01:22 +0000 (09:01 +0200)
commit9b23f35543ec2a126e3f35e869cc8a5dd8d20c70
tree53727671581da65b88359ca00149843c49735f4b
parent5c0282640f355fff422cf20465af4b05496cbefd
KVM: s390: vsie: Do not shadow CRYCB when no AP and no keys

When the guest do not have AP instructions nor Key management
we should return without shadowing the CRYCB.

We did not check correctly in the past.

Fixes: 12c96d0e0f63 ("s390: vsie: Use effective CRYCBD.31 to check CRYCBD validity")
Fixes: 8e4f0d3709c6 ("KVM: s390: vsie: allow CRYCB FORMAT-0")
Signed-off-by: Pierre Morel <pmorel@linux.ibm.com>
Reported-by: Christian Borntraeger <borntraeger@de.ibm.com>
Message-Id: <1556269010-22258-1-git-send-email-pmorel@linux.ibm.com>
Acked-by: David Hildenbrand <david@redhat.com>
Tested-by: Christian Borntraeger <borntraeger@de.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/vsie.c