Skip to content

Commit 1f703d2

Browse files
committed
KVM: s390: allow facility 192 (vector-packed-decimal-enhancement facility 2)
pass through newer vector instructions if vector support is enabled. Reviewed-by: Claudio Imbrenda <[email protected]> Reviewed-by: Janosch Frank <[email protected]> Acked-by: Cornelia Huck <[email protected]> Signed-off-by: Christian Borntraeger <[email protected]>
1 parent a3efa84 commit 1f703d2

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

arch/s390/kvm/kvm-s390.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -713,6 +713,10 @@ int kvm_vm_ioctl_enable_cap(struct kvm *kvm, struct kvm_enable_cap *cap)
713713
set_kvm_facility(kvm->arch.model.fac_mask, 152);
714714
set_kvm_facility(kvm->arch.model.fac_list, 152);
715715
}
716+
if (test_facility(192)) {
717+
set_kvm_facility(kvm->arch.model.fac_mask, 192);
718+
set_kvm_facility(kvm->arch.model.fac_list, 192);
719+
}
716720
r = 0;
717721
} else
718722
r = -EINVAL;

0 commit comments

Comments
 (0)