[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[qemu-s390x] [PULL 05/10] s390x: add zPCI feature to "qemu" CPU model
From: |
Cornelia Huck |
Subject: |
[qemu-s390x] [PULL 05/10] s390x: add zPCI feature to "qemu" CPU model |
Date: |
Mon, 18 Feb 2019 12:11:48 +0100 |
From: David Hildenbrand <address@hidden>
As we now always have PCI support, let's add it to the "qemu" CPU model,
taking care of backwards compatibility.
Signed-off-by: David Hildenbrand <address@hidden>
Message-Id: <address@hidden>
Signed-off-by: Cornelia Huck <address@hidden>
---
hw/s390x/s390-virtio-ccw.c | 3 +++
target/s390x/gen-features.c | 8 ++++++--
2 files changed, 9 insertions(+), 2 deletions(-)
diff --git a/hw/s390x/s390-virtio-ccw.c b/hw/s390x/s390-virtio-ccw.c
index 3fb5c88af9cc..1a3414b64280 100644
--- a/hw/s390x/s390-virtio-ccw.c
+++ b/hw/s390x/s390-virtio-ccw.c
@@ -657,7 +657,10 @@ DEFINE_CCW_MACHINE(4_0, "4.0", true);
static void ccw_machine_3_1_instance_options(MachineState *machine)
{
+ static const S390FeatInit qemu_cpu_feat = { S390_FEAT_LIST_QEMU_V3_1 };
ccw_machine_4_0_instance_options(machine);
+
+ s390_set_qemu_cpu_model(0x2827, 12, 2, qemu_cpu_feat);
}
static void ccw_machine_3_1_class_options(MachineClass *mc)
diff --git a/target/s390x/gen-features.c b/target/s390x/gen-features.c
index b0e9b271e228..19bb8ac7f890 100644
--- a/target/s390x/gen-features.c
+++ b/target/s390x/gen-features.c
@@ -560,7 +560,7 @@ static uint16_t qemu_V2_11[] = {
S390_FEAT_ZARCH,
};
-static uint16_t qemu_LATEST[] = {
+static uint16_t qemu_V3_1[] = {
S390_FEAT_DAT_ENH,
S390_FEAT_IDTE_SEGMENT,
S390_FEAT_STFLE,
@@ -592,13 +592,16 @@ static uint16_t qemu_LATEST[] = {
S390_FEAT_MSA_EXT_4,
};
+static uint16_t qemu_LATEST[] = {
+ S390_FEAT_ZPCI,
+};
+
/* add all new definitions before this point */
static uint16_t qemu_MAX[] = {
/* z13+ features */
S390_FEAT_STFLE_53,
/* generates a dependency warning, leave it out for now */
S390_FEAT_MSA_EXT_5,
- S390_FEAT_ZPCI,
};
/****** END FEATURE DEFS ******/
@@ -708,6 +711,7 @@ static FeatGroupDefSpec FeatGroupDef[] = {
*******************************/
static FeatGroupDefSpec QemuFeatDef[] = {
QEMU_FEAT_INITIALIZER(V2_11),
+ QEMU_FEAT_INITIALIZER(V3_1),
QEMU_FEAT_INITIALIZER(LATEST),
QEMU_FEAT_INITIALIZER(MAX),
};
--
2.17.2
- [qemu-s390x] [PULL 06/10] s390x/tcg: Don't model FP registers as globals, (continued)
- [qemu-s390x] [PULL 06/10] s390x/tcg: Don't model FP registers as globals, Cornelia Huck, 2019/02/05
- [qemu-s390x] [PULL 08/10] s390x/pci: Fix hotplugging of PCI bridges, Cornelia Huck, 2019/02/05
- [qemu-s390x] [PULL 09/10] s390x/pci: Warn when adding PCI devices without the 'zpci' feature, Cornelia Huck, 2019/02/05
- [qemu-s390x] [PULL 10/10] s390x/pci: Unplug remaining requested devices on pcihost reset, Cornelia Huck, 2019/02/05
- Re: [qemu-s390x] [PULL 00/10] s390x update, Peter Maydell, 2019/02/05
- [qemu-s390x] [PULL 00/10] s390x update, Cornelia Huck, 2019/02/18
- [qemu-s390x] [PULL 03/10] target/s390x: Split out s390-tod.h, Cornelia Huck, 2019/02/18
- [qemu-s390x] [PULL 01/10] s390x: Fix the confusing contributions-after-2012 license statements, Cornelia Huck, 2019/02/18
- [qemu-s390x] [PULL 04/10] target/s390x: Implement STCK et al for CONFIG_USER_ONLY, Cornelia Huck, 2019/02/18
- [qemu-s390x] [PULL 02/10] s390x: always provide pci support, Cornelia Huck, 2019/02/18
- [qemu-s390x] [PULL 05/10] s390x: add zPCI feature to "qemu" CPU model,
Cornelia Huck <=
- [qemu-s390x] [PULL 06/10] s390x/cpumodel: mepochptff: warn when no mepoch and re-align group init, Cornelia Huck, 2019/02/18
- [qemu-s390x] [PULL 07/10] s390x/cpumodel: default enable mepoch for z14 and later, Cornelia Huck, 2019/02/18
- [qemu-s390x] [PULL 09/10] s390x/kvm: add tracepoint to ioeventfd interface, Cornelia Huck, 2019/02/18
- [qemu-s390x] [PULL 08/10] s390x/cpumodel: add z14 GA2 model, Cornelia Huck, 2019/02/18
- [qemu-s390x] [PULL 10/10] s390x: upgrade status of KVM cores to "supported", Cornelia Huck, 2019/02/18
- Re: [qemu-s390x] [Qemu-devel] [PULL 00/10] s390x update, no-reply, 2019/02/18
- Re: [qemu-s390x] [Qemu-devel] [PULL 00/10] s390x update, no-reply, 2019/02/18
- Re: [qemu-s390x] [Qemu-devel] [PULL 00/10] s390x update, no-reply, 2019/02/18
- Re: [qemu-s390x] [Qemu-devel] [PULL 00/10] s390x update, no-reply, 2019/02/18
- Re: [qemu-s390x] [Qemu-devel] [PULL 00/10] s390x update, no-reply, 2019/02/18