KVM: s390: vsie: Return correct values for Invalid CRYCB format
authorPierre Morel <pmorel@linux.ibm.com>
Fri, 26 Apr 2019 09:00:01 +0000 (11:00 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 29 Apr 2019 07:01:22 +0000 (09:01 +0200)
Let's use the correct validity number.

Fixes: 56019f9aca22 ("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>
arch/s390/kvm/vsie.c

index ac411e9e2bd38eba68fb24a6220479f6f369a93e..076090f9e666c56139c70f02e59d41b598ef4773 100644 (file)
@@ -344,7 +344,7 @@ static int shadow_crycb(struct kvm_vcpu *vcpu, struct vsie_page *vsie_page)
 end:
        switch (ret) {
        case -EINVAL:
-               return set_validity_icpt(scb_s, 0x0020U);
+               return set_validity_icpt(scb_s, 0x0022U);
        case -EFAULT:
                return set_validity_icpt(scb_s, 0x0035U);
        case -EACCES: