Re: [PATCH 2/2] KVM: s390: allow facility 192 (vector-packed-decimal-enhancement facility 2)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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;




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux