[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [qemu-s390x] [PATCH v1] s390x: add zPCI feature to "qemu" CPU model
From: |
Cornelia Huck |
Subject: |
Re: [qemu-s390x] [PATCH v1] s390x: add zPCI feature to "qemu" CPU model |
Date: |
Tue, 12 Feb 2019 12:16:15 +0100 |
On Tue, 12 Feb 2019 10:30:23 +0100
David Hildenbrand <address@hidden> wrote:
> 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>
> ---
> 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 3fb5c88af9..7f0d394fbe 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(0x2064, 7, 1, qemu_cpu_feat);
Hm, don't we emulate a (stripped-down) z12 (2827)? Or am I
misunderstanding?
> }
>
> static void ccw_machine_3_1_class_options(MachineClass *mc)