[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 2/6] s390x/cpumodel: add stfl197 processor-activity-instrumentatio
From: |
Thomas Huth |
Subject: |
[PULL 2/6] s390x/cpumodel: add stfl197 processor-activity-instrumentation extension 1 |
Date: |
Tue, 30 Aug 2022 19:19:43 +0200 |
From: Christian Borntraeger <borntraeger@linux.ibm.com>
Add stfle 197 (processor-activity-instrumentation extension 1) to the
gen16 default model and fence it off for 7.1 and older.
Signed-off-by: Christian Borntraeger <borntraeger@linux.ibm.com>
Reviewed-by: David Hildenbrand <david@redhat.com>
Message-Id: <20220727135120.12784-1-borntraeger@linux.ibm.com>
Acked-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Thomas Huth <thuth@redhat.com>
---
target/s390x/cpu_features_def.h.inc | 1 +
hw/s390x/s390-virtio-ccw.c | 1 +
target/s390x/gen-features.c | 2 ++
3 files changed, 4 insertions(+)
diff --git a/target/s390x/cpu_features_def.h.inc
b/target/s390x/cpu_features_def.h.inc
index 3603e5fb12..e3cfe63735 100644
--- a/target/s390x/cpu_features_def.h.inc
+++ b/target/s390x/cpu_features_def.h.inc
@@ -114,6 +114,7 @@ DEF_FEAT(VECTOR_PACKED_DECIMAL_ENH2, "vxpdeh2", STFL, 192,
"Vector-Packed-Decima
DEF_FEAT(BEAR_ENH, "beareh", STFL, 193, "BEAR-enhancement facility")
DEF_FEAT(RDP, "rdp", STFL, 194, "Reset-DAT-protection facility")
DEF_FEAT(PAI, "pai", STFL, 196, "Processor-Activity-Instrumentation facility")
+DEF_FEAT(PAIE, "paie", STFL, 197, "Processor-Activity-Instrumentation
extension-1")
/* Features exposed via SCLP SCCB Byte 80 - 98 (bit numbers relative to
byte-80) */
DEF_FEAT(SIE_GSLS, "gsls", SCLP_CONF_CHAR, 40, "SIE:
Guest-storage-limit-suppression facility")
diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c
index bf1b36d824..9a2467c889 100644
--- a/hw/s390x/s390-virtio-ccw.c
+++ b/hw/s390x/s390-virtio-ccw.c
@@ -804,6 +804,7 @@ DEFINE_CCW_MACHINE(7_2, "7.2", true);
static void ccw_machine_7_1_instance_options(MachineState *machine)
{
ccw_machine_7_2_instance_options(machine);
+ s390_cpudef_featoff_greater(16, 1, S390_FEAT_PAIE);
}
static void ccw_machine_7_1_class_options(MachineClass *mc)
diff --git a/target/s390x/gen-features.c b/target/s390x/gen-features.c
index ad140184b9..1558c52626 100644
--- a/target/s390x/gen-features.c
+++ b/target/s390x/gen-features.c
@@ -575,6 +575,7 @@ static uint16_t full_GEN16_GA1[] = {
S390_FEAT_BEAR_ENH,
S390_FEAT_RDP,
S390_FEAT_PAI,
+ S390_FEAT_PAIE,
};
@@ -669,6 +670,7 @@ static uint16_t default_GEN16_GA1[] = {
S390_FEAT_BEAR_ENH,
S390_FEAT_RDP,
S390_FEAT_PAI,
+ S390_FEAT_PAIE,
};
/* QEMU (CPU model) features */
--
2.31.1
- [PULL 0/6] First s390x updates for QEMU 7.2, Thomas Huth, 2022/08/30
- [PULL 1/6] hw: Add compat machines for 7.2, Thomas Huth, 2022/08/30
- [PULL 2/6] s390x/cpumodel: add stfl197 processor-activity-instrumentation extension 1,
Thomas Huth <=
- [PULL 4/6] backends/hostmem: Fix support of memory-backend-memfd in qemu_maxrampagesize(), Thomas Huth, 2022/08/30
- [PULL 3/6] target/s390x: Fix CLFIT and CLGIT immediate size, Thomas Huth, 2022/08/30
- [PULL 5/6] softmmu/physmem: Remove the ifdef __linux__ around the pagesize functions, Thomas Huth, 2022/08/30
- [PULL 6/6] util/mmap-alloc: Remove qemu_mempath_getpagesize(), Thomas Huth, 2022/08/30
- Re: [PULL 0/6] First s390x updates for QEMU 7.2, Stefan Hajnoczi, 2022/08/31