kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Christian Borntraeger <borntraeger@de.ibm.com>
To: Janosch Frank <frankja@linux.vnet.ibm.com>
Cc: KVM <kvm@vger.kernel.org>, Cornelia Huck <cohuck@redhat.com>,
	Christian Borntraeger <borntraeger@de.ibm.com>,
	David Hildenbrand <david@redhat.com>,
	linux-s390 <linux-s390@vger.kernel.org>,
	Thomas Huth <thuth@redhat.com>,
	Claudio Imbrenda <imbrenda@linux.ibm.com>
Subject: [PATCH 2/2] KVM: s390: allow facility 192 (vector-packed-decimal-enhancement facility 2)
Date: Tue, 22 Jun 2021 16:34:12 +0200	[thread overview]
Message-ID: <20210622143412.143369-3-borntraeger@de.ibm.com> (raw)
In-Reply-To: <20210622143412.143369-1-borntraeger@de.ibm.com>

pass through newer vector instructions if vector support is enabled.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
---
 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;
-- 
2.31.1


  parent reply	other threads:[~2021-06-22 14:34 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-06-22 14:34 [PATCH 0/2] KVM: s390: Enable some more facilities Christian Borntraeger
2021-06-22 14:34 ` [PATCH 1/2] KVM: s390: gen_facilities: allow facilities 165, 193, 194 and 196 Christian Borntraeger
2021-06-22 16:24   ` Claudio Imbrenda
2021-06-22 16:38   ` Cornelia Huck
2021-06-23  7:29   ` Janosch Frank
2021-06-22 14:34 ` Christian Borntraeger [this message]
2021-06-22 16:28   ` [PATCH 2/2] KVM: s390: allow facility 192 (vector-packed-decimal-enhancement facility 2) Claudio Imbrenda
2021-06-22 16:39   ` Cornelia Huck
2021-06-23  7:30   ` Janosch Frank
2021-06-22 16:40 ` [PATCH 0/2] KVM: s390: Enable some more facilities Cornelia Huck
2021-06-22 16:49   ` Christian Borntraeger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20210622143412.143369-3-borntraeger@de.ibm.com \
    --to=borntraeger@de.ibm.com \
    --cc=cohuck@redhat.com \
    --cc=david@redhat.com \
    --cc=frankja@linux.vnet.ibm.com \
    --cc=imbrenda@linux.ibm.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=thuth@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).