hw: apply machine compat properties without touching globals
commitb66bbee39f6deb28f0645760c536cbf2189a0687
authorMarc-André Lureau <marcandre.lureau@redhat.com>
Sat, 1 Dec 2018 19:44:11 +0000 (1 23:44 +0400)
committerMarc-André Lureau <marcandre.lureau@redhat.com>
Mon, 7 Jan 2019 12:18:41 +0000 (7 16:18 +0400)
treedd227120080b44e0a4dbdcb78c296e48de7b11a9
parentfa386d989d0bec0abdcd1a883853071928adcced
hw: apply machine compat properties without touching globals

Similarly to accel properties, move compat properties out of globals
registration, and apply the machine compat properties during
device_post_init().

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Acked-by: Eduardo Habkost <ehabkost@redhat.com>
hw/arm/virt.c
hw/core/machine.c
hw/core/qdev.c
hw/i386/pc_piix.c
hw/i386/pc_q35.c
hw/ppc/spapr.c
hw/s390x/s390-virtio-ccw.c
include/hw/boards.h
vl.c