s390x/cpu: Cleanup init in preparation for hotplug
commitd2eae20790e825656b205dbe347826ff991fb3d8
authorMatthew Rosato <mjrosato@linux.vnet.ibm.com>
Fri, 4 Mar 2016 17:34:29 +0000 (4 12:34 -0500)
committerCornelia Huck <cornelia.huck@de.ibm.com>
Thu, 10 Mar 2016 09:37:15 +0000 (10 10:37 +0100)
treefeab08d5f041b3e54766bdc7762a8e982e051990
parenta648c137383d84bc4f95696e5293978d9541a26e
s390x/cpu: Cleanup init in preparation for hotplug

Ensure a valid cpu_model is set upfront by setting the
default value directly into the MachineState when none is
specified.  This is needed to ensure hotplugged CPUs share
the same cpu_model.

Signed-off-by: Matthew Rosato <mjrosato@linux.vnet.ibm.com>
Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
Message-Id: <1457112875-5209-2-git-send-email-mjrosato@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
hw/s390x/s390-virtio-ccw.c
hw/s390x/s390-virtio.c
hw/s390x/s390-virtio.h