|
|
4a2fec |
From 775d414bd144e3562456e2caa5b246f5ef41a5fd Mon Sep 17 00:00:00 2001
|
|
|
4a2fec |
From: Thomas Huth <thuth@redhat.com>
|
|
|
4a2fec |
Date: Tue, 23 Jan 2018 19:12:46 +0100
|
|
|
4a2fec |
Subject: [PATCH 4/8] s390x/kvm: provide stfle.81
|
|
|
4a2fec |
|
|
|
4a2fec |
RH-Author: Thomas Huth <thuth@redhat.com>
|
|
|
4a2fec |
Message-id: <1516734766-12075-4-git-send-email-thuth@redhat.com>
|
|
|
4a2fec |
Patchwork-id: 78702
|
|
|
4a2fec |
O-Subject: [RHEL-7.5 qemu-kvm-ma PATCH 3/3] s390x/kvm: provide stfle.81
|
|
|
4a2fec |
Bugzilla: 1535606
|
|
|
4a2fec |
RH-Acked-by: David Hildenbrand <david@redhat.com>
|
|
|
4a2fec |
RH-Acked-by: Cornelia Huck <cohuck@redhat.com>
|
|
|
4a2fec |
RH-Acked-by: Jens Freimann <jfreimann@redhat.com>
|
|
|
4a2fec |
|
|
|
4a2fec |
From: Christian Borntraeger <borntraeger@de.ibm.com>
|
|
|
4a2fec |
|
|
|
4a2fec |
stfle.81 (ppa15) is a transparent facility that can be passed to the
|
|
|
4a2fec |
guest without the need to implement hypervisor support. As this feature
|
|
|
4a2fec |
can be provided by firmware we add it to all full models.
|
|
|
4a2fec |
|
|
|
4a2fec |
Cc: qemu-stable@nongnu.org
|
|
|
4a2fec |
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
|
|
|
4a2fec |
Message-Id: <20180118085628.40798-4-borntraeger@de.ibm.com>
|
|
|
4a2fec |
Reviewed-by: Halil Pasic <pasic@linux.vnet.ibm.com>
|
|
|
4a2fec |
Reviewed-by: David Hildenbrand <david@redhat.com>
|
|
|
4a2fec |
Reviewed-by: Thomas Huth <thuth@redhat.com>
|
|
|
4a2fec |
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
|
|
|
4a2fec |
(cherry picked from commit 9f0d13f4f1de3cf9b70435cc4e87a301ee12471f)
|
|
|
4a2fec |
Signed-off-by: Miroslav Rezanina <mrezanin@redhat.com>
|
|
|
4a2fec |
---
|
|
|
4a2fec |
target/s390x/cpu_features.c | 1 +
|
|
|
4a2fec |
target/s390x/cpu_features_def.h | 1 +
|
|
|
4a2fec |
target/s390x/gen-features.c | 1 +
|
|
|
4a2fec |
3 files changed, 3 insertions(+)
|
|
|
4a2fec |
|
|
|
4a2fec |
diff --git a/target/s390x/cpu_features.c b/target/s390x/cpu_features.c
|
|
|
4a2fec |
index d39efb0..5ecb2bc 100644
|
|
|
4a2fec |
--- a/target/s390x/cpu_features.c
|
|
|
4a2fec |
+++ b/target/s390x/cpu_features.c
|
|
|
4a2fec |
@@ -89,6 +89,7 @@ static const S390FeatDef s390_features[] = {
|
|
|
4a2fec |
FEAT_INIT("msa4-base", S390_FEAT_TYPE_STFL, 77, "Message-security-assist-extension-4 facility (excluding subfunctions)"),
|
|
|
4a2fec |
FEAT_INIT("edat2", S390_FEAT_TYPE_STFL, 78, "Enhanced-DAT facility 2"),
|
|
|
4a2fec |
FEAT_INIT("dfppc", S390_FEAT_TYPE_STFL, 80, "Decimal-floating-point packed-conversion facility"),
|
|
|
4a2fec |
+ FEAT_INIT("ppa15", S390_FEAT_TYPE_STFL, 81, "PPA15 is installed"),
|
|
|
4a2fec |
FEAT_INIT("bpb", S390_FEAT_TYPE_STFL, 82, "Branch prediction blocking"),
|
|
|
4a2fec |
FEAT_INIT("vx", S390_FEAT_TYPE_STFL, 129, "Vector facility"),
|
|
|
4a2fec |
FEAT_INIT("iep", S390_FEAT_TYPE_STFL, 130, "Instruction-execution-protection facility"),
|
|
|
4a2fec |
diff --git a/target/s390x/cpu_features_def.h b/target/s390x/cpu_features_def.h
|
|
|
4a2fec |
index 4487cfd..4d93087 100644
|
|
|
4a2fec |
--- a/target/s390x/cpu_features_def.h
|
|
|
4a2fec |
+++ b/target/s390x/cpu_features_def.h
|
|
|
4a2fec |
@@ -80,6 +80,7 @@ typedef enum {
|
|
|
4a2fec |
S390_FEAT_MSA_EXT_4,
|
|
|
4a2fec |
S390_FEAT_EDAT_2,
|
|
|
4a2fec |
S390_FEAT_DFP_PACKED_CONVERSION,
|
|
|
4a2fec |
+ S390_FEAT_PPA15,
|
|
|
4a2fec |
S390_FEAT_BPB,
|
|
|
4a2fec |
S390_FEAT_VECTOR,
|
|
|
4a2fec |
S390_FEAT_INSTRUCTION_EXEC_PROT,
|
|
|
4a2fec |
diff --git a/target/s390x/gen-features.c b/target/s390x/gen-features.c
|
|
|
4a2fec |
index 13a6291..e6b4152 100644
|
|
|
4a2fec |
--- a/target/s390x/gen-features.c
|
|
|
4a2fec |
+++ b/target/s390x/gen-features.c
|
|
|
4a2fec |
@@ -352,6 +352,7 @@ static uint16_t base_GEN14_GA1[] = {
|
|
|
4a2fec |
* support these features yet.
|
|
|
4a2fec |
*/
|
|
|
4a2fec |
static uint16_t full_GEN7_GA1[] = {
|
|
|
4a2fec |
+ S390_FEAT_PPA15,
|
|
|
4a2fec |
S390_FEAT_BPB,
|
|
|
4a2fec |
S390_FEAT_SIE_F2,
|
|
|
4a2fec |
S390_FEAT_SIE_SKEY,
|
|
|
4a2fec |
--
|
|
|
4a2fec |
1.8.3.1
|
|
|
4a2fec |
|