KVM: s390: vsie: Return correct values for Invalid CRYCB format
Let's use the correct validity number.
Fixes: 56019f9aca
("KVM: s390: vsie: Allow CRYCB FORMAT-2")
Signed-off-by: Pierre Morel <pmorel@linux.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
Message-Id: <1556269201-22918-1-git-send-email-pmorel@linux.ibm.com>
Acked-by: David Hildenbrand <david@redhat.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
This commit is contained in:
parent
bcccb8f6a9
commit
b2d0371d2e
|
@ -344,7 +344,7 @@ static int shadow_crycb(struct kvm_vcpu *vcpu, struct vsie_page *vsie_page)
|
||||||
end:
|
end:
|
||||||
switch (ret) {
|
switch (ret) {
|
||||||
case -EINVAL:
|
case -EINVAL:
|
||||||
return set_validity_icpt(scb_s, 0x0020U);
|
return set_validity_icpt(scb_s, 0x0022U);
|
||||||
case -EFAULT:
|
case -EFAULT:
|
||||||
return set_validity_icpt(scb_s, 0x0035U);
|
return set_validity_icpt(scb_s, 0x0035U);
|
||||||
case -EACCES:
|
case -EACCES:
|
||||||
|
|
Loading…
Reference in New Issue