]> 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)
commit3b06568b540527f51cf4e8570e1d96e22236f5a3
tree53727671581da65b88359ca00149843c49735f4b
parentcebf349d57b116608fffb76e3e71627eae2c7505
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: 8bb128e62f32 ("s390: vsie: Use effective CRYCBD.31 to check CRYCBD validity")
Fixes: a501f373cf25 ("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