]> git.baikalelectronics.ru Git - kernel.git/commitdiff
KVM: s390: allow facility 192 (vector-packed-decimal-enhancement facility 2)
authorChristian Borntraeger <borntraeger@de.ibm.com>
Mon, 25 Jan 2021 12:39:45 +0000 (13:39 +0100)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Wed, 23 Jun 2021 07:35:20 +0000 (09:35 +0200)
pass through newer vector instructions if vector support is enabled.

Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Reviewed-by: Janosch Frank <frankja@linux.ibm.com>
Acked-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
arch/s390/kvm/kvm-s390.c

index 876fc1f7282a0191bd1d1015c22d814361ec477a..f72f361d39ddba8a84b0ed94b5efef4df8d544c2 100644 (file)
@@ -713,6 +713,10 @@ int kvm_vm_ioctl_enable_cap(struct kvm *kvm, struct kvm_enable_cap *cap)
                                set_kvm_facility(kvm->arch.model.fac_mask, 152);
                                set_kvm_facility(kvm->arch.model.fac_list, 152);
                        }
+                       if (test_facility(192)) {
+                               set_kvm_facility(kvm->arch.model.fac_mask, 192);
+                               set_kvm_facility(kvm->arch.model.fac_list, 192);
+                       }
                        r = 0;
                } else
                        r = -EINVAL;