All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/2] KVM: s390: Enable some more facilities
@ 2021-06-22 14:34 Christian Borntraeger
  2021-06-22 14:34 ` [PATCH 1/2] KVM: s390: gen_facilities: allow facilities 165, 193, 194 and 196 Christian Borntraeger
                   ` (2 more replies)
  0 siblings, 3 replies; 11+ messages in thread
From: Christian Borntraeger @ 2021-06-22 14:34 UTC (permalink / raw)
  To: Janosch Frank
  Cc: KVM, Cornelia Huck, Christian Borntraeger, David Hildenbrand,
	linux-s390, Thomas Huth, Claudio Imbrenda

Some more facilities that can be enabled in the future.

Christian Borntraeger (2):
  KVM: s390: gen_facilities: allow facilities 165, 193, 194 and 196
  KVM: s390: allow facility 192 (vector-packed-decimal-enhancement
    facility 2)

 arch/s390/kvm/kvm-s390.c         | 4 ++++
 arch/s390/tools/gen_facilities.c | 4 ++++
 2 files changed, 8 insertions(+)

-- 
2.31.1


^ permalink raw reply	[flat|nested] 11+ messages in thread

* [PATCH 1/2] KVM: s390: gen_facilities: allow facilities 165, 193, 194 and 196
  2021-06-22 14:34 [PATCH 0/2] KVM: s390: Enable some more facilities Christian Borntraeger
@ 2021-06-22 14:34 ` Christian Borntraeger
  2021-06-22 16:24   ` Claudio Imbrenda
                     ` (2 more replies)
  2021-06-22 14:34 ` [PATCH 2/2] KVM: s390: allow facility 192 (vector-packed-decimal-enhancement facility 2) Christian Borntraeger
  2021-06-22 16:40 ` [PATCH 0/2] KVM: s390: Enable some more facilities Cornelia Huck
  2 siblings, 3 replies; 11+ messages in thread
From: Christian Borntraeger @ 2021-06-22 14:34 UTC (permalink / raw)
  To: Janosch Frank
  Cc: KVM, Cornelia Huck, Christian Borntraeger, David Hildenbrand,
	linux-s390, Thomas Huth, Claudio Imbrenda

This enables the neural NNPA, BEAR enhancement,reset DAT protection and
processor activity counter facilities via the cpu model.

Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
---
 arch/s390/tools/gen_facilities.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/arch/s390/tools/gen_facilities.c b/arch/s390/tools/gen_facilities.c
index 61ce5b59b828..606324e56e4e 100644
--- a/arch/s390/tools/gen_facilities.c
+++ b/arch/s390/tools/gen_facilities.c
@@ -115,6 +115,10 @@ static struct facility_def facility_defs[] = {
 			12, /* AP Query Configuration Information */
 			15, /* AP Facilities Test */
 			156, /* etoken facility */
+			165, /* nnpa facility */
+			193, /* bear enhancement facility */
+			194, /* rdp enhancement facility */
+			196, /* processor activity instrumentation facility */
 			-1  /* END */
 		}
 	},
-- 
2.31.1


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* [PATCH 2/2] KVM: s390: allow facility 192 (vector-packed-decimal-enhancement facility 2)
  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 14:34 ` Christian Borntraeger
  2021-06-22 16:28   ` Claudio Imbrenda
                     ` (2 more replies)
  2021-06-22 16:40 ` [PATCH 0/2] KVM: s390: Enable some more facilities Cornelia Huck
  2 siblings, 3 replies; 11+ messages in thread
From: Christian Borntraeger @ 2021-06-22 14:34 UTC (permalink / raw)
  To: Janosch Frank
  Cc: KVM, Cornelia Huck, Christian Borntraeger, David Hildenbrand,
	linux-s390, Thomas Huth, Claudio Imbrenda

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


^ permalink raw reply related	[flat|nested] 11+ messages in thread

* Re: [PATCH 1/2] KVM: s390: gen_facilities: allow facilities 165, 193, 194 and 196
  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
  2 siblings, 0 replies; 11+ messages in thread
From: Claudio Imbrenda @ 2021-06-22 16:24 UTC (permalink / raw)
  To: Christian Borntraeger
  Cc: Janosch Frank, KVM, Cornelia Huck, David Hildenbrand, linux-s390,
	Thomas Huth

On Tue, 22 Jun 2021 16:34:11 +0200
Christian Borntraeger <borntraeger@de.ibm.com> wrote:

> This enables the neural NNPA, BEAR enhancement,reset DAT protection
> and processor activity counter facilities via the cpu model.
> 
> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>

Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>

> ---
>  arch/s390/tools/gen_facilities.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/arch/s390/tools/gen_facilities.c
> b/arch/s390/tools/gen_facilities.c index 61ce5b59b828..606324e56e4e
> 100644 --- a/arch/s390/tools/gen_facilities.c
> +++ b/arch/s390/tools/gen_facilities.c
> @@ -115,6 +115,10 @@ static struct facility_def facility_defs[] = {
>  			12, /* AP Query Configuration Information */
>  			15, /* AP Facilities Test */
>  			156, /* etoken facility */
> +			165, /* nnpa facility */
> +			193, /* bear enhancement facility */
> +			194, /* rdp enhancement facility */
> +			196, /* processor activity instrumentation
> facility */ -1  /* END */
>  		}
>  	},


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 2/2] KVM: s390: allow facility 192 (vector-packed-decimal-enhancement facility 2)
  2021-06-22 14:34 ` [PATCH 2/2] KVM: s390: allow facility 192 (vector-packed-decimal-enhancement facility 2) Christian Borntraeger
@ 2021-06-22 16:28   ` Claudio Imbrenda
  2021-06-22 16:39   ` Cornelia Huck
  2021-06-23  7:30   ` Janosch Frank
  2 siblings, 0 replies; 11+ messages in thread
From: Claudio Imbrenda @ 2021-06-22 16:28 UTC (permalink / raw)
  To: Christian Borntraeger
  Cc: Janosch Frank, KVM, Cornelia Huck, David Hildenbrand, linux-s390,
	Thomas Huth

On Tue, 22 Jun 2021 16:34:12 +0200
Christian Borntraeger <borntraeger@de.ibm.com> wrote:

> pass through newer vector instructions if vector support is enabled.
> 
> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>

Reviewed-by: Claudio Imbrenda <imbrenda@linux.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;


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 1/2] KVM: s390: gen_facilities: allow facilities 165, 193, 194 and 196
  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
  2 siblings, 0 replies; 11+ messages in thread
From: Cornelia Huck @ 2021-06-22 16:38 UTC (permalink / raw)
  To: Christian Borntraeger, Janosch Frank
  Cc: KVM, Christian Borntraeger, David Hildenbrand, linux-s390,
	Thomas Huth, Claudio Imbrenda

On Tue, Jun 22 2021, Christian Borntraeger <borntraeger@de.ibm.com> wrote:

> This enables the neural NNPA, BEAR enhancement,reset DAT protection and
> processor activity counter facilities via the cpu model.
>
> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
> ---
>  arch/s390/tools/gen_facilities.c | 4 ++++
>  1 file changed, 4 insertions(+)

Acked-by: Cornelia Huck <cohuck@redhat.com>


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 2/2] KVM: s390: allow facility 192 (vector-packed-decimal-enhancement facility 2)
  2021-06-22 14:34 ` [PATCH 2/2] KVM: s390: allow facility 192 (vector-packed-decimal-enhancement facility 2) Christian Borntraeger
  2021-06-22 16:28   ` Claudio Imbrenda
@ 2021-06-22 16:39   ` Cornelia Huck
  2021-06-23  7:30   ` Janosch Frank
  2 siblings, 0 replies; 11+ messages in thread
From: Cornelia Huck @ 2021-06-22 16:39 UTC (permalink / raw)
  To: Christian Borntraeger, Janosch Frank
  Cc: KVM, Christian Borntraeger, David Hildenbrand, linux-s390,
	Thomas Huth, Claudio Imbrenda

On Tue, Jun 22 2021, Christian Borntraeger <borntraeger@de.ibm.com> wrote:

> 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(+)

Acked-by: Cornelia Huck <cohuck@redhat.com>


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 0/2] KVM: s390: Enable some more facilities
  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 14:34 ` [PATCH 2/2] KVM: s390: allow facility 192 (vector-packed-decimal-enhancement facility 2) Christian Borntraeger
@ 2021-06-22 16:40 ` Cornelia Huck
  2021-06-22 16:49   ` Christian Borntraeger
  2 siblings, 1 reply; 11+ messages in thread
From: Cornelia Huck @ 2021-06-22 16:40 UTC (permalink / raw)
  To: Christian Borntraeger, Janosch Frank
  Cc: KVM, Christian Borntraeger, David Hildenbrand, linux-s390,
	Thomas Huth, Claudio Imbrenda

On Tue, Jun 22 2021, Christian Borntraeger <borntraeger@de.ibm.com> wrote:

> Some more facilities that can be enabled in the future.
>
> Christian Borntraeger (2):
>   KVM: s390: gen_facilities: allow facilities 165, 193, 194 and 196
>   KVM: s390: allow facility 192 (vector-packed-decimal-enhancement
>     facility 2)
>
>  arch/s390/kvm/kvm-s390.c         | 4 ++++
>  arch/s390/tools/gen_facilities.c | 4 ++++
>  2 files changed, 8 insertions(+)

I assume we can also expect some QEMU patches sometime in the future
that add some new features?


^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 0/2] KVM: s390: Enable some more facilities
  2021-06-22 16:40 ` [PATCH 0/2] KVM: s390: Enable some more facilities Cornelia Huck
@ 2021-06-22 16:49   ` Christian Borntraeger
  0 siblings, 0 replies; 11+ messages in thread
From: Christian Borntraeger @ 2021-06-22 16:49 UTC (permalink / raw)
  To: Cornelia Huck, Janosch Frank
  Cc: KVM, David Hildenbrand, linux-s390, Thomas Huth, Claudio Imbrenda



On 22.06.21 18:40, Cornelia Huck wrote:
> On Tue, Jun 22 2021, Christian Borntraeger <borntraeger@de.ibm.com> wrote:
> 
>> Some more facilities that can be enabled in the future.
>>
>> Christian Borntraeger (2):
>>    KVM: s390: gen_facilities: allow facilities 165, 193, 194 and 196
>>    KVM: s390: allow facility 192 (vector-packed-decimal-enhancement
>>      facility 2)
>>
>>   arch/s390/kvm/kvm-s390.c         | 4 ++++
>>   arch/s390/tools/gen_facilities.c | 4 ++++
>>   2 files changed, 8 insertions(+)
> 
> I assume we can also expect some QEMU patches sometime in the future
> that add some new features?

yes. Either today or tomorrow.

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 1/2] KVM: s390: gen_facilities: allow facilities 165, 193, 194 and 196
  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
  2 siblings, 0 replies; 11+ messages in thread
From: Janosch Frank @ 2021-06-23  7:29 UTC (permalink / raw)
  To: Christian Borntraeger, Janosch Frank
  Cc: KVM, Cornelia Huck, David Hildenbrand, linux-s390, Thomas Huth,
	Claudio Imbrenda

On 6/22/21 4:34 PM, Christian Borntraeger wrote:
> This enables the neural NNPA, BEAR enhancement,reset DAT protection and
> processor activity counter facilities via the cpu model.
> 
> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
> ---
>  arch/s390/tools/gen_facilities.c | 4 ++++
>  1 file changed, 4 insertions(+)
> 
> diff --git a/arch/s390/tools/gen_facilities.c b/arch/s390/tools/gen_facilities.c
> index 61ce5b59b828..606324e56e4e 100644
> --- a/arch/s390/tools/gen_facilities.c
> +++ b/arch/s390/tools/gen_facilities.c
> @@ -115,6 +115,10 @@ static struct facility_def facility_defs[] = {
>  			12, /* AP Query Configuration Information */
>  			15, /* AP Facilities Test */
>  			156, /* etoken facility */
> +			165, /* nnpa facility */
> +			193, /* bear enhancement facility */
> +			194, /* rdp enhancement facility */
> +			196, /* processor activity instrumentation facility */
>  			-1  /* END */
>  		}
>  	},
> 

Reviewed-by: Janosch Frank <frankja@linux.ibm.com>

^ permalink raw reply	[flat|nested] 11+ messages in thread

* Re: [PATCH 2/2] KVM: s390: allow facility 192 (vector-packed-decimal-enhancement facility 2)
  2021-06-22 14:34 ` [PATCH 2/2] KVM: s390: allow facility 192 (vector-packed-decimal-enhancement facility 2) Christian Borntraeger
  2021-06-22 16:28   ` Claudio Imbrenda
  2021-06-22 16:39   ` Cornelia Huck
@ 2021-06-23  7:30   ` Janosch Frank
  2 siblings, 0 replies; 11+ messages in thread
From: Janosch Frank @ 2021-06-23  7:30 UTC (permalink / raw)
  To: Christian Borntraeger, Janosch Frank
  Cc: KVM, Cornelia Huck, David Hildenbrand, linux-s390, Thomas Huth,
	Claudio Imbrenda

On 6/22/21 4:34 PM, Christian Borntraeger wrote:
> 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;
> 

Reviewed-by: Janosch Frank <frankja@linux.ibm.com>

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2021-06-23  7:30 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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 ` [PATCH 2/2] KVM: s390: allow facility 192 (vector-packed-decimal-enhancement facility 2) Christian Borntraeger
2021-06-22 16:28   ` 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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.