On Tue, 22 Jun 2021 16:34:12 +0200 Christian Borntraeger <borntraeger@xxxxxxxxxx> wrote: > pass through newer vector instructions if vector support is enabled. > > Signed-off-by: Christian Borntraeger <borntraeger@xxxxxxxxxx> Reviewed-by: Claudio Imbrenda <imbrenda@xxxxxxxxxxxxx> > --- > arch/s390/kvm/kvm-s390.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c > index 1296fc10f80c..0d59f9331649 100644 > --- a/arch/s390/kvm/kvm-s390.c > +++ b/arch/s390/kvm/kvm-s390.c > @@ -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;