Blame SOURCES/kvm-s390x-kvm-provide-stfle.81.patch

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