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)
commitbcccb8f6a91b50fde008354fa8273dd14829dce2
tree53727671581da65b88359ca00149843c49735f4b
parent8b905d28ee17795c939813b2f6947829774619b9
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: b10bd9a256ae ("s390: vsie: Use effective CRYCBD.31 to check CRYCBD validity")
Fixes: 6ee74098201b ("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