s390x: get rid of cpu_s390x_create()
commit524d18d8bd463431b120eeb5f9f3d1064a1c19e4
authorDavid Hildenbrand <david@redhat.com>
Wed, 13 Sep 2017 13:24:15 +0000 (13 15:24 +0200)
committerCornelia Huck <cohuck@redhat.com>
Tue, 19 Sep 2017 16:31:32 +0000 (19 18:31 +0200)
treee489796f78a1e73edd8b51ab9de8b3345fb3d212
parent2b44178d87f380eb0ca23ea93dda2146ea2e3fd0
s390x: get rid of cpu_s390x_create()

Now that there is only one user of cpu_s390x_create() left, make cpu
creation look like on x86.
- Perform the model/properties split and checks in s390_init_cpus()
- Parse features only once without having to remember if already parsed
- Pass only the typename to s390x_new_cpu()
- Use the typename of an existing CPU for hotplug via cpu-add

Acked-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: David Hildenbrand <david@redhat.com>
Message-Id: <20170913132417.24384-21-david@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
hw/s390x/s390-virtio-ccw.c
target/s390x/cpu.h
target/s390x/helper.c
target/s390x/internal.h