s390x: add helper get_machine_class
commitcec8bbf7d64a7f9d95921c99faca8ff62241572b
authorHalil Pasic <pasic@linux.vnet.ibm.com>
Tue, 11 Jul 2017 14:54:36 +0000 (11 16:54 +0200)
committerChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 14 Jul 2017 10:29:47 +0000 (14 12:29 +0200)
treecef2103fafff4305484b65aa87fdc06952152c7b
parent25a08b8ded0f4f898b6b12c7ee2cf4c1c55cfcce
s390x: add helper get_machine_class

We will need the machine class at machine initialization time, so the
usual way via qdev won't do. Let's cache the machine class and also use
the default values of the base machine for capability discovery.

Signed-off-by: Halil Pasic <pasic@linux.vnet.ibm.com>
Acked-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Message-Id: <20170711145441.33925-2-pasic@linux.vnet.ibm.com>
Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
hw/s390x/s390-virtio-ccw.c