Received: from eggs.gnu.org ([2001:4830:134:3::10]:36006) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c1aae-0000hq-7y for qemu-devel@nongnu.org; Tue, 01 Nov 2016 11:03:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c1aaQ-0004c3-AK for qemu-devel@nongnu.org; Tue, 01 Nov 2016 11:03:04 -0400 Received: from mx1.redhat.com ([209.132.183.28]:36062) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1c1aaP-0004bI-Mw for qemu-devel@nongnu.org; Tue, 01 Nov 2016 11:02:50 -0400 Date: Tue, 1 Nov 2016 16:02:45 +0100 From: Igor Mammedov Message-ID: <20161101160245.4313ba5e@nial.brq.redhat.com> In-Reply-To: <1477705687-31175-4-git-send-email-ehabkost@redhat.com> References: <1477705687-31175-1-git-send-email-ehabkost@redhat.com> <1477705687-31175-4-git-send-email-ehabkost@redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH v4 3/8] qdev: device_class_set_props() function List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Eduardo Habkost Cc: qemu-devel@nongnu.org, Markus Armbruster , Andreas =?UTF-8?B?RsOkcmJlcg==?= , "Daniel P. Berrange" On Fri, 28 Oct 2016 23:48:02 -0200 Eduardo Habkost wrote: > Replace direct assignment of DeviceClass::props with a > device_class_set_props() function. The new function will handle > registration of class properties, later. >=20 > Most of the existing code was converted using the Coccinelle > patch below. Exceptions are: > * manual conversion of target-ppc/translate_init.c; > * reordering of code at e1000e_class_init() to ensure > device_class_set_props() is called after initialization > of the PropertyInfo structs. >=20 > Coccinelle patch: >=20 > @@ > identifier DC; > expression PROPS; > typedef DeviceClass; > @@ > DeviceClass *DC; > ... > -DC->props =3D PROPS; > +device_class_set_props(DC, PROPS); >=20 > Signed-off-by: Eduardo Habkost Reviewed-by: Igor Mammedov > --- > Changes v1 -> v2: > * s/qdev_class_set_props/device_class_set_props/ > * Suggested-by: Andreas F=C3=A4rber >=20 > Changes v2 -> v3: > * Rebased to latest qemu.git master >=20 > Changes v3 -> v4: > * Fix e1000e initialization ordering (fixes "make check" failure) > * Reported-by: Igor Mammedov > * Rebased to latest qemu.git master (new functions changed: > floppy_drive_class_init(), pnv_chip_class_init(), > pnv_core_class_init()) > --- > hw/9pfs/virtio-9p-device.c | 2 +- > hw/acpi/piix4.c | 2 +- > hw/arm/armv7m.c | 2 +- > hw/arm/bcm2836.c | 2 +- > hw/arm/integratorcp.c | 2 +- > hw/arm/musicpal.c | 2 +- > hw/arm/pxa2xx.c | 4 ++-- > hw/arm/pxa2xx_gpio.c | 2 +- > hw/arm/spitz.c | 2 +- > hw/arm/stm32f205_soc.c | 2 +- > hw/arm/strongarm.c | 2 +- > hw/arm/xlnx-zynqmp.c | 2 +- > hw/audio/ac97.c | 2 +- > hw/audio/adlib.c | 2 +- > hw/audio/cs4231.c | 2 +- > hw/audio/cs4231a.c | 2 +- > hw/audio/gus.c | 2 +- > hw/audio/hda-codec.c | 2 +- > hw/audio/intel-hda.c | 4 ++-- > hw/audio/marvell_88w8618.c | 2 +- > hw/audio/pcspk.c | 2 +- > hw/audio/pl041.c | 2 +- > hw/audio/sb16.c | 2 +- > hw/block/fdc.c | 8 ++++---- > hw/block/m25p80.c | 2 +- > hw/block/nand.c | 2 +- > hw/block/nvme.c | 2 +- > hw/block/onenand.c | 2 +- > hw/block/pflash_cfi01.c | 2 +- > hw/block/pflash_cfi02.c | 2 +- > hw/block/virtio-blk.c | 2 +- > hw/char/bcm2835_aux.c | 2 +- > hw/char/cadence_uart.c | 2 +- > hw/char/debugcon.c | 2 +- > hw/char/digic-uart.c | 2 +- > hw/char/escc.c | 2 +- > hw/char/etraxfs_ser.c | 2 +- > hw/char/exynos4210_uart.c | 2 +- > hw/char/grlib_apbuart.c | 2 +- > hw/char/imx_serial.c | 2 +- > hw/char/ipoctal232.c | 2 +- > hw/char/lm32_juart.c | 2 +- > hw/char/lm32_uart.c | 2 +- > hw/char/milkymist-uart.c | 2 +- > hw/char/parallel.c | 2 +- > hw/char/pl011.c | 2 +- > hw/char/sclpconsole-lm.c | 2 +- > hw/char/sclpconsole.c | 2 +- > hw/char/serial-isa.c | 2 +- > hw/char/serial-pci.c | 6 +++--- > hw/char/spapr_vty.c | 2 +- > hw/char/stm32f2xx_usart.c | 2 +- > hw/char/virtio-console.c | 2 +- > hw/char/virtio-serial-bus.c | 4 ++-- > hw/char/xilinx_uartlite.c | 2 +- > hw/core/generic-loader.c | 2 +- > hw/core/or-irq.c | 2 +- > hw/core/platform-bus.c | 2 +- > hw/core/qdev.c | 6 ++++++ > hw/cpu/a15mpcore.c | 2 +- > hw/cpu/a9mpcore.c | 2 +- > hw/cpu/arm11mpcore.c | 2 +- > hw/cpu/realview_mpcore.c | 2 +- > hw/display/bcm2835_fb.c | 2 +- > hw/display/cg3.c | 2 +- > hw/display/cirrus_vga.c | 4 ++-- > hw/display/g364fb.c | 2 +- > hw/display/milkymist-vgafb.c | 2 +- > hw/display/qxl.c | 2 +- > hw/display/tcx.c | 2 +- > hw/display/vga-isa.c | 2 +- > hw/display/vga-pci.c | 4 ++-- > hw/display/virtio-gpu-pci.c | 2 +- > hw/display/virtio-gpu.c | 2 +- > hw/display/virtio-vga.c | 2 +- > hw/display/vmware_vga.c | 2 +- > hw/dma/i82374.c | 2 +- > hw/dma/i8257.c | 2 +- > hw/dma/pl330.c | 2 +- > hw/dma/pxa2xx_dma.c | 2 +- > hw/dma/sparc32_dma.c | 2 +- > hw/dma/sun4m_iommu.c | 2 +- > hw/dma/xilinx_axidma.c | 2 +- > hw/gpio/imx_gpio.c | 2 +- > hw/gpio/omap_gpio.c | 4 ++-- > hw/i2c/core.c | 2 +- > hw/i2c/omap_i2c.c | 2 +- > hw/i2c/smbus_eeprom.c | 2 +- > hw/i386/intel_iommu.c | 2 +- > hw/i386/kvm/i8254.c | 2 +- > hw/i386/kvm/ioapic.c | 2 +- > hw/i386/kvm/pci-assign.c | 2 +- > hw/i386/xen/xen_pvdevice.c | 2 +- > hw/ide/ahci.c | 2 +- > hw/ide/cmd646.c | 2 +- > hw/ide/isa.c | 2 +- > hw/ide/mmio.c | 2 +- > hw/ide/qdev.c | 8 ++++---- > hw/input/milkymist-softusb.c | 2 +- > hw/input/virtio-input-hid.c | 2 +- > hw/input/virtio-input-host.c | 2 +- > hw/input/virtio-input.c | 2 +- > hw/input/vmmouse.c | 2 +- > hw/intc/apic_common.c | 2 +- > hw/intc/arm_gic_common.c | 2 +- > hw/intc/arm_gicv2m.c | 2 +- > hw/intc/arm_gicv3_common.c | 2 +- > hw/intc/etraxfs_pic.c | 2 +- > hw/intc/exynos4210_combiner.c | 2 +- > hw/intc/exynos4210_gic.c | 4 ++-- > hw/intc/grlib_irqmp.c | 2 +- > hw/intc/i8259_common.c | 2 +- > hw/intc/ioapic.c | 2 +- > hw/intc/mips_gic.c | 2 +- > hw/intc/omap_intc.c | 4 ++-- > hw/intc/openpic.c | 2 +- > hw/intc/openpic_kvm.c | 2 +- > hw/intc/xilinx_intc.c | 2 +- > hw/ipack/ipack.c | 2 +- > hw/ipmi/ipmi.c | 2 +- > hw/ipmi/ipmi_bmc_extern.c | 2 +- > hw/ipmi/isa_ipmi_bt.c | 2 +- > hw/ipmi/isa_ipmi_kcs.c | 2 +- > hw/isa/lpc_ich9.c | 2 +- > hw/isa/pc87312.c | 2 +- > hw/isa/vt82c686.c | 2 +- > hw/mem/pc-dimm.c | 2 +- > hw/mips/cps.c | 2 +- > hw/misc/a9scu.c | 2 +- > hw/misc/applesmc.c | 2 +- > hw/misc/arm11scu.c | 2 +- > hw/misc/arm_l2x0.c | 2 +- > hw/misc/arm_sysctl.c | 2 +- > hw/misc/aspeed_scu.c | 2 +- > hw/misc/aspeed_sdmc.c | 2 +- > hw/misc/bcm2835_property.c | 2 +- > hw/misc/debugexit.c | 2 +- > hw/misc/eccmemctl.c | 2 +- > hw/misc/ivshmem.c | 6 +++--- > hw/misc/macio/cuda.c | 2 +- > hw/misc/macio/macio.c | 2 +- > hw/misc/mips_cmgcr.c | 2 +- > hw/misc/mips_cpc.c | 2 +- > hw/misc/mips_itu.c | 2 +- > hw/misc/pvpanic.c | 2 +- > hw/net/allwinner_emac.c | 2 +- > hw/net/cadence_gem.c | 2 +- > hw/net/dp8393x.c | 2 +- > hw/net/e1000.c | 2 +- > hw/net/e1000e.c | 3 ++- > hw/net/eepro100.c | 2 +- > hw/net/etraxfs_eth.c | 2 +- > hw/net/fsl_etsec/etsec.c | 2 +- > hw/net/imx_fec.c | 2 +- > hw/net/lan9118.c | 2 +- > hw/net/lance.c | 2 +- > hw/net/milkymist-minimac2.c | 2 +- > hw/net/mipsnet.c | 2 +- > hw/net/ne2000-isa.c | 2 +- > hw/net/ne2000.c | 2 +- > hw/net/opencores_eth.c | 2 +- > hw/net/pcnet-pci.c | 2 +- > hw/net/rocker/rocker.c | 2 +- > hw/net/rtl8139.c | 2 +- > hw/net/smc91c111.c | 2 +- > hw/net/spapr_llan.c | 2 +- > hw/net/stellaris_enet.c | 2 +- > hw/net/virtio-net.c | 2 +- > hw/net/vmxnet3.c | 2 +- > hw/net/xgmac.c | 2 +- > hw/net/xilinx_axienet.c | 2 +- > hw/net/xilinx_ethlite.c | 2 +- > hw/nvram/ds1225y.c | 2 +- > hw/nvram/fw_cfg.c | 4 ++-- > hw/nvram/mac_nvram.c | 2 +- > hw/nvram/spapr_nvram.c | 2 +- > hw/pci-bridge/ioh3420.c | 2 +- > hw/pci-bridge/pci_bridge_dev.c | 2 +- > hw/pci-bridge/pci_expander_bridge.c | 4 ++-- > hw/pci-bridge/xio3130_downstream.c | 2 +- > hw/pci-host/piix.c | 2 +- > hw/pci-host/ppce500.c | 2 +- > hw/pci-host/prep.c | 2 +- > hw/pci-host/q35.c | 2 +- > hw/pci-host/versatile.c | 2 +- > hw/pci/pci.c | 2 +- > hw/pci/pcie_port.c | 4 ++-- > hw/ppc/pnv.c | 2 +- > hw/ppc/pnv_core.c | 2 +- > hw/ppc/spapr_pci.c | 2 +- > hw/ppc/spapr_pci_vfio.c | 2 +- > hw/ppc/spapr_rng.c | 2 +- > hw/ppc/spapr_vio.c | 2 +- > hw/s390x/css-bridge.c | 2 +- > hw/s390x/ipl.c | 2 +- > hw/s390x/s390-pci-bus.c | 2 +- > hw/s390x/virtio-ccw.c | 18 +++++++++--------- > hw/scsi/megasas.c | 2 +- > hw/scsi/mptsas.c | 2 +- > hw/scsi/scsi-bus.c | 2 +- > hw/scsi/scsi-disk.c | 8 ++++---- > hw/scsi/scsi-generic.c | 2 +- > hw/scsi/spapr_vscsi.c | 2 +- > hw/scsi/vhost-scsi.c | 2 +- > hw/scsi/virtio-scsi.c | 2 +- > hw/scsi/vmw_pvscsi.c | 2 +- > hw/sd/sd.c | 2 +- > hw/sd/sdhci.c | 4 ++-- > hw/sparc/sun4m.c | 4 ++-- > hw/sparc64/sun4u.c | 4 ++-- > hw/ssi/aspeed_smc.c | 2 +- > hw/ssi/xilinx_spi.c | 2 +- > hw/ssi/xilinx_spips.c | 2 +- > hw/timer/a9gtimer.c | 2 +- > hw/timer/allwinner-a10-pit.c | 2 +- > hw/timer/arm_mptimer.c | 2 +- > hw/timer/arm_timer.c | 2 +- > hw/timer/grlib_gptimer.c | 2 +- > hw/timer/hpet.c | 2 +- > hw/timer/i8254.c | 2 +- > hw/timer/lm32_timer.c | 2 +- > hw/timer/m48t59.c | 4 ++-- > hw/timer/mc146818rtc.c | 2 +- > hw/timer/milkymist-sysctl.c | 2 +- > hw/timer/pxa2xx_timer.c | 4 ++-- > hw/timer/slavio_timer.c | 2 +- > hw/timer/stm32f2xx_timer.c | 2 +- > hw/timer/xilinx_timer.c | 2 +- > hw/tpm/tpm_tis.c | 2 +- > hw/usb/bus.c | 2 +- > hw/usb/ccid-card-emulated.c | 2 +- > hw/usb/ccid-card-passthru.c | 2 +- > hw/usb/dev-audio.c | 2 +- > hw/usb/dev-hid.c | 6 +++--- > hw/usb/dev-mtp.c | 2 +- > hw/usb/dev-network.c | 2 +- > hw/usb/dev-serial.c | 4 ++-- > hw/usb/dev-smartcard-reader.c | 4 ++-- > hw/usb/dev-storage.c | 2 +- > hw/usb/dev-uas.c | 2 +- > hw/usb/hcd-ehci-pci.c | 2 +- > hw/usb/hcd-ehci-sysbus.c | 2 +- > hw/usb/hcd-ohci.c | 4 ++-- > hw/usb/hcd-uhci.c | 4 ++-- > hw/usb/hcd-xhci.c | 2 +- > hw/usb/host-libusb.c | 2 +- > hw/usb/redirect.c | 2 +- > hw/vfio/pci.c | 2 +- > hw/vfio/platform.c | 2 +- > hw/virtio/vhost-vsock.c | 2 +- > hw/virtio/virtio-balloon.c | 2 +- > hw/virtio/virtio-mmio.c | 2 +- > hw/virtio/virtio-pci.c | 20 ++++++++++---------- > hw/virtio/virtio-rng.c | 2 +- > hw/virtio/virtio.c | 2 +- > hw/xen/xen_backend.c | 2 +- > hw/xen/xen_pt.c | 2 +- > include/hw/qdev-core.h | 6 ++++++ > target-arm/cpu.c | 2 +- > target-i386/cpu.c | 4 ++-- > target-microblaze/cpu.c | 2 +- > target-ppc/translate_init.c | 6 +++--- > tests/test-qdev-global-props.c | 2 +- > 263 files changed, 329 insertions(+), 316 deletions(-) >=20 > diff --git a/hw/9pfs/virtio-9p-device.c b/hw/9pfs/virtio-9p-device.c > index 1782e4a..10d1a82 100644 > --- a/hw/9pfs/virtio-9p-device.c > +++ b/hw/9pfs/virtio-9p-device.c > @@ -207,7 +207,7 @@ static void virtio_9p_class_init(ObjectClass *klass, = void *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > VirtioDeviceClass *vdc =3D VIRTIO_DEVICE_CLASS(klass); > =20 > - dc->props =3D virtio_9p_properties; > + device_class_set_props(dc, virtio_9p_properties); > dc->vmsd =3D &vmstate_virtio_9p; > set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); > vdc->realize =3D virtio_9p_device_realize; > diff --git a/hw/acpi/piix4.c b/hw/acpi/piix4.c > index 2adc246..fce2b65 100644 > --- a/hw/acpi/piix4.c > +++ b/hw/acpi/piix4.c > @@ -687,7 +687,7 @@ static void piix4_pm_class_init(ObjectClass *klass, v= oid *data) > k->class_id =3D PCI_CLASS_BRIDGE_OTHER; > dc->desc =3D "PM"; > dc->vmsd =3D &vmstate_acpi; > - dc->props =3D piix4_pm_properties; > + device_class_set_props(dc, piix4_pm_properties); > /* > * Reason: part of PIIX4 southbridge, needs to be wired up, > * e.g. by mips_malta_init() > diff --git a/hw/arm/armv7m.c b/hw/arm/armv7m.c > index 49d3078..e14e28a 100644 > --- a/hw/arm/armv7m.c > +++ b/hw/arm/armv7m.c > @@ -245,7 +245,7 @@ static void bitband_class_init(ObjectClass *klass, vo= id *data) > { > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > - dc->props =3D bitband_properties; > + device_class_set_props(dc, bitband_properties); > } > =20 > static const TypeInfo bitband_info =3D { > diff --git a/hw/arm/bcm2836.c b/hw/arm/bcm2836.c > index 8451190..14f2db0 100644 > --- a/hw/arm/bcm2836.c > +++ b/hw/arm/bcm2836.c > @@ -158,7 +158,7 @@ static void bcm2836_class_init(ObjectClass *oc, void = *data) > { > DeviceClass *dc =3D DEVICE_CLASS(oc); > =20 > - dc->props =3D bcm2836_props; > + device_class_set_props(dc, bcm2836_props); > dc->realize =3D bcm2836_realize; > =20 > /* > diff --git a/hw/arm/integratorcp.c b/hw/arm/integratorcp.c > index 039812a..93e5326 100644 > --- a/hw/arm/integratorcp.c > +++ b/hw/arm/integratorcp.c > @@ -638,7 +638,7 @@ static void core_class_init(ObjectClass *klass, void = *data) > { > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > - dc->props =3D core_properties; > + device_class_set_props(dc, core_properties); > dc->realize =3D integratorcm_realize; > } > =20 > diff --git a/hw/arm/musicpal.c b/hw/arm/musicpal.c > index cbbca4e..c3a2430 100644 > --- a/hw/arm/musicpal.c > +++ b/hw/arm/musicpal.c > @@ -431,7 +431,7 @@ static void mv88w8618_eth_class_init(ObjectClass *kla= ss, void *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > dc->vmsd =3D &mv88w8618_eth_vmsd; > - dc->props =3D mv88w8618_eth_properties; > + device_class_set_props(dc, mv88w8618_eth_properties); > dc->realize =3D mv88w8618_eth_realize; > } > =20 > diff --git a/hw/arm/pxa2xx.c b/hw/arm/pxa2xx.c > index 42cdde0..59b143a 100644 > --- a/hw/arm/pxa2xx.c > +++ b/hw/arm/pxa2xx.c > @@ -1530,7 +1530,7 @@ static void pxa2xx_i2c_class_init(ObjectClass *klas= s, void *data) > =20 > dc->desc =3D "PXA2xx I2C Bus Controller"; > dc->vmsd =3D &vmstate_pxa2xx_i2c; > - dc->props =3D pxa2xx_i2c_properties; > + device_class_set_props(dc, pxa2xx_i2c_properties); > } > =20 > static const TypeInfo pxa2xx_i2c_info =3D { > @@ -2013,7 +2013,7 @@ static void pxa2xx_fir_class_init(ObjectClass *klas= s, void *data) > =20 > dc->realize =3D pxa2xx_fir_realize; > dc->vmsd =3D &pxa2xx_fir_vmsd; > - dc->props =3D pxa2xx_fir_properties; > + device_class_set_props(dc, pxa2xx_fir_properties); > dc->reset =3D pxa2xx_fir_reset; > } > =20 > diff --git a/hw/arm/pxa2xx_gpio.c b/hw/arm/pxa2xx_gpio.c > index 521dbad..ff8c8e0 100644 > --- a/hw/arm/pxa2xx_gpio.c > +++ b/hw/arm/pxa2xx_gpio.c > @@ -343,7 +343,7 @@ static void pxa2xx_gpio_class_init(ObjectClass *klass= , void *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > dc->desc =3D "PXA2xx GPIO controller"; > - dc->props =3D pxa2xx_gpio_properties; > + device_class_set_props(dc, pxa2xx_gpio_properties); > dc->vmsd =3D &vmstate_pxa2xx_gpio_regs; > dc->realize =3D pxa2xx_gpio_realize; > } > diff --git a/hw/arm/spitz.c b/hw/arm/spitz.c > index 41cc2ee..6cd8bf4 100644 > --- a/hw/arm/spitz.c > +++ b/hw/arm/spitz.c > @@ -1060,7 +1060,7 @@ static void sl_nand_class_init(ObjectClass *klass, = void *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > dc->vmsd =3D &vmstate_sl_nand_info; > - dc->props =3D sl_nand_properties; > + device_class_set_props(dc, sl_nand_properties); > /* Reason: init() method uses drive_get() */ > dc->cannot_instantiate_with_device_add_yet =3D true; > } > diff --git a/hw/arm/stm32f205_soc.c b/hw/arm/stm32f205_soc.c > index 38425bd..4a9ae54 100644 > --- a/hw/arm/stm32f205_soc.c > +++ b/hw/arm/stm32f205_soc.c > @@ -202,7 +202,7 @@ static void stm32f205_soc_class_init(ObjectClass *kla= ss, void *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > dc->realize =3D stm32f205_soc_realize; > - dc->props =3D stm32f205_soc_properties; > + device_class_set_props(dc, stm32f205_soc_properties); > } > =20 > static const TypeInfo stm32f205_soc_info =3D { > diff --git a/hw/arm/strongarm.c b/hw/arm/strongarm.c > index 3311cc3..d458802 100644 > --- a/hw/arm/strongarm.c > +++ b/hw/arm/strongarm.c > @@ -1320,7 +1320,7 @@ static void strongarm_uart_class_init(ObjectClass *= klass, void *data) > dc->desc =3D "StrongARM UART controller"; > dc->reset =3D strongarm_uart_reset; > dc->vmsd =3D &vmstate_strongarm_uart_regs; > - dc->props =3D strongarm_uart_properties; > + device_class_set_props(dc, strongarm_uart_properties); > dc->realize =3D strongarm_uart_realize; > } > =20 > diff --git a/hw/arm/xlnx-zynqmp.c b/hw/arm/xlnx-zynqmp.c > index 0d86ba3..a194480 100644 > --- a/hw/arm/xlnx-zynqmp.c > +++ b/hw/arm/xlnx-zynqmp.c > @@ -435,7 +435,7 @@ static void xlnx_zynqmp_class_init(ObjectClass *oc, v= oid *data) > { > DeviceClass *dc =3D DEVICE_CLASS(oc); > =20 > - dc->props =3D xlnx_zynqmp_props; > + device_class_set_props(dc, xlnx_zynqmp_props); > dc->realize =3D xlnx_zynqmp_realize; > =20 > /* > diff --git a/hw/audio/ac97.c b/hw/audio/ac97.c > index cbd959e..2147c8a 100644 > --- a/hw/audio/ac97.c > +++ b/hw/audio/ac97.c > @@ -1411,7 +1411,7 @@ static void ac97_class_init (ObjectClass *klass, vo= id *data) > set_bit(DEVICE_CATEGORY_SOUND, dc->categories); > dc->desc =3D "Intel 82801AA AC97 Audio"; > dc->vmsd =3D &vmstate_ac97; > - dc->props =3D ac97_properties; > + device_class_set_props(dc, ac97_properties); > dc->reset =3D ac97_on_reset; > } > =20 > diff --git a/hw/audio/adlib.c b/hw/audio/adlib.c > index 7836446..b375cef 100644 > --- a/hw/audio/adlib.c > +++ b/hw/audio/adlib.c > @@ -361,7 +361,7 @@ static void adlib_class_initfn (ObjectClass *klass, v= oid *data) > dc->realize =3D adlib_realizefn; > set_bit(DEVICE_CATEGORY_SOUND, dc->categories); > dc->desc =3D ADLIB_DESC; > - dc->props =3D adlib_properties; > + device_class_set_props(dc, adlib_properties); > } > =20 > static const TypeInfo adlib_info =3D { > diff --git a/hw/audio/cs4231.c b/hw/audio/cs4231.c > index 30690f9..159b43d 100644 > --- a/hw/audio/cs4231.c > +++ b/hw/audio/cs4231.c > @@ -166,7 +166,7 @@ static void cs4231_class_init(ObjectClass *klass, voi= d *data) > =20 > dc->reset =3D cs_reset; > dc->vmsd =3D &vmstate_cs4231; > - dc->props =3D cs4231_properties; > + device_class_set_props(dc, cs4231_properties); > } > =20 > static const TypeInfo cs4231_info =3D { > diff --git a/hw/audio/cs4231a.c b/hw/audio/cs4231a.c > index 3ecd058..ec2c74c 100644 > --- a/hw/audio/cs4231a.c > +++ b/hw/audio/cs4231a.c > @@ -695,7 +695,7 @@ static void cs4231a_class_initfn (ObjectClass *klass,= void *data) > set_bit(DEVICE_CATEGORY_SOUND, dc->categories); > dc->desc =3D "Crystal Semiconductor CS4231A"; > dc->vmsd =3D &vmstate_cs4231a; > - dc->props =3D cs4231a_properties; > + device_class_set_props(dc, cs4231a_properties); > } > =20 > static const TypeInfo cs4231a_info =3D { > diff --git a/hw/audio/gus.c b/hw/audio/gus.c > index 3d08a65..c69a8c8 100644 > --- a/hw/audio/gus.c > +++ b/hw/audio/gus.c > @@ -305,7 +305,7 @@ static void gus_class_initfn (ObjectClass *klass, voi= d *data) > set_bit(DEVICE_CATEGORY_SOUND, dc->categories); > dc->desc =3D "Gravis Ultrasound GF1"; > dc->vmsd =3D &vmstate_gus; > - dc->props =3D gus_properties; > + device_class_set_props(dc, gus_properties); > } > =20 > static const TypeInfo gus_info =3D { > diff --git a/hw/audio/hda-codec.c b/hw/audio/hda-codec.c > index 52d4640..9dd7624 100644 > --- a/hw/audio/hda-codec.c > +++ b/hw/audio/hda-codec.c > @@ -663,7 +663,7 @@ static void hda_audio_base_class_init(ObjectClass *kl= ass, void *data) > set_bit(DEVICE_CATEGORY_SOUND, dc->categories); > dc->reset =3D hda_audio_reset; > dc->vmsd =3D &vmstate_hda_audio; > - dc->props =3D hda_audio_properties; > + device_class_set_props(dc, hda_audio_properties); > } > =20 > static const TypeInfo hda_audio_info =3D { > diff --git a/hw/audio/intel-hda.c b/hw/audio/intel-hda.c > index 537face..d1b83ac 100644 > --- a/hw/audio/intel-hda.c > +++ b/hw/audio/intel-hda.c > @@ -1269,7 +1269,7 @@ static void intel_hda_class_init(ObjectClass *klass= , void *data) > k->class_id =3D PCI_CLASS_MULTIMEDIA_HD_AUDIO; > dc->reset =3D intel_hda_reset; > dc->vmsd =3D &vmstate_intel_hda; > - dc->props =3D intel_hda_properties; > + device_class_set_props(dc, intel_hda_properties); > } > =20 > static void intel_hda_class_init_ich6(ObjectClass *klass, void *data) > @@ -1321,7 +1321,7 @@ static void hda_codec_device_class_init(ObjectClass= *klass, void *data) > k->exit =3D hda_codec_dev_exit; > set_bit(DEVICE_CATEGORY_SOUND, k->categories); > k->bus_type =3D TYPE_HDA_BUS; > - k->props =3D hda_props; > + device_class_set_props(k, hda_props); > } > =20 > static const TypeInfo hda_codec_device_type_info =3D { > diff --git a/hw/audio/marvell_88w8618.c b/hw/audio/marvell_88w8618.c > index a6ca180..fe6a9ba 100644 > --- a/hw/audio/marvell_88w8618.c > +++ b/hw/audio/marvell_88w8618.c > @@ -287,7 +287,7 @@ static void mv88w8618_audio_class_init(ObjectClass *k= lass, void *data) > k->init =3D mv88w8618_audio_init; > dc->reset =3D mv88w8618_audio_reset; > dc->vmsd =3D &mv88w8618_audio_vmsd; > - dc->props =3D mv88w8618_audio_properties; > + device_class_set_props(dc, mv88w8618_audio_properties); > /* Reason: pointer property "wm8750" */ > dc->cannot_instantiate_with_device_add_yet =3D true; > } > diff --git a/hw/audio/pcspk.c b/hw/audio/pcspk.c > index 984534b..2484075 100644 > --- a/hw/audio/pcspk.c > +++ b/hw/audio/pcspk.c > @@ -211,7 +211,7 @@ static void pcspk_class_initfn(ObjectClass *klass, vo= id *data) > dc->realize =3D pcspk_realizefn; > set_bit(DEVICE_CATEGORY_SOUND, dc->categories); > dc->vmsd =3D &vmstate_spk; > - dc->props =3D pcspk_properties; > + device_class_set_props(dc, pcspk_properties); > /* Reason: realize sets global pcspk_state */ > dc->cannot_instantiate_with_device_add_yet =3D true; > } > diff --git a/hw/audio/pl041.c b/hw/audio/pl041.c > index 6e9c104..738d0de 100644 > --- a/hw/audio/pl041.c > +++ b/hw/audio/pl041.c > @@ -633,7 +633,7 @@ static void pl041_device_class_init(ObjectClass *klas= s, void *data) > set_bit(DEVICE_CATEGORY_SOUND, dc->categories); > dc->reset =3D pl041_device_reset; > dc->vmsd =3D &vmstate_pl041; > - dc->props =3D pl041_device_properties; > + device_class_set_props(dc, pl041_device_properties); > } > =20 > static const TypeInfo pl041_device_info =3D { > diff --git a/hw/audio/sb16.c b/hw/audio/sb16.c > index 6b4427f..2e6c602 100644 > --- a/hw/audio/sb16.c > +++ b/hw/audio/sb16.c > @@ -1418,7 +1418,7 @@ static void sb16_class_initfn (ObjectClass *klass, = void *data) > set_bit(DEVICE_CATEGORY_SOUND, dc->categories); > dc->desc =3D "Creative Sound Blaster 16"; > dc->vmsd =3D &vmstate_sb16; > - dc->props =3D sb16_properties; > + device_class_set_props(dc, sb16_properties); > } > =20 > static const TypeInfo sb16_info =3D { > diff --git a/hw/block/fdc.c b/hw/block/fdc.c > index 17d29e7..6976bf4 100644 > --- a/hw/block/fdc.c > +++ b/hw/block/fdc.c > @@ -587,7 +587,7 @@ static void floppy_drive_class_init(ObjectClass *klas= s, void *data) > k->init =3D floppy_drive_init; > set_bit(DEVICE_CATEGORY_STORAGE, k->categories); > k->bus_type =3D TYPE_FLOPPY_BUS; > - k->props =3D floppy_drive_properties; > + device_class_set_props(k, floppy_drive_properties); > k->desc =3D "virtual floppy drive"; > } > =20 > @@ -2803,7 +2803,7 @@ static void isabus_fdc_class_init(ObjectClass *klas= s, void *data) > dc->fw_name =3D "fdc"; > dc->reset =3D fdctrl_external_reset_isa; > dc->vmsd =3D &vmstate_isa_fdc; > - dc->props =3D isa_fdc_properties; > + device_class_set_props(dc, isa_fdc_properties); > set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); > } > =20 > @@ -2856,7 +2856,7 @@ static void sysbus_fdc_class_init(ObjectClass *klas= s, void *data) > { > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > - dc->props =3D sysbus_fdc_properties; > + device_class_set_props(dc, sysbus_fdc_properties); > set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); > } > =20 > @@ -2882,7 +2882,7 @@ static void sun4m_fdc_class_init(ObjectClass *klass= , void *data) > { > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > - dc->props =3D sun4m_fdc_properties; > + device_class_set_props(dc, sun4m_fdc_properties); > set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); > } > =20 > diff --git a/hw/block/m25p80.c b/hw/block/m25p80.c > index d29ff4c..e2c9c52 100644 > --- a/hw/block/m25p80.c > +++ b/hw/block/m25p80.c > @@ -1228,7 +1228,7 @@ static void m25p80_class_init(ObjectClass *klass, v= oid *data) > k->set_cs =3D m25p80_cs; > k->cs_polarity =3D SSI_CS_LOW; > dc->vmsd =3D &vmstate_m25p80; > - dc->props =3D m25p80_properties; > + device_class_set_props(dc, m25p80_properties); > dc->reset =3D m25p80_reset; > mc->pi =3D data; > } > diff --git a/hw/block/nand.c b/hw/block/nand.c > index c69e675..d4561fb 100644 > --- a/hw/block/nand.c > +++ b/hw/block/nand.c > @@ -437,7 +437,7 @@ static void nand_class_init(ObjectClass *klass, void = *data) > dc->realize =3D nand_realize; > dc->reset =3D nand_reset; > dc->vmsd =3D &vmstate_nand; > - dc->props =3D nand_properties; > + device_class_set_props(dc, nand_properties); > } > =20 > static const TypeInfo nand_info =3D { > diff --git a/hw/block/nvme.c b/hw/block/nvme.c > index b380142..48eb372 100644 > --- a/hw/block/nvme.c > +++ b/hw/block/nvme.c > @@ -961,7 +961,7 @@ static void nvme_class_init(ObjectClass *oc, void *da= ta) > =20 > set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); > dc->desc =3D "Non-Volatile Memory Express"; > - dc->props =3D nvme_props; > + device_class_set_props(dc, nvme_props); > dc->vmsd =3D &nvme_vmstate; > } > =20 > diff --git a/hw/block/onenand.c b/hw/block/onenand.c > index 8d84227..56a7262 100644 > --- a/hw/block/onenand.c > +++ b/hw/block/onenand.c > @@ -838,7 +838,7 @@ static void onenand_class_init(ObjectClass *klass, vo= id *data) > =20 > k->init =3D onenand_initfn; > dc->reset =3D onenand_system_reset; > - dc->props =3D onenand_properties; > + device_class_set_props(dc, onenand_properties); > } > =20 > static const TypeInfo onenand_info =3D { > diff --git a/hw/block/pflash_cfi01.c b/hw/block/pflash_cfi01.c > index 62d7a56..0550d35 100644 > --- a/hw/block/pflash_cfi01.c > +++ b/hw/block/pflash_cfi01.c > @@ -893,7 +893,7 @@ static void pflash_cfi01_class_init(ObjectClass *klas= s, void *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > dc->realize =3D pflash_cfi01_realize; > - dc->props =3D pflash_cfi01_properties; > + device_class_set_props(dc, pflash_cfi01_properties); > dc->vmsd =3D &vmstate_pflash; > set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); > } > diff --git a/hw/block/pflash_cfi02.c b/hw/block/pflash_cfi02.c > index 4f6105c..ba1437e 100644 > --- a/hw/block/pflash_cfi02.c > +++ b/hw/block/pflash_cfi02.c > @@ -744,7 +744,7 @@ static void pflash_cfi02_class_init(ObjectClass *klas= s, void *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > dc->realize =3D pflash_cfi02_realize; > - dc->props =3D pflash_cfi02_properties; > + device_class_set_props(dc, pflash_cfi02_properties); > set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); > } > =20 > diff --git a/hw/block/virtio-blk.c b/hw/block/virtio-blk.c > index 37fe72b..0e40676 100644 > --- a/hw/block/virtio-blk.c > +++ b/hw/block/virtio-blk.c > @@ -990,7 +990,7 @@ static void virtio_blk_class_init(ObjectClass *klass,= void *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > VirtioDeviceClass *vdc =3D VIRTIO_DEVICE_CLASS(klass); > =20 > - dc->props =3D virtio_blk_properties; > + device_class_set_props(dc, virtio_blk_properties); > dc->vmsd =3D &vmstate_virtio_blk; > set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); > vdc->realize =3D virtio_blk_device_realize; > diff --git a/hw/char/bcm2835_aux.c b/hw/char/bcm2835_aux.c > index 4d46ad6..b6613e3 100644 > --- a/hw/char/bcm2835_aux.c > +++ b/hw/char/bcm2835_aux.c > @@ -294,7 +294,7 @@ static void bcm2835_aux_class_init(ObjectClass *oc, v= oid *data) > dc->realize =3D bcm2835_aux_realize; > dc->vmsd =3D &vmstate_bcm2835_aux; > set_bit(DEVICE_CATEGORY_INPUT, dc->categories); > - dc->props =3D bcm2835_aux_props; > + device_class_set_props(dc, bcm2835_aux_props); > } > =20 > static const TypeInfo bcm2835_aux_info =3D { > diff --git a/hw/char/cadence_uart.c b/hw/char/cadence_uart.c > index c2b9154..fed2c41 100644 > --- a/hw/char/cadence_uart.c > +++ b/hw/char/cadence_uart.c > @@ -522,7 +522,7 @@ static void cadence_uart_class_init(ObjectClass *klas= s, void *data) > dc->realize =3D cadence_uart_realize; > dc->vmsd =3D &vmstate_cadence_uart; > dc->reset =3D cadence_uart_reset; > - dc->props =3D cadence_uart_properties; > + device_class_set_props(dc, cadence_uart_properties); > } > =20 > static const TypeInfo cadence_uart_info =3D { > diff --git a/hw/char/debugcon.c b/hw/char/debugcon.c > index 80dce07..c54a45c 100644 > --- a/hw/char/debugcon.c > +++ b/hw/char/debugcon.c > @@ -125,7 +125,7 @@ static void debugcon_isa_class_initfn(ObjectClass *kl= ass, void *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > dc->realize =3D debugcon_isa_realizefn; > - dc->props =3D debugcon_isa_properties; > + device_class_set_props(dc, debugcon_isa_properties); > set_bit(DEVICE_CATEGORY_MISC, dc->categories); > } > =20 > diff --git a/hw/char/digic-uart.c b/hw/char/digic-uart.c > index 029f5bb..0dab6a7 100644 > --- a/hw/char/digic-uart.c > +++ b/hw/char/digic-uart.c > @@ -181,7 +181,7 @@ static void digic_uart_class_init(ObjectClass *klass,= void *data) > dc->realize =3D digic_uart_realize; > dc->reset =3D digic_uart_reset; > dc->vmsd =3D &vmstate_digic_uart; > - dc->props =3D digic_uart_properties; > + device_class_set_props(dc, digic_uart_properties); > } > =20 > static const TypeInfo digic_uart_info =3D { > diff --git a/hw/char/escc.c b/hw/char/escc.c > index d6662dc..47175d9 100644 > --- a/hw/char/escc.c > +++ b/hw/char/escc.c > @@ -1048,7 +1048,7 @@ static void escc_class_init(ObjectClass *klass, voi= d *data) > dc->reset =3D escc_reset; > dc->realize =3D escc_realize; > dc->vmsd =3D &vmstate_escc; > - dc->props =3D escc_properties; > + device_class_set_props(dc, escc_properties); > set_bit(DEVICE_CATEGORY_INPUT, dc->categories); > } > =20 > diff --git a/hw/char/etraxfs_ser.c b/hw/char/etraxfs_ser.c > index 5438387..7536615 100644 > --- a/hw/char/etraxfs_ser.c > +++ b/hw/char/etraxfs_ser.c > @@ -241,7 +241,7 @@ static void etraxfs_ser_class_init(ObjectClass *klass= , void *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > dc->reset =3D etraxfs_ser_reset; > - dc->props =3D etraxfs_ser_properties; > + device_class_set_props(dc, etraxfs_ser_properties); > dc->realize =3D etraxfs_ser_realize; > } > =20 > diff --git a/hw/char/exynos4210_uart.c b/hw/char/exynos4210_uart.c > index 571c324..a7ac2fb 100644 > --- a/hw/char/exynos4210_uart.c > +++ b/hw/char/exynos4210_uart.c > @@ -662,7 +662,7 @@ static void exynos4210_uart_class_init(ObjectClass *k= lass, void *data) > =20 > k->init =3D exynos4210_uart_init; > dc->reset =3D exynos4210_uart_reset; > - dc->props =3D exynos4210_uart_properties; > + device_class_set_props(dc, exynos4210_uart_properties); > dc->vmsd =3D &vmstate_exynos4210_uart; > } > =20 > diff --git a/hw/char/grlib_apbuart.c b/hw/char/grlib_apbuart.c > index db686e6..cfa33be 100644 > --- a/hw/char/grlib_apbuart.c > +++ b/hw/char/grlib_apbuart.c > @@ -284,7 +284,7 @@ static void grlib_apbuart_class_init(ObjectClass *kla= ss, void *data) > =20 > k->init =3D grlib_apbuart_init; > dc->reset =3D grlib_apbuart_reset; > - dc->props =3D grlib_apbuart_properties; > + device_class_set_props(dc, grlib_apbuart_properties); > } > =20 > static const TypeInfo grlib_apbuart_info =3D { > diff --git a/hw/char/imx_serial.c b/hw/char/imx_serial.c > index 99545fc..fb4c615 100644 > --- a/hw/char/imx_serial.c > +++ b/hw/char/imx_serial.c > @@ -344,7 +344,7 @@ static void imx_serial_class_init(ObjectClass *klass,= void *data) > dc->reset =3D imx_serial_reset_at_boot; > set_bit(DEVICE_CATEGORY_INPUT, dc->categories); > dc->desc =3D "i.MX series UART"; > - dc->props =3D imx_serial_properties; > + device_class_set_props(dc, imx_serial_properties); > } > =20 > static const TypeInfo imx_serial_info =3D { > diff --git a/hw/char/ipoctal232.c b/hw/char/ipoctal232.c > index 93929c2..38cf137 100644 > --- a/hw/char/ipoctal232.c > +++ b/hw/char/ipoctal232.c > @@ -584,7 +584,7 @@ static void ipoctal_class_init(ObjectClass *klass, vo= id *data) > =20 > set_bit(DEVICE_CATEGORY_INPUT, dc->categories); > dc->desc =3D "GE IP-Octal 232 8-channel RS-232 IndustryPack"; > - dc->props =3D ipoctal_properties; > + device_class_set_props(dc, ipoctal_properties); > dc->vmsd =3D &vmstate_ipoctal; > } > =20 > diff --git a/hw/char/lm32_juart.c b/hw/char/lm32_juart.c > index f8c1e0d..65db163 100644 > --- a/hw/char/lm32_juart.c > +++ b/hw/char/lm32_juart.c > @@ -144,7 +144,7 @@ static void lm32_juart_class_init(ObjectClass *klass,= void *data) > =20 > dc->reset =3D juart_reset; > dc->vmsd =3D &vmstate_lm32_juart; > - dc->props =3D lm32_juart_properties; > + device_class_set_props(dc, lm32_juart_properties); > dc->realize =3D lm32_juart_realize; > } > =20 > diff --git a/hw/char/lm32_uart.c b/hw/char/lm32_uart.c > index 7f3597c..4b1ba40 100644 > --- a/hw/char/lm32_uart.c > +++ b/hw/char/lm32_uart.c > @@ -290,7 +290,7 @@ static void lm32_uart_class_init(ObjectClass *klass, = void *data) > =20 > dc->reset =3D uart_reset; > dc->vmsd =3D &vmstate_lm32_uart; > - dc->props =3D lm32_uart_properties; > + device_class_set_props(dc, lm32_uart_properties); > dc->realize =3D lm32_uart_realize; > } > =20 > diff --git a/hw/char/milkymist-uart.c b/hw/char/milkymist-uart.c > index ae8e2f3..34e37c3 100644 > --- a/hw/char/milkymist-uart.c > +++ b/hw/char/milkymist-uart.c > @@ -236,7 +236,7 @@ static void milkymist_uart_class_init(ObjectClass *kl= ass, void *data) > dc->realize =3D milkymist_uart_realize; > dc->reset =3D milkymist_uart_reset; > dc->vmsd =3D &vmstate_milkymist_uart; > - dc->props =3D milkymist_uart_properties; > + device_class_set_props(dc, milkymist_uart_properties); > } > =20 > static const TypeInfo milkymist_uart_info =3D { > diff --git a/hw/char/parallel.c b/hw/char/parallel.c > index f2d5666..151cf73 100644 > --- a/hw/char/parallel.c > +++ b/hw/char/parallel.c > @@ -633,7 +633,7 @@ static void parallel_isa_class_initfn(ObjectClass *kl= ass, void *data) > =20 > dc->realize =3D parallel_isa_realizefn; > dc->vmsd =3D &vmstate_parallel_isa; > - dc->props =3D parallel_isa_properties; > + device_class_set_props(dc, parallel_isa_properties); > set_bit(DEVICE_CATEGORY_INPUT, dc->categories); > } > =20 > diff --git a/hw/char/pl011.c b/hw/char/pl011.c > index 24ea973..6e7044f 100644 > --- a/hw/char/pl011.c > +++ b/hw/char/pl011.c > @@ -338,7 +338,7 @@ static void pl011_class_init(ObjectClass *oc, void *d= ata) > =20 > dc->realize =3D pl011_realize; > dc->vmsd =3D &vmstate_pl011; > - dc->props =3D pl011_properties; > + device_class_set_props(dc, pl011_properties); > } > =20 > static const TypeInfo pl011_arm_info =3D { > diff --git a/hw/char/sclpconsole-lm.c b/hw/char/sclpconsole-lm.c > index 07d6ebd..e2e11d5 100644 > --- a/hw/char/sclpconsole-lm.c > +++ b/hw/char/sclpconsole-lm.c > @@ -345,7 +345,7 @@ static void console_class_init(ObjectClass *klass, vo= id *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > SCLPEventClass *ec =3D SCLP_EVENT_CLASS(klass); > =20 > - dc->props =3D console_properties; > + device_class_set_props(dc, console_properties); > dc->reset =3D console_reset; > dc->vmsd =3D &vmstate_sclplmconsole; > ec->init =3D console_init; > diff --git a/hw/char/sclpconsole.c b/hw/char/sclpconsole.c > index b78f240..1b04cbb 100644 > --- a/hw/char/sclpconsole.c > +++ b/hw/char/sclpconsole.c > @@ -261,7 +261,7 @@ static void console_class_init(ObjectClass *klass, vo= id *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > SCLPEventClass *ec =3D SCLP_EVENT_CLASS(klass); > =20 > - dc->props =3D console_properties; > + device_class_set_props(dc, console_properties); > dc->reset =3D console_reset; > dc->vmsd =3D &vmstate_sclpconsole; > ec->init =3D console_init; > diff --git a/hw/char/serial-isa.c b/hw/char/serial-isa.c > index 54d3a12..8314bf3 100644 > --- a/hw/char/serial-isa.c > +++ b/hw/char/serial-isa.c > @@ -103,7 +103,7 @@ static void serial_isa_class_initfn(ObjectClass *klas= s, void *data) > =20 > dc->realize =3D serial_isa_realizefn; > dc->vmsd =3D &vmstate_isa_serial; > - dc->props =3D serial_isa_properties; > + device_class_set_props(dc, serial_isa_properties); > set_bit(DEVICE_CATEGORY_INPUT, dc->categories); > } > =20 > diff --git a/hw/char/serial-pci.c b/hw/char/serial-pci.c > index 303104d..1480699 100644 > --- a/hw/char/serial-pci.c > +++ b/hw/char/serial-pci.c > @@ -211,7 +211,7 @@ static void serial_pci_class_initfn(ObjectClass *klas= s, void *data) > pc->revision =3D 1; > pc->class_id =3D PCI_CLASS_COMMUNICATION_SERIAL; > dc->vmsd =3D &vmstate_pci_serial; > - dc->props =3D serial_pci_properties; > + device_class_set_props(dc, serial_pci_properties); > set_bit(DEVICE_CATEGORY_INPUT, dc->categories); > } > =20 > @@ -226,7 +226,7 @@ static void multi_2x_serial_pci_class_initfn(ObjectCl= ass *klass, void *data) > pc->revision =3D 1; > pc->class_id =3D PCI_CLASS_COMMUNICATION_SERIAL; > dc->vmsd =3D &vmstate_pci_multi_serial; > - dc->props =3D multi_2x_serial_pci_properties; > + device_class_set_props(dc, multi_2x_serial_pci_properties); > set_bit(DEVICE_CATEGORY_INPUT, dc->categories); > } > =20 > @@ -241,7 +241,7 @@ static void multi_4x_serial_pci_class_initfn(ObjectCl= ass *klass, void *data) > pc->revision =3D 1; > pc->class_id =3D PCI_CLASS_COMMUNICATION_SERIAL; > dc->vmsd =3D &vmstate_pci_multi_serial; > - dc->props =3D multi_4x_serial_pci_properties; > + device_class_set_props(dc, multi_4x_serial_pci_properties); > set_bit(DEVICE_CATEGORY_INPUT, dc->categories); > } > =20 > diff --git a/hw/char/spapr_vty.c b/hw/char/spapr_vty.c > index 31822fe..c62bff3 100644 > --- a/hw/char/spapr_vty.c > +++ b/hw/char/spapr_vty.c > @@ -171,7 +171,7 @@ static void spapr_vty_class_init(ObjectClass *klass, = void *data) > k->dt_type =3D "serial"; > k->dt_compatible =3D "hvterm1"; > set_bit(DEVICE_CATEGORY_INPUT, dc->categories); > - dc->props =3D spapr_vty_properties; > + device_class_set_props(dc, spapr_vty_properties); > dc->vmsd =3D &vmstate_spapr_vty; > } > =20 > diff --git a/hw/char/stm32f2xx_usart.c b/hw/char/stm32f2xx_usart.c > index 59872e6..b994033 100644 > --- a/hw/char/stm32f2xx_usart.c > +++ b/hw/char/stm32f2xx_usart.c > @@ -215,7 +215,7 @@ static void stm32f2xx_usart_class_init(ObjectClass *k= lass, void *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > dc->reset =3D stm32f2xx_usart_reset; > - dc->props =3D stm32f2xx_usart_properties; > + device_class_set_props(dc, stm32f2xx_usart_properties); > dc->realize =3D stm32f2xx_usart_realize; > } > =20 > diff --git a/hw/char/virtio-console.c b/hw/char/virtio-console.c > index 776205b..2e2aa38 100644 > --- a/hw/char/virtio-console.c > +++ b/hw/char/virtio-console.c > @@ -234,7 +234,7 @@ static void virtserialport_class_init(ObjectClass *kl= ass, void *data) > k->have_data =3D flush_buf; > k->set_guest_connected =3D set_guest_connected; > k->guest_writable =3D guest_writable; > - dc->props =3D virtserialport_properties; > + device_class_set_props(dc, virtserialport_properties); > } > =20 > static const TypeInfo virtserialport_info =3D { > diff --git a/hw/char/virtio-serial-bus.c b/hw/char/virtio-serial-bus.c > index 7975c2c..3f43ef9 100644 > --- a/hw/char/virtio-serial-bus.c > +++ b/hw/char/virtio-serial-bus.c > @@ -1091,7 +1091,7 @@ static void virtio_serial_port_class_init(ObjectCla= ss *klass, void *data) > k->bus_type =3D TYPE_VIRTIO_SERIAL_BUS; > k->realize =3D virtser_port_device_realize; > k->unrealize =3D virtser_port_device_unrealize; > - k->props =3D virtser_props; > + device_class_set_props(k, virtser_props); > } > =20 > static const TypeInfo virtio_serial_port_type_info =3D { > @@ -1149,7 +1149,7 @@ static void virtio_serial_class_init(ObjectClass *k= lass, void *data) > =20 > QLIST_INIT(&vserdevices.devices); > =20 > - dc->props =3D virtio_serial_properties; > + device_class_set_props(dc, virtio_serial_properties); > dc->vmsd =3D &vmstate_virtio_console; > set_bit(DEVICE_CATEGORY_INPUT, dc->categories); > vdc->realize =3D virtio_serial_device_realize; > diff --git a/hw/char/xilinx_uartlite.c b/hw/char/xilinx_uartlite.c > index 37d313b..1ea812c 100644 > --- a/hw/char/xilinx_uartlite.c > +++ b/hw/char/xilinx_uartlite.c > @@ -232,7 +232,7 @@ static void xilinx_uartlite_class_init(ObjectClass *k= lass, void *data) > =20 > dc->reset =3D xilinx_uartlite_reset; > dc->realize =3D xilinx_uartlite_realize; > - dc->props =3D xilinx_uartlite_properties; > + device_class_set_props(dc, xilinx_uartlite_properties); > } > =20 > static const TypeInfo xilinx_uartlite_info =3D { > diff --git a/hw/core/generic-loader.c b/hw/core/generic-loader.c > index 79ab6df..1918792 100644 > --- a/hw/core/generic-loader.c > +++ b/hw/core/generic-loader.c > @@ -192,7 +192,7 @@ static void generic_loader_class_init(ObjectClass *kl= ass, void *data) > */ > dc->realize =3D generic_loader_realize; > dc->unrealize =3D generic_loader_unrealize; > - dc->props =3D generic_loader_props; > + device_class_set_props(dc, generic_loader_props); > dc->desc =3D "Generic Loader"; > } > =20 > diff --git a/hw/core/or-irq.c b/hw/core/or-irq.c > index 1ac090d..b5f653c 100644 > --- a/hw/core/or-irq.c > +++ b/hw/core/or-irq.c > @@ -86,7 +86,7 @@ static void or_irq_class_init(ObjectClass *klass, void = *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > dc->reset =3D or_irq_reset; > - dc->props =3D or_irq_properties; > + device_class_set_props(dc, or_irq_properties); > dc->realize =3D or_irq_realize; > dc->vmsd =3D &vmstate_or_irq; > } > diff --git a/hw/core/platform-bus.c b/hw/core/platform-bus.c > index 329ac67..86df136 100644 > --- a/hw/core/platform-bus.c > +++ b/hw/core/platform-bus.c > @@ -230,7 +230,7 @@ static void platform_bus_class_init(ObjectClass *klas= s, void *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > dc->realize =3D platform_bus_realize; > - dc->props =3D platform_bus_properties; > + device_class_set_props(dc, platform_bus_properties); > } > =20 > static const TypeInfo platform_bus_info =3D { > diff --git a/hw/core/qdev.c b/hw/core/qdev.c > index 5783442..36ca5e7 100644 > --- a/hw/core/qdev.c > +++ b/hw/core/qdev.c > @@ -848,6 +848,12 @@ void qdev_alias_all_properties(DeviceState *target, = Object *source) > } while (class !=3D object_class_by_name(TYPE_DEVICE)); > } > =20 > +void device_class_set_props(DeviceClass *dc, Property *props) > +{ > + assert(!dc->props); > + dc->props =3D props; > +} > + > static int qdev_add_hotpluggable_device(Object *obj, void *opaque) > { > GSList **list =3D opaque; > diff --git a/hw/cpu/a15mpcore.c b/hw/cpu/a15mpcore.c > index bc05152..55d3dae 100644 > --- a/hw/cpu/a15mpcore.c > +++ b/hw/cpu/a15mpcore.c > @@ -138,7 +138,7 @@ static void a15mp_priv_class_init(ObjectClass *klass,= void *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > dc->realize =3D a15mp_priv_realize; > - dc->props =3D a15mp_priv_properties; > + device_class_set_props(dc, a15mp_priv_properties); > /* We currently have no savable state */ > } > =20 > diff --git a/hw/cpu/a9mpcore.c b/hw/cpu/a9mpcore.c > index f17f292..422effb 100644 > --- a/hw/cpu/a9mpcore.c > +++ b/hw/cpu/a9mpcore.c > @@ -174,7 +174,7 @@ static void a9mp_priv_class_init(ObjectClass *klass, = void *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > dc->realize =3D a9mp_priv_realize; > - dc->props =3D a9mp_priv_properties; > + device_class_set_props(dc, a9mp_priv_properties); > } > =20 > static const TypeInfo a9mp_priv_info =3D { > diff --git a/hw/cpu/arm11mpcore.c b/hw/cpu/arm11mpcore.c > index eb24465..62b919d 100644 > --- a/hw/cpu/arm11mpcore.c > +++ b/hw/cpu/arm11mpcore.c > @@ -155,7 +155,7 @@ static void mpcore_priv_class_init(ObjectClass *klass= , void *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > dc->realize =3D mpcore_priv_realize; > - dc->props =3D mpcore_priv_properties; > + device_class_set_props(dc, mpcore_priv_properties); > } > =20 > static const TypeInfo mpcore_priv_info =3D { > diff --git a/hw/cpu/realview_mpcore.c b/hw/cpu/realview_mpcore.c > index 39d4ebe..12d2f09 100644 > --- a/hw/cpu/realview_mpcore.c > +++ b/hw/cpu/realview_mpcore.c > @@ -122,7 +122,7 @@ static void mpcore_rirq_class_init(ObjectClass *klass= , void *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > dc->realize =3D realview_mpcore_realize; > - dc->props =3D mpcore_rirq_properties; > + device_class_set_props(dc, mpcore_rirq_properties); > } > =20 > static const TypeInfo mpcore_rirq_info =3D { > diff --git a/hw/display/bcm2835_fb.c b/hw/display/bcm2835_fb.c > index 7eab927..3d38df0 100644 > --- a/hw/display/bcm2835_fb.c > +++ b/hw/display/bcm2835_fb.c > @@ -404,7 +404,7 @@ static void bcm2835_fb_class_init(ObjectClass *klass,= void *data) > { > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > - dc->props =3D bcm2835_fb_props; > + device_class_set_props(dc, bcm2835_fb_props); > dc->realize =3D bcm2835_fb_realize; > dc->reset =3D bcm2835_fb_reset; > dc->vmsd =3D &vmstate_bcm2835_fb; > diff --git a/hw/display/cg3.c b/hw/display/cg3.c > index 1174220..b6d86b7 100644 > --- a/hw/display/cg3.c > +++ b/hw/display/cg3.c > @@ -382,7 +382,7 @@ static void cg3_class_init(ObjectClass *klass, void *= data) > dc->realize =3D cg3_realizefn; > dc->reset =3D cg3_reset; > dc->vmsd =3D &vmstate_cg3; > - dc->props =3D cg3_properties; > + device_class_set_props(dc, cg3_properties); > } > =20 > static const TypeInfo cg3_info =3D { > diff --git a/hw/display/cirrus_vga.c b/hw/display/cirrus_vga.c > index 3d712d5..53e7b45 100644 > --- a/hw/display/cirrus_vga.c > +++ b/hw/display/cirrus_vga.c > @@ -2995,7 +2995,7 @@ static void isa_cirrus_vga_class_init(ObjectClass *= klass, void *data) > =20 > dc->vmsd =3D &vmstate_cirrus_vga; > dc->realize =3D isa_cirrus_vga_realizefn; > - dc->props =3D isa_cirrus_vga_properties; > + device_class_set_props(dc, isa_cirrus_vga_properties); > set_bit(DEVICE_CATEGORY_DISPLAY, dc->categories); > } > =20 > @@ -3071,7 +3071,7 @@ static void cirrus_vga_class_init(ObjectClass *klas= s, void *data) > set_bit(DEVICE_CATEGORY_DISPLAY, dc->categories); > dc->desc =3D "Cirrus CLGD 54xx VGA"; > dc->vmsd =3D &vmstate_pci_cirrus_vga; > - dc->props =3D pci_vga_cirrus_properties; > + device_class_set_props(dc, pci_vga_cirrus_properties); > dc->hotpluggable =3D false; > } > =20 > diff --git a/hw/display/g364fb.c b/hw/display/g364fb.c > index 70ef2c7..a230b7f 100644 > --- a/hw/display/g364fb.c > +++ b/hw/display/g364fb.c > @@ -541,7 +541,7 @@ static void g364fb_sysbus_class_init(ObjectClass *kla= ss, void *data) > dc->desc =3D "G364 framebuffer"; > dc->reset =3D g364fb_sysbus_reset; > dc->vmsd =3D &vmstate_g364fb; > - dc->props =3D g364fb_sysbus_properties; > + device_class_set_props(dc, g364fb_sysbus_properties); > } > =20 > static const TypeInfo g364fb_sysbus_info =3D { > diff --git a/hw/display/milkymist-vgafb.c b/hw/display/milkymist-vgafb.c > index 177fdac..730615d 100644 > --- a/hw/display/milkymist-vgafb.c > +++ b/hw/display/milkymist-vgafb.c > @@ -338,7 +338,7 @@ static void milkymist_vgafb_class_init(ObjectClass *k= lass, void *data) > =20 > dc->reset =3D milkymist_vgafb_reset; > dc->vmsd =3D &vmstate_milkymist_vgafb; > - dc->props =3D milkymist_vgafb_properties; > + device_class_set_props(dc, milkymist_vgafb_properties); > dc->realize =3D milkymist_vgafb_realize; > } > =20 > diff --git a/hw/display/qxl.c b/hw/display/qxl.c > index 0e2682d..aa2f4a1 100644 > --- a/hw/display/qxl.c > +++ b/hw/display/qxl.c > @@ -2339,7 +2339,7 @@ static void qxl_pci_class_init(ObjectClass *klass, = void *data) > set_bit(DEVICE_CATEGORY_DISPLAY, dc->categories); > dc->reset =3D qxl_reset_handler; > dc->vmsd =3D &qxl_vmstate; > - dc->props =3D qxl_properties; > + device_class_set_props(dc, qxl_properties); > } > =20 > static const TypeInfo qxl_pci_type_info =3D { > diff --git a/hw/display/tcx.c b/hw/display/tcx.c > index 8e26aae..a429cdf 100644 > --- a/hw/display/tcx.c > +++ b/hw/display/tcx.c > @@ -1087,7 +1087,7 @@ static void tcx_class_init(ObjectClass *klass, void= *data) > dc->realize =3D tcx_realizefn; > dc->reset =3D tcx_reset; > dc->vmsd =3D &vmstate_tcx; > - dc->props =3D tcx_properties; > + device_class_set_props(dc, tcx_properties); > } > =20 > static const TypeInfo tcx_info =3D { > diff --git a/hw/display/vga-isa.c b/hw/display/vga-isa.c > index 1af9556..cdc3290 100644 > --- a/hw/display/vga-isa.c > +++ b/hw/display/vga-isa.c > @@ -91,7 +91,7 @@ static void vga_isa_class_initfn(ObjectClass *klass, vo= id *data) > dc->realize =3D vga_isa_realizefn; > dc->reset =3D vga_isa_reset; > dc->vmsd =3D &vmstate_vga_common; > - dc->props =3D vga_isa_properties; > + device_class_set_props(dc, vga_isa_properties); > set_bit(DEVICE_CATEGORY_DISPLAY, dc->categories); > } > =20 > diff --git a/hw/display/vga-pci.c b/hw/display/vga-pci.c > index ac9a764..be26772 100644 > --- a/hw/display/vga-pci.c > +++ b/hw/display/vga-pci.c > @@ -348,7 +348,7 @@ static void vga_class_init(ObjectClass *klass, void *= data) > k->realize =3D pci_std_vga_realize; > k->romfile =3D "vgabios-stdvga.bin"; > k->class_id =3D PCI_CLASS_DISPLAY_VGA; > - dc->props =3D vga_pci_properties; > + device_class_set_props(dc, vga_pci_properties); > dc->hotpluggable =3D false; > } > =20 > @@ -359,7 +359,7 @@ static void secondary_class_init(ObjectClass *klass, = void *data) > =20 > k->realize =3D pci_secondary_vga_realize; > k->class_id =3D PCI_CLASS_DISPLAY_OTHER; > - dc->props =3D secondary_pci_properties; > + device_class_set_props(dc, secondary_pci_properties); > dc->reset =3D pci_secondary_vga_reset; > } > =20 > diff --git a/hw/display/virtio-gpu-pci.c b/hw/display/virtio-gpu-pci.c > index ef92c4a..6122fc2 100644 > --- a/hw/display/virtio-gpu-pci.c > +++ b/hw/display/virtio-gpu-pci.c > @@ -47,7 +47,7 @@ static void virtio_gpu_pci_class_init(ObjectClass *klas= s, void *data) > PCIDeviceClass *pcidev_k =3D PCI_DEVICE_CLASS(klass); > =20 > set_bit(DEVICE_CATEGORY_DISPLAY, dc->categories); > - dc->props =3D virtio_gpu_pci_properties; > + device_class_set_props(dc, virtio_gpu_pci_properties); > dc->hotpluggable =3D false; > k->realize =3D virtio_gpu_pci_realize; > pcidev_k->class_id =3D PCI_CLASS_DISPLAY_OTHER; > diff --git a/hw/display/virtio-gpu.c b/hw/display/virtio-gpu.c > index 60bce94..fff8674 100644 > --- a/hw/display/virtio-gpu.c > +++ b/hw/display/virtio-gpu.c > @@ -1263,7 +1263,7 @@ static void virtio_gpu_class_init(ObjectClass *klas= s, void *data) > =20 > vdc->reset =3D virtio_gpu_reset; > =20 > - dc->props =3D virtio_gpu_properties; > + device_class_set_props(dc, virtio_gpu_properties); > dc->vmsd =3D &vmstate_virtio_gpu; > } > =20 > diff --git a/hw/display/virtio-vga.c b/hw/display/virtio-vga.c > index f9b017d..f370a2a 100644 > --- a/hw/display/virtio-vga.c > +++ b/hw/display/virtio-vga.c > @@ -186,7 +186,7 @@ static void virtio_vga_class_init(ObjectClass *klass,= void *data) > PCIDeviceClass *pcidev_k =3D PCI_DEVICE_CLASS(klass); > =20 > set_bit(DEVICE_CATEGORY_DISPLAY, dc->categories); > - dc->props =3D virtio_vga_properties; > + device_class_set_props(dc, virtio_vga_properties); > dc->reset =3D virtio_vga_reset; > dc->vmsd =3D &vmstate_virtio_vga; > dc->hotpluggable =3D false; > diff --git a/hw/display/vmware_vga.c b/hw/display/vmware_vga.c > index 6599cf0..2463cf4 100644 > --- a/hw/display/vmware_vga.c > +++ b/hw/display/vmware_vga.c > @@ -1356,7 +1356,7 @@ static void vmsvga_class_init(ObjectClass *klass, v= oid *data) > k->subsystem_id =3D SVGA_PCI_DEVICE_ID; > dc->reset =3D vmsvga_reset; > dc->vmsd =3D &vmstate_vmware_vga; > - dc->props =3D vga_vmware_properties; > + device_class_set_props(dc, vga_vmware_properties); > dc->hotpluggable =3D false; > set_bit(DEVICE_CATEGORY_DISPLAY, dc->categories); > } > diff --git a/hw/dma/i82374.c b/hw/dma/i82374.c > index 6c0f975..0cbc61b 100644 > --- a/hw/dma/i82374.c > +++ b/hw/dma/i82374.c > @@ -138,7 +138,7 @@ static void i82374_class_init(ObjectClass *klass, voi= d *data) > =20 > dc->realize =3D i82374_realize; > dc->vmsd =3D &vmstate_i82374; > - dc->props =3D i82374_properties; > + device_class_set_props(dc, i82374_properties); > } > =20 > static const TypeInfo i82374_info =3D { > diff --git a/hw/dma/i8257.c b/hw/dma/i8257.c > index 8bd82e8..15909a8 100644 > --- a/hw/dma/i8257.c > +++ b/hw/dma/i8257.c > @@ -590,7 +590,7 @@ static void i8257_class_init(ObjectClass *klass, void= *data) > dc->realize =3D i8257_realize; > dc->reset =3D i8257_reset; > dc->vmsd =3D &vmstate_i8257; > - dc->props =3D i8257_properties; > + device_class_set_props(dc, i8257_properties); > =20 > idc->get_transfer_mode =3D i8257_dma_get_transfer_mode; > idc->has_autoinitialization =3D i8257_dma_has_autoinitialization; > diff --git a/hw/dma/pl330.c b/hw/dma/pl330.c > index c0bd9fe..3902df2 100644 > --- a/hw/dma/pl330.c > +++ b/hw/dma/pl330.c > @@ -1650,7 +1650,7 @@ static void pl330_class_init(ObjectClass *klass, vo= id *data) > =20 > dc->realize =3D pl330_realize; > dc->reset =3D pl330_reset; > - dc->props =3D pl330_properties; > + device_class_set_props(dc, pl330_properties); > dc->vmsd =3D &vmstate_pl330; > } > =20 > diff --git a/hw/dma/pxa2xx_dma.c b/hw/dma/pxa2xx_dma.c > index 634a432..99569a6 100644 > --- a/hw/dma/pxa2xx_dma.c > +++ b/hw/dma/pxa2xx_dma.c > @@ -562,7 +562,7 @@ static void pxa2xx_dma_class_init(ObjectClass *klass,= void *data) > =20 > dc->desc =3D "PXA2xx DMA controller"; > dc->vmsd =3D &vmstate_pxa2xx_dma; > - dc->props =3D pxa2xx_dma_properties; > + device_class_set_props(dc, pxa2xx_dma_properties); > dc->realize =3D pxa2xx_dma_realize; > } > =20 > diff --git a/hw/dma/sparc32_dma.c b/hw/dma/sparc32_dma.c > index 9d545e4..056b31c 100644 > --- a/hw/dma/sparc32_dma.c > +++ b/hw/dma/sparc32_dma.c > @@ -303,7 +303,7 @@ static void sparc32_dma_class_init(ObjectClass *klass= , void *data) > k->init =3D sparc32_dma_init1; > dc->reset =3D dma_reset; > dc->vmsd =3D &vmstate_dma; > - dc->props =3D sparc32_dma_properties; > + device_class_set_props(dc, sparc32_dma_properties); > /* Reason: pointer property "iommu_opaque" */ > dc->cannot_instantiate_with_device_add_yet =3D true; > } > diff --git a/hw/dma/sun4m_iommu.c b/hw/dma/sun4m_iommu.c > index b3cbc54..0c0adfd 100644 > --- a/hw/dma/sun4m_iommu.c > +++ b/hw/dma/sun4m_iommu.c > @@ -375,7 +375,7 @@ static void iommu_class_init(ObjectClass *klass, void= *data) > k->init =3D iommu_init1; > dc->reset =3D iommu_reset; > dc->vmsd =3D &vmstate_iommu; > - dc->props =3D iommu_properties; > + device_class_set_props(dc, iommu_properties); > } > =20 > static const TypeInfo iommu_info =3D { > diff --git a/hw/dma/xilinx_axidma.c b/hw/dma/xilinx_axidma.c > index 6065689..38a2ba6 100644 > --- a/hw/dma/xilinx_axidma.c > +++ b/hw/dma/xilinx_axidma.c > @@ -604,7 +604,7 @@ static void axidma_class_init(ObjectClass *klass, voi= d *data) > =20 > dc->realize =3D xilinx_axidma_realize, > dc->reset =3D xilinx_axidma_reset; > - dc->props =3D axidma_properties; > + device_class_set_props(dc, axidma_properties); > } > =20 > static StreamSlaveClass xilinx_axidma_data_stream_class =3D { > diff --git a/hw/gpio/imx_gpio.c b/hw/gpio/imx_gpio.c > index f3574aa..d1325e6 100644 > --- a/hw/gpio/imx_gpio.c > +++ b/hw/gpio/imx_gpio.c > @@ -331,7 +331,7 @@ static void imx_gpio_class_init(ObjectClass *klass, v= oid *data) > =20 > dc->realize =3D imx_gpio_realize; > dc->reset =3D imx_gpio_reset; > - dc->props =3D imx_gpio_properties; > + device_class_set_props(dc, imx_gpio_properties); > dc->vmsd =3D &vmstate_imx_gpio; > dc->desc =3D "i.MX GPIO controller"; > } > diff --git a/hw/gpio/omap_gpio.c b/hw/gpio/omap_gpio.c > index dabef4a..66fbecb 100644 > --- a/hw/gpio/omap_gpio.c > +++ b/hw/gpio/omap_gpio.c > @@ -771,7 +771,7 @@ static void omap_gpio_class_init(ObjectClass *klass, = void *data) > =20 > dc->realize =3D omap_gpio_realize; > dc->reset =3D omap_gpif_reset; > - dc->props =3D omap_gpio_properties; > + device_class_set_props(dc, omap_gpio_properties); > /* Reason: pointer property "clk" */ > dc->cannot_instantiate_with_device_add_yet =3D true; > } > @@ -802,7 +802,7 @@ static void omap2_gpio_class_init(ObjectClass *klass,= void *data) > =20 > dc->realize =3D omap2_gpio_realize; > dc->reset =3D omap2_gpif_reset; > - dc->props =3D omap2_gpio_properties; > + device_class_set_props(dc, omap2_gpio_properties); > /* Reason: pointer properties "iclk", "fclk0", ..., "fclk5" */ > dc->cannot_instantiate_with_device_add_yet =3D true; > } > diff --git a/hw/i2c/core.c b/hw/i2c/core.c > index abd4c4c..bb2c12a 100644 > --- a/hw/i2c/core.c > +++ b/hw/i2c/core.c > @@ -279,7 +279,7 @@ static void i2c_slave_class_init(ObjectClass *klass, = void *data) > k->init =3D i2c_slave_qdev_init; > set_bit(DEVICE_CATEGORY_MISC, k->categories); > k->bus_type =3D TYPE_I2C_BUS; > - k->props =3D i2c_props; > + device_class_set_props(k, i2c_props); > } > =20 > static const TypeInfo i2c_slave_type_info =3D { > diff --git a/hw/i2c/omap_i2c.c b/hw/i2c/omap_i2c.c > index f7c92ea..2031009 100644 > --- a/hw/i2c/omap_i2c.c > +++ b/hw/i2c/omap_i2c.c > @@ -488,7 +488,7 @@ static void omap_i2c_class_init(ObjectClass *klass, v= oid *data) > { > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > - dc->props =3D omap_i2c_properties; > + device_class_set_props(dc, omap_i2c_properties); > dc->reset =3D omap_i2c_reset; > /* Reason: pointer properties "iclk", "fclk" */ > dc->cannot_instantiate_with_device_add_yet =3D true; > diff --git a/hw/i2c/smbus_eeprom.c b/hw/i2c/smbus_eeprom.c > index 5b7bd89..bbb5294 100644 > --- a/hw/i2c/smbus_eeprom.c > +++ b/hw/i2c/smbus_eeprom.c > @@ -121,7 +121,7 @@ static void smbus_eeprom_class_initfn(ObjectClass *kl= ass, void *data) > sc->receive_byte =3D eeprom_receive_byte; > sc->write_data =3D eeprom_write_data; > sc->read_data =3D eeprom_read_data; > - dc->props =3D smbus_eeprom_properties; > + device_class_set_props(dc, smbus_eeprom_properties); > /* Reason: pointer property "data" */ > dc->cannot_instantiate_with_device_add_yet =3D true; > } > diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c > index 1655a65..c2e119f 100644 > --- a/hw/i386/intel_iommu.c > +++ b/hw/i386/intel_iommu.c > @@ -2542,7 +2542,7 @@ static void vtd_class_init(ObjectClass *klass, void= *data) > =20 > dc->reset =3D vtd_reset; > dc->vmsd =3D &vtd_vmstate; > - dc->props =3D vtd_properties; > + device_class_set_props(dc, vtd_properties); > dc->hotpluggable =3D false; > x86_class->realize =3D vtd_realize; > x86_class->int_remap =3D vtd_int_remap; > diff --git a/hw/i386/kvm/i8254.c b/hw/i386/kvm/i8254.c > index 521a584..1586b8a 100644 > --- a/hw/i386/kvm/i8254.c > +++ b/hw/i386/kvm/i8254.c > @@ -320,7 +320,7 @@ static void kvm_pit_class_init(ObjectClass *klass, vo= id *data) > k->set_channel_gate =3D kvm_pit_set_gate; > k->get_channel_info =3D kvm_pit_get_channel_info; > dc->reset =3D kvm_pit_reset; > - dc->props =3D kvm_pit_properties; > + device_class_set_props(dc, kvm_pit_properties); > } > =20 > static const TypeInfo kvm_pit_info =3D { > diff --git a/hw/i386/kvm/ioapic.c b/hw/i386/kvm/ioapic.c > index 8eb2c7a..e137d10 100644 > --- a/hw/i386/kvm/ioapic.c > +++ b/hw/i386/kvm/ioapic.c > @@ -161,7 +161,7 @@ static void kvm_ioapic_class_init(ObjectClass *klass,= void *data) > k->pre_save =3D kvm_ioapic_get; > k->post_load =3D kvm_ioapic_put; > dc->reset =3D kvm_ioapic_reset; > - dc->props =3D kvm_ioapic_properties; > + device_class_set_props(dc, kvm_ioapic_properties); > } > =20 > static const TypeInfo kvm_ioapic_info =3D { > diff --git a/hw/i386/kvm/pci-assign.c b/hw/i386/kvm/pci-assign.c > index 8238fbc..e6596d3 100644 > --- a/hw/i386/kvm/pci-assign.c > +++ b/hw/i386/kvm/pci-assign.c > @@ -1861,7 +1861,7 @@ static void assign_class_init(ObjectClass *klass, v= oid *data) > k->exit =3D assigned_exitfn; > k->config_read =3D assigned_dev_pci_read_config; > k->config_write =3D assigned_dev_pci_write_config; > - dc->props =3D assigned_dev_properties; > + device_class_set_props(dc, assigned_dev_properties); > dc->vmsd =3D &vmstate_assigned_device; > dc->reset =3D reset_assigned_device; > set_bit(DEVICE_CATEGORY_MISC, dc->categories); > diff --git a/hw/i386/xen/xen_pvdevice.c b/hw/i386/xen/xen_pvdevice.c > index c093b34..1a6189f 100644 > --- a/hw/i386/xen/xen_pvdevice.c > +++ b/hw/i386/xen/xen_pvdevice.c > @@ -119,7 +119,7 @@ static void xen_pv_class_init(ObjectClass *klass, voi= d *data) > k->realize =3D xen_pv_realize; > k->class_id =3D PCI_CLASS_SYSTEM_OTHER; > dc->desc =3D "Xen PV Device"; > - dc->props =3D xen_pv_props; > + device_class_set_props(dc, xen_pv_props); > } > =20 > static const TypeInfo xen_pv_type_info =3D { > diff --git a/hw/ide/ahci.c b/hw/ide/ahci.c > index 3c19bda..6956abd 100644 > --- a/hw/ide/ahci.c > +++ b/hw/ide/ahci.c > @@ -1706,7 +1706,7 @@ static void sysbus_ahci_class_init(ObjectClass *kla= ss, void *data) > =20 > dc->realize =3D sysbus_ahci_realize; > dc->vmsd =3D &vmstate_sysbus_ahci; > - dc->props =3D sysbus_ahci_properties; > + device_class_set_props(dc, sysbus_ahci_properties); > dc->reset =3D sysbus_ahci_reset; > set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); > } > diff --git a/hw/ide/cmd646.c b/hw/ide/cmd646.c > index 9ebb8d4..029906d 100644 > --- a/hw/ide/cmd646.c > +++ b/hw/ide/cmd646.c > @@ -417,7 +417,7 @@ static void cmd646_ide_class_init(ObjectClass *klass,= void *data) > k->class_id =3D PCI_CLASS_STORAGE_IDE; > k->config_read =3D cmd646_pci_config_read; > k->config_write =3D cmd646_pci_config_write; > - dc->props =3D cmd646_ide_properties; > + device_class_set_props(dc, cmd646_ide_properties); > set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); > } > =20 > diff --git a/hw/ide/isa.c b/hw/ide/isa.c > index 40213d6..66f7c6b 100644 > --- a/hw/ide/isa.c > +++ b/hw/ide/isa.c > @@ -116,7 +116,7 @@ static void isa_ide_class_initfn(ObjectClass *klass, = void *data) > dc->realize =3D isa_ide_realizefn; > dc->fw_name =3D "ide"; > dc->reset =3D isa_ide_reset; > - dc->props =3D isa_ide_properties; > + device_class_set_props(dc, isa_ide_properties); > set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); > } > =20 > diff --git a/hw/ide/mmio.c b/hw/ide/mmio.c > index 6f12f45..1f48be8 100644 > --- a/hw/ide/mmio.c > +++ b/hw/ide/mmio.c > @@ -152,7 +152,7 @@ static void mmio_ide_class_init(ObjectClass *oc, void= *data) > =20 > dc->realize =3D mmio_ide_realizefn; > dc->reset =3D mmio_ide_reset; > - dc->props =3D mmio_ide_properties; > + device_class_set_props(dc, mmio_ide_properties); > dc->vmsd =3D &vmstate_ide_mmio; > } > =20 > diff --git a/hw/ide/qdev.c b/hw/ide/qdev.c > index dbaa75c..430b535 100644 > --- a/hw/ide/qdev.c > +++ b/hw/ide/qdev.c > @@ -305,7 +305,7 @@ static void ide_hd_class_init(ObjectClass *klass, voi= d *data) > k->init =3D ide_hd_initfn; > dc->fw_name =3D "drive"; > dc->desc =3D "virtual IDE disk"; > - dc->props =3D ide_hd_properties; > + device_class_set_props(dc, ide_hd_properties); > } > =20 > static const TypeInfo ide_hd_info =3D { > @@ -327,7 +327,7 @@ static void ide_cd_class_init(ObjectClass *klass, voi= d *data) > k->init =3D ide_cd_initfn; > dc->fw_name =3D "drive"; > dc->desc =3D "virtual IDE CD-ROM"; > - dc->props =3D ide_cd_properties; > + device_class_set_props(dc, ide_cd_properties); > } > =20 > static const TypeInfo ide_cd_info =3D { > @@ -349,7 +349,7 @@ static void ide_drive_class_init(ObjectClass *klass, = void *data) > k->init =3D ide_drive_initfn; > dc->fw_name =3D "drive"; > dc->desc =3D "virtual IDE disk or CD-ROM (legacy)"; > - dc->props =3D ide_drive_properties; > + device_class_set_props(dc, ide_drive_properties); > } > =20 > static const TypeInfo ide_drive_info =3D { > @@ -366,7 +366,7 @@ static void ide_device_class_init(ObjectClass *klass,= void *data) > set_bit(DEVICE_CATEGORY_STORAGE, k->categories); > k->bus_type =3D TYPE_IDE_BUS; > k->unrealize =3D idebus_unrealize; > - k->props =3D ide_props; > + device_class_set_props(k, ide_props); > } > =20 > static const TypeInfo ide_device_type_info =3D { > diff --git a/hw/input/milkymist-softusb.c b/hw/input/milkymist-softusb.c > index 40dfca1..7f577d3 100644 > --- a/hw/input/milkymist-softusb.c > +++ b/hw/input/milkymist-softusb.c > @@ -301,7 +301,7 @@ static void milkymist_softusb_class_init(ObjectClass = *klass, void *data) > k->init =3D milkymist_softusb_init; > dc->reset =3D milkymist_softusb_reset; > dc->vmsd =3D &vmstate_milkymist_softusb; > - dc->props =3D milkymist_softusb_properties; > + device_class_set_props(dc, milkymist_softusb_properties); > } > =20 > static const TypeInfo milkymist_softusb_info =3D { > diff --git a/hw/input/virtio-input-hid.c b/hw/input/virtio-input-hid.c > index 3ee0c18..9ded80f 100644 > --- a/hw/input/virtio-input-hid.c > +++ b/hw/input/virtio-input-hid.c > @@ -327,7 +327,7 @@ static void virtio_input_hid_class_init(ObjectClass *= klass, void *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > VirtIOInputClass *vic =3D VIRTIO_INPUT_CLASS(klass); > =20 > - dc->props =3D virtio_input_hid_properties; > + device_class_set_props(dc, virtio_input_hid_properties); > vic->realize =3D virtio_input_hid_realize; > vic->unrealize =3D virtio_input_hid_unrealize; > vic->change_active =3D virtio_input_hid_change_active; > diff --git a/hw/input/virtio-input-host.c b/hw/input/virtio-input-host.c > index cb79e80..e122a68 100644 > --- a/hw/input/virtio-input-host.c > +++ b/hw/input/virtio-input-host.c > @@ -226,7 +226,7 @@ static void virtio_input_host_class_init(ObjectClass = *klass, void *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > dc->vmsd =3D &vmstate_virtio_input_host; > - dc->props =3D virtio_input_host_properties; > + device_class_set_props(dc, virtio_input_host_properties); > vic->realize =3D virtio_input_host_realize; > vic->unrealize =3D virtio_input_host_unrealize; > vic->handle_status =3D virtio_input_host_handle_status; > diff --git a/hw/input/virtio-input.c b/hw/input/virtio-input.c > index b678ee9..039457e 100644 > --- a/hw/input/virtio-input.c > +++ b/hw/input/virtio-input.c > @@ -310,7 +310,7 @@ static void virtio_input_class_init(ObjectClass *klas= s, void *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > VirtioDeviceClass *vdc =3D VIRTIO_DEVICE_CLASS(klass); > =20 > - dc->props =3D virtio_input_properties; > + device_class_set_props(dc, virtio_input_properties); > dc->vmsd =3D &vmstate_virtio_input; > set_bit(DEVICE_CATEGORY_INPUT, dc->categories); > vdc->realize =3D virtio_input_device_realize; > diff --git a/hw/input/vmmouse.c b/hw/input/vmmouse.c > index 6d15a88..5778a8b 100644 > --- a/hw/input/vmmouse.c > +++ b/hw/input/vmmouse.c > @@ -284,7 +284,7 @@ static void vmmouse_class_initfn(ObjectClass *klass, = void *data) > dc->realize =3D vmmouse_realizefn; > dc->reset =3D vmmouse_reset; > dc->vmsd =3D &vmstate_vmmouse; > - dc->props =3D vmmouse_properties; > + device_class_set_props(dc, vmmouse_properties); > /* Reason: pointer property "ps2_mouse" */ > dc->cannot_instantiate_with_device_add_yet =3D true; > } > diff --git a/hw/intc/apic_common.c b/hw/intc/apic_common.c > index d78c885..113b9e1 100644 > --- a/hw/intc/apic_common.c > +++ b/hw/intc/apic_common.c > @@ -491,7 +491,7 @@ static void apic_common_class_init(ObjectClass *klass= , void *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > dc->reset =3D apic_reset_common; > - dc->props =3D apic_properties_common; > + device_class_set_props(dc, apic_properties_common); > dc->realize =3D apic_common_realize; > dc->unrealize =3D apic_common_unrealize; > /* > diff --git a/hw/intc/arm_gic_common.c b/hw/intc/arm_gic_common.c > index 0a1f56a..b48a588 100644 > --- a/hw/intc/arm_gic_common.c > +++ b/hw/intc/arm_gic_common.c > @@ -264,7 +264,7 @@ static void arm_gic_common_class_init(ObjectClass *kl= ass, void *data) > =20 > dc->reset =3D arm_gic_common_reset; > dc->realize =3D arm_gic_common_realize; > - dc->props =3D arm_gic_common_properties; > + device_class_set_props(dc, arm_gic_common_properties); > dc->vmsd =3D &vmstate_gic; > albifc->arm_linux_init =3D arm_gic_common_linux_init; > } > diff --git a/hw/intc/arm_gicv2m.c b/hw/intc/arm_gicv2m.c > index 3922fbc..3d99e73 100644 > --- a/hw/intc/arm_gicv2m.c > +++ b/hw/intc/arm_gicv2m.c > @@ -176,7 +176,7 @@ static void gicv2m_class_init(ObjectClass *klass, voi= d *data) > { > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > - dc->props =3D gicv2m_properties; > + device_class_set_props(dc, gicv2m_properties); > dc->realize =3D gicv2m_realize; > } > =20 > diff --git a/hw/intc/arm_gicv3_common.c b/hw/intc/arm_gicv3_common.c > index 0f8c4b8..67cc7e3 100644 > --- a/hw/intc/arm_gicv3_common.c > +++ b/hw/intc/arm_gicv3_common.c > @@ -325,7 +325,7 @@ static void arm_gicv3_common_class_init(ObjectClass *= klass, void *data) > =20 > dc->reset =3D arm_gicv3_common_reset; > dc->realize =3D arm_gicv3_common_realize; > - dc->props =3D arm_gicv3_common_properties; > + device_class_set_props(dc, arm_gicv3_common_properties); > dc->vmsd =3D &vmstate_gicv3; > albifc->arm_linux_init =3D arm_gic_common_linux_init; > } > diff --git a/hw/intc/etraxfs_pic.c b/hw/intc/etraxfs_pic.c > index 64a6f4b..00f9268 100644 > --- a/hw/intc/etraxfs_pic.c > +++ b/hw/intc/etraxfs_pic.c > @@ -170,7 +170,7 @@ static void etraxfs_pic_class_init(ObjectClass *klass= , void *data) > { > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > - dc->props =3D etraxfs_pic_properties; > + device_class_set_props(dc, etraxfs_pic_properties); > /* > * Note: pointer property "interrupt_vector" may remain null, thus > * no need for dc->cannot_instantiate_with_device_add_yet =3D true; > diff --git a/hw/intc/exynos4210_combiner.c b/hw/intc/exynos4210_combiner.c > index f19a706..8b2bb68 100644 > --- a/hw/intc/exynos4210_combiner.c > +++ b/hw/intc/exynos4210_combiner.c > @@ -437,7 +437,7 @@ static void exynos4210_combiner_class_init(ObjectClas= s *klass, void *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > dc->reset =3D exynos4210_combiner_reset; > - dc->props =3D exynos4210_combiner_properties; > + device_class_set_props(dc, exynos4210_combiner_properties); > dc->vmsd =3D &vmstate_exynos4210_combiner; > } > =20 > diff --git a/hw/intc/exynos4210_gic.c b/hw/intc/exynos4210_gic.c > index fd7a8f3..1135335 100644 > --- a/hw/intc/exynos4210_gic.c > +++ b/hw/intc/exynos4210_gic.c > @@ -346,7 +346,7 @@ static void exynos4210_gic_class_init(ObjectClass *kl= ass, void *data) > { > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > - dc->props =3D exynos4210_gic_properties; > + device_class_set_props(dc, exynos4210_gic_properties); > } > =20 > static const TypeInfo exynos4210_gic_info =3D { > @@ -453,7 +453,7 @@ static void exynos4210_irq_gate_class_init(ObjectClas= s *klass, void *data) > =20 > dc->reset =3D exynos4210_irq_gate_reset; > dc->vmsd =3D &vmstate_exynos4210_irq_gate; > - dc->props =3D exynos4210_irq_gate_properties; > + device_class_set_props(dc, exynos4210_irq_gate_properties); > dc->realize =3D exynos4210_irq_gate_realize; > } > =20 > diff --git a/hw/intc/grlib_irqmp.c b/hw/intc/grlib_irqmp.c > index ac7e63f..929dc06 100644 > --- a/hw/intc/grlib_irqmp.c > +++ b/hw/intc/grlib_irqmp.c > @@ -358,7 +358,7 @@ static void grlib_irqmp_class_init(ObjectClass *klass= , void *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > dc->reset =3D grlib_irqmp_reset; > - dc->props =3D grlib_irqmp_properties; > + device_class_set_props(dc, grlib_irqmp_properties); > /* Reason: pointer properties "set_pil_in", "set_pil_in_opaque" */ > dc->cannot_instantiate_with_device_add_yet =3D true; > dc->realize =3D grlib_irqmp_realize; > diff --git a/hw/intc/i8259_common.c b/hw/intc/i8259_common.c > index d9a5e8b..846fadb 100644 > --- a/hw/intc/i8259_common.c > +++ b/hw/intc/i8259_common.c > @@ -136,7 +136,7 @@ static void pic_common_class_init(ObjectClass *klass,= void *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > dc->vmsd =3D &vmstate_pic_common; > - dc->props =3D pic_properties_common; > + device_class_set_props(dc, pic_properties_common); > dc->realize =3D pic_common_realize; > /* > * Reason: unlike ordinary ISA devices, the PICs need additional > diff --git a/hw/intc/ioapic.c b/hw/intc/ioapic.c > index fd9208f..0112066 100644 > --- a/hw/intc/ioapic.c > +++ b/hw/intc/ioapic.c > @@ -427,7 +427,7 @@ static void ioapic_class_init(ObjectClass *klass, voi= d *data) > =20 > k->realize =3D ioapic_realize; > dc->reset =3D ioapic_reset_common; > - dc->props =3D ioapic_properties; > + device_class_set_props(dc, ioapic_properties); > } > =20 > static const TypeInfo ioapic_info =3D { > diff --git a/hw/intc/mips_gic.c b/hw/intc/mips_gic.c > index 6e25773..cdd4d74 100644 > --- a/hw/intc/mips_gic.c > +++ b/hw/intc/mips_gic.c > @@ -440,7 +440,7 @@ static void mips_gic_class_init(ObjectClass *klass, v= oid *data) > { > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > - dc->props =3D mips_gic_properties; > + device_class_set_props(dc, mips_gic_properties); > dc->realize =3D mips_gic_realize; > } > =20 > diff --git a/hw/intc/omap_intc.c b/hw/intc/omap_intc.c > index 877be67..8f357c1 100644 > --- a/hw/intc/omap_intc.c > +++ b/hw/intc/omap_intc.c > @@ -399,7 +399,7 @@ static void omap_intc_class_init(ObjectClass *klass, = void *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > dc->reset =3D omap_inth_reset; > - dc->props =3D omap_intc_properties; > + device_class_set_props(dc, omap_intc_properties); > /* Reason: pointer property "clk" */ > dc->cannot_instantiate_with_device_add_yet =3D true; > dc->realize =3D omap_intc_realize; > @@ -654,7 +654,7 @@ static void omap2_intc_class_init(ObjectClass *klass,= void *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > dc->reset =3D omap_inth_reset; > - dc->props =3D omap2_intc_properties; > + device_class_set_props(dc, omap2_intc_properties); > /* Reason: pointer property "iclk", "fclk" */ > dc->cannot_instantiate_with_device_add_yet =3D true; > dc->realize =3D omap2_intc_realize; > diff --git a/hw/intc/openpic.c b/hw/intc/openpic.c > index 4349e45..1262b89 100644 > --- a/hw/intc/openpic.c > +++ b/hw/intc/openpic.c > @@ -1643,7 +1643,7 @@ static void openpic_class_init(ObjectClass *oc, voi= d *data) > DeviceClass *dc =3D DEVICE_CLASS(oc); > =20 > dc->realize =3D openpic_realize; > - dc->props =3D openpic_properties; > + device_class_set_props(dc, openpic_properties); > dc->reset =3D openpic_reset; > dc->vmsd =3D &vmstate_openpic; > set_bit(DEVICE_CATEGORY_MISC, dc->categories); > diff --git a/hw/intc/openpic_kvm.c b/hw/intc/openpic_kvm.c > index 0518e01..1d178d7 100644 > --- a/hw/intc/openpic_kvm.c > +++ b/hw/intc/openpic_kvm.c > @@ -277,7 +277,7 @@ static void kvm_openpic_class_init(ObjectClass *oc, v= oid *data) > DeviceClass *dc =3D DEVICE_CLASS(oc); > =20 > dc->realize =3D kvm_openpic_realize; > - dc->props =3D kvm_openpic_properties; > + device_class_set_props(dc, kvm_openpic_properties); > dc->reset =3D kvm_openpic_reset; > set_bit(DEVICE_CATEGORY_MISC, dc->categories); > } > diff --git a/hw/intc/xilinx_intc.c b/hw/intc/xilinx_intc.c > index 9d8139b..8a5b64c 100644 > --- a/hw/intc/xilinx_intc.c > +++ b/hw/intc/xilinx_intc.c > @@ -183,7 +183,7 @@ static void xilinx_intc_class_init(ObjectClass *klass= , void *data) > { > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > - dc->props =3D xilinx_intc_properties; > + device_class_set_props(dc, xilinx_intc_properties); > } > =20 > static const TypeInfo xilinx_intc_info =3D { > diff --git a/hw/ipack/ipack.c b/hw/ipack/ipack.c > index 6021e6d..a052d97 100644 > --- a/hw/ipack/ipack.c > +++ b/hw/ipack/ipack.c > @@ -84,7 +84,7 @@ static void ipack_device_class_init(ObjectClass *klass,= void *data) > k->bus_type =3D TYPE_IPACK_BUS; > k->realize =3D ipack_device_realize; > k->unrealize =3D ipack_device_unrealize; > - k->props =3D ipack_device_props; > + device_class_set_props(k, ipack_device_props); > } > =20 > const VMStateDescription vmstate_ipack_device =3D { > diff --git a/hw/ipmi/ipmi.c b/hw/ipmi/ipmi.c > index f09f217..971c0d7 100644 > --- a/hw/ipmi/ipmi.c > +++ b/hw/ipmi/ipmi.c > @@ -110,7 +110,7 @@ static void bmc_class_init(ObjectClass *oc, void *dat= a) > { > DeviceClass *dc =3D DEVICE_CLASS(oc); > =20 > - dc->props =3D ipmi_bmc_properties; > + device_class_set_props(dc, ipmi_bmc_properties); > } > =20 > static TypeInfo ipmi_bmc_type_info =3D { > diff --git a/hw/ipmi/ipmi_bmc_extern.c b/hw/ipmi/ipmi_bmc_extern.c > index 4b310e5..3a4e61a 100644 > --- a/hw/ipmi/ipmi_bmc_extern.c > +++ b/hw/ipmi/ipmi_bmc_extern.c > @@ -513,7 +513,7 @@ static void ipmi_bmc_extern_class_init(ObjectClass *o= c, void *data) > bk->handle_command =3D ipmi_bmc_extern_handle_command; > bk->handle_reset =3D ipmi_bmc_extern_handle_reset; > dc->realize =3D ipmi_bmc_extern_realize; > - dc->props =3D ipmi_bmc_extern_properties; > + device_class_set_props(dc, ipmi_bmc_extern_properties); > } > =20 > static const TypeInfo ipmi_bmc_extern_type =3D { > diff --git a/hw/ipmi/isa_ipmi_bt.c b/hw/ipmi/isa_ipmi_bt.c > index f036617..d133ed4 100644 > --- a/hw/ipmi/isa_ipmi_bt.c > +++ b/hw/ipmi/isa_ipmi_bt.c > @@ -511,7 +511,7 @@ static void isa_ipmi_bt_class_init(ObjectClass *oc, v= oid *data) > IPMIInterfaceClass *iic =3D IPMI_INTERFACE_CLASS(oc); > =20 > dc->realize =3D isa_ipmi_bt_realize; > - dc->props =3D ipmi_isa_properties; > + device_class_set_props(dc, ipmi_isa_properties); > =20 > iic->get_backend_data =3D isa_ipmi_bt_get_backend_data; > ipmi_bt_class_init(iic); > diff --git a/hw/ipmi/isa_ipmi_kcs.c b/hw/ipmi/isa_ipmi_kcs.c > index 9a38f8a..90c7532 100644 > --- a/hw/ipmi/isa_ipmi_kcs.c > +++ b/hw/ipmi/isa_ipmi_kcs.c > @@ -475,7 +475,7 @@ static void isa_ipmi_kcs_class_init(ObjectClass *oc, = void *data) > IPMIInterfaceClass *iic =3D IPMI_INTERFACE_CLASS(oc); > =20 > dc->realize =3D ipmi_isa_realize; > - dc->props =3D ipmi_isa_properties; > + device_class_set_props(dc, ipmi_isa_properties); > =20 > iic->get_backend_data =3D isa_ipmi_kcs_get_backend_data; > ipmi_kcs_class_init(iic); > diff --git a/hw/isa/lpc_ich9.c b/hw/isa/lpc_ich9.c > index 10d1ee8..c7ed99a 100644 > --- a/hw/isa/lpc_ich9.c > +++ b/hw/isa/lpc_ich9.c > @@ -710,7 +710,7 @@ static void ich9_lpc_class_init(ObjectClass *klass, v= oid *data) > dc->reset =3D ich9_lpc_reset; > k->realize =3D ich9_lpc_realize; > dc->vmsd =3D &vmstate_ich9_lpc; > - dc->props =3D ich9_lpc_properties; > + device_class_set_props(dc, ich9_lpc_properties); > k->config_write =3D ich9_lpc_config_write; > dc->desc =3D "ICH9 LPC bridge"; > k->vendor_id =3D PCI_VENDOR_ID_INTEL; > diff --git a/hw/isa/pc87312.c b/hw/isa/pc87312.c > index b1c1a0a..ec0effc 100644 > --- a/hw/isa/pc87312.c > +++ b/hw/isa/pc87312.c > @@ -385,7 +385,7 @@ static void pc87312_class_init(ObjectClass *klass, vo= id *data) > dc->realize =3D pc87312_realize; > dc->reset =3D pc87312_reset; > dc->vmsd =3D &vmstate_pc87312; > - dc->props =3D pc87312_properties; > + device_class_set_props(dc, pc87312_properties); > } > =20 > static const TypeInfo pc87312_type_info =3D { > diff --git a/hw/isa/vt82c686.c b/hw/isa/vt82c686.c > index 41d5254..ddf5c89 100644 > --- a/hw/isa/vt82c686.c > +++ b/hw/isa/vt82c686.c > @@ -411,7 +411,7 @@ static void via_pm_class_init(ObjectClass *klass, voi= d *data) > dc->desc =3D "PM"; > dc->vmsd =3D &vmstate_acpi; > set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories); > - dc->props =3D via_pm_properties; > + device_class_set_props(dc, via_pm_properties); > } > =20 > static const TypeInfo via_pm_info =3D { > diff --git a/hw/mem/pc-dimm.c b/hw/mem/pc-dimm.c > index 9e8dab0..f8aa649 100644 > --- a/hw/mem/pc-dimm.c > +++ b/hw/mem/pc-dimm.c > @@ -443,7 +443,7 @@ static void pc_dimm_class_init(ObjectClass *oc, void = *data) > =20 > dc->realize =3D pc_dimm_realize; > dc->unrealize =3D pc_dimm_unrealize; > - dc->props =3D pc_dimm_properties; > + device_class_set_props(dc, pc_dimm_properties); > dc->desc =3D "DIMM memory module"; > =20 > ddc->get_memory_region =3D pc_dimm_get_memory_region; > diff --git a/hw/mips/cps.c b/hw/mips/cps.c > index 4ef337d..1753d82 100644 > --- a/hw/mips/cps.c > +++ b/hw/mips/cps.c > @@ -173,7 +173,7 @@ static void mips_cps_class_init(ObjectClass *klass, v= oid *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > dc->realize =3D mips_cps_realize; > - dc->props =3D mips_cps_properties; > + device_class_set_props(dc, mips_cps_properties); > } > =20 > static const TypeInfo mips_cps_info =3D { > diff --git a/hw/misc/a9scu.c b/hw/misc/a9scu.c > index 3e8ad8c..687656f 100644 > --- a/hw/misc/a9scu.c > +++ b/hw/misc/a9scu.c > @@ -132,7 +132,7 @@ static void a9_scu_class_init(ObjectClass *klass, voi= d *data) > { > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > - dc->props =3D a9_scu_properties; > + device_class_set_props(dc, a9_scu_properties); > dc->vmsd =3D &vmstate_a9_scu; > dc->reset =3D a9_scu_reset; > } > diff --git a/hw/misc/applesmc.c b/hw/misc/applesmc.c > index 77fab5b..99ea90d 100644 > --- a/hw/misc/applesmc.c > +++ b/hw/misc/applesmc.c > @@ -261,7 +261,7 @@ static void qdev_applesmc_class_init(ObjectClass *kla= ss, void *data) > =20 > dc->realize =3D applesmc_isa_realize; > dc->reset =3D qdev_applesmc_isa_reset; > - dc->props =3D applesmc_isa_properties; > + device_class_set_props(dc, applesmc_isa_properties); > set_bit(DEVICE_CATEGORY_MISC, dc->categories); > } > =20 > diff --git a/hw/misc/arm11scu.c b/hw/misc/arm11scu.c > index 7042ce1..f8c103d 100644 > --- a/hw/misc/arm11scu.c > +++ b/hw/misc/arm11scu.c > @@ -83,7 +83,7 @@ static void arm11_scu_class_init(ObjectClass *oc, void = *data) > DeviceClass *dc =3D DEVICE_CLASS(oc); > =20 > dc->realize =3D arm11_scu_realize; > - dc->props =3D arm11_scu_properties; > + device_class_set_props(dc, arm11_scu_properties); > } > =20 > static const TypeInfo arm11_scu_type_info =3D { > diff --git a/hw/misc/arm_l2x0.c b/hw/misc/arm_l2x0.c > index 66a0787..ac35ae3 100644 > --- a/hw/misc/arm_l2x0.c > +++ b/hw/misc/arm_l2x0.c > @@ -179,7 +179,7 @@ static void l2x0_class_init(ObjectClass *klass, void = *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > dc->vmsd =3D &vmstate_l2x0; > - dc->props =3D l2x0_properties; > + device_class_set_props(dc, l2x0_properties); > dc->reset =3D l2x0_priv_reset; > } > =20 > diff --git a/hw/misc/arm_sysctl.c b/hw/misc/arm_sysctl.c > index 8524008..2d43904 100644 > --- a/hw/misc/arm_sysctl.c > +++ b/hw/misc/arm_sysctl.c > @@ -639,7 +639,7 @@ static void arm_sysctl_class_init(ObjectClass *klass,= void *data) > dc->realize =3D arm_sysctl_realize; > dc->reset =3D arm_sysctl_reset; > dc->vmsd =3D &vmstate_arm_sysctl; > - dc->props =3D arm_sysctl_properties; > + device_class_set_props(dc, arm_sysctl_properties); > } > =20 > static const TypeInfo arm_sysctl_info =3D { > diff --git a/hw/misc/aspeed_scu.c b/hw/misc/aspeed_scu.c > index b1f3e6f..885048f 100644 > --- a/hw/misc/aspeed_scu.c > +++ b/hw/misc/aspeed_scu.c > @@ -307,7 +307,7 @@ static void aspeed_scu_class_init(ObjectClass *klass,= void *data) > dc->reset =3D aspeed_scu_reset; > dc->desc =3D "ASPEED System Control Unit"; > dc->vmsd =3D &vmstate_aspeed_scu; > - dc->props =3D aspeed_scu_properties; > + device_class_set_props(dc, aspeed_scu_properties); > } > =20 > static const TypeInfo aspeed_scu_info =3D { > diff --git a/hw/misc/aspeed_sdmc.c b/hw/misc/aspeed_sdmc.c > index 8830dc0..7830b25 100644 > --- a/hw/misc/aspeed_sdmc.c > +++ b/hw/misc/aspeed_sdmc.c > @@ -262,7 +262,7 @@ static void aspeed_sdmc_class_init(ObjectClass *klass= , void *data) > dc->reset =3D aspeed_sdmc_reset; > dc->desc =3D "ASPEED SDRAM Memory Controller"; > dc->vmsd =3D &vmstate_aspeed_sdmc; > - dc->props =3D aspeed_sdmc_properties; > + device_class_set_props(dc, aspeed_sdmc_properties); > } > =20 > static const TypeInfo aspeed_sdmc_info =3D { > diff --git a/hw/misc/bcm2835_property.c b/hw/misc/bcm2835_property.c > index 70eaafd..522d580 100644 > --- a/hw/misc/bcm2835_property.c > +++ b/hw/misc/bcm2835_property.c > @@ -419,7 +419,7 @@ static void bcm2835_property_class_init(ObjectClass *= klass, void *data) > { > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > - dc->props =3D bcm2835_property_props; > + device_class_set_props(dc, bcm2835_property_props); > dc->realize =3D bcm2835_property_realize; > dc->vmsd =3D &vmstate_bcm2835_property; > } > diff --git a/hw/misc/debugexit.c b/hw/misc/debugexit.c > index 84fa1a5..f729901 100644 > --- a/hw/misc/debugexit.c > +++ b/hw/misc/debugexit.c > @@ -58,7 +58,7 @@ static void debug_exit_class_initfn(ObjectClass *klass,= void *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > dc->realize =3D debug_exit_realizefn; > - dc->props =3D debug_exit_properties; > + device_class_set_props(dc, debug_exit_properties); > set_bit(DEVICE_CATEGORY_MISC, dc->categories); > } > =20 > diff --git a/hw/misc/eccmemctl.c b/hw/misc/eccmemctl.c > index a0071f3..b9c0e17 100644 > --- a/hw/misc/eccmemctl.c > +++ b/hw/misc/eccmemctl.c > @@ -326,7 +326,7 @@ static void ecc_class_init(ObjectClass *klass, void *= data) > k->init =3D ecc_init1; > dc->reset =3D ecc_reset; > dc->vmsd =3D &vmstate_ecc; > - dc->props =3D ecc_properties; > + device_class_set_props(dc, ecc_properties); > } > =20 > static const TypeInfo ecc_info =3D { > diff --git a/hw/misc/ivshmem.c b/hw/misc/ivshmem.c > index 230e51b..81a5796 100644 > --- a/hw/misc/ivshmem.c > +++ b/hw/misc/ivshmem.c > @@ -1074,7 +1074,7 @@ static void ivshmem_plain_class_init(ObjectClass *k= lass, void *data) > =20 > k->realize =3D ivshmem_plain_realize; > k->exit =3D ivshmem_plain_exit; > - dc->props =3D ivshmem_plain_properties; > + device_class_set_props(dc, ivshmem_plain_properties); > dc->vmsd =3D &ivshmem_plain_vmsd; > } > =20 > @@ -1136,7 +1136,7 @@ static void ivshmem_doorbell_class_init(ObjectClass= *klass, void *data) > PCIDeviceClass *k =3D PCI_DEVICE_CLASS(klass); > =20 > k->realize =3D ivshmem_doorbell_realize; > - dc->props =3D ivshmem_doorbell_properties; > + device_class_set_props(dc, ivshmem_doorbell_properties); > dc->vmsd =3D &ivshmem_doorbell_vmsd; > } > =20 > @@ -1304,7 +1304,7 @@ static void ivshmem_class_init(ObjectClass *klass, = void *data) > k->realize =3D ivshmem_realize; > k->revision =3D 0; > dc->desc =3D "Inter-VM shared memory (legacy)"; > - dc->props =3D ivshmem_properties; > + device_class_set_props(dc, ivshmem_properties); > dc->vmsd =3D &ivshmem_vmsd; > } > =20 > diff --git a/hw/misc/macio/cuda.c b/hw/misc/macio/cuda.c > index 05c02fb..6e0dd0c 100644 > --- a/hw/misc/macio/cuda.c > +++ b/hw/misc/macio/cuda.c > @@ -945,7 +945,7 @@ static void cuda_class_init(ObjectClass *oc, void *da= ta) > dc->realize =3D cuda_realizefn; > dc->reset =3D cuda_reset; > dc->vmsd =3D &vmstate_cuda; > - dc->props =3D cuda_properties; > + device_class_set_props(dc, cuda_properties); > set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories); > } > =20 > diff --git a/hw/misc/macio/macio.c b/hw/misc/macio/macio.c > index 5d57f45..8708985 100644 > --- a/hw/misc/macio/macio.c > +++ b/hw/misc/macio/macio.c > @@ -388,7 +388,7 @@ static void macio_class_init(ObjectClass *klass, void= *data) > =20 > k->vendor_id =3D PCI_VENDOR_ID_APPLE; > k->class_id =3D PCI_CLASS_OTHERS << 8; > - dc->props =3D macio_properties; > + device_class_set_props(dc, macio_properties); > set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories); > } > =20 > diff --git a/hw/misc/mips_cmgcr.c b/hw/misc/mips_cmgcr.c > index b3ba166..c103ded 100644 > --- a/hw/misc/mips_cmgcr.c > +++ b/hw/misc/mips_cmgcr.c > @@ -224,7 +224,7 @@ static void mips_gcr_realize(DeviceState *dev, Error = **errp) > static void mips_gcr_class_init(ObjectClass *klass, void *data) > { > DeviceClass *dc =3D DEVICE_CLASS(klass); > - dc->props =3D mips_gcr_properties; > + device_class_set_props(dc, mips_gcr_properties); > dc->vmsd =3D &vmstate_mips_gcr; > dc->reset =3D mips_gcr_reset; > dc->realize =3D mips_gcr_realize; > diff --git a/hw/misc/mips_cpc.c b/hw/misc/mips_cpc.c > index 6d34574..52661ca 100644 > --- a/hw/misc/mips_cpc.c > +++ b/hw/misc/mips_cpc.c > @@ -159,7 +159,7 @@ static void mips_cpc_class_init(ObjectClass *klass, v= oid *data) > dc->realize =3D mips_cpc_realize; > dc->reset =3D mips_cpc_reset; > dc->vmsd =3D &vmstate_mips_cpc; > - dc->props =3D mips_cpc_properties; > + device_class_set_props(dc, mips_cpc_properties); > } > =20 > static const TypeInfo mips_cpc_info =3D { > diff --git a/hw/misc/mips_itu.c b/hw/misc/mips_itu.c > index ef935b5..a148a28 100644 > --- a/hw/misc/mips_itu.c > +++ b/hw/misc/mips_itu.c > @@ -503,7 +503,7 @@ static void mips_itu_class_init(ObjectClass *klass, v= oid *data) > { > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > - dc->props =3D mips_itu_properties; > + device_class_set_props(dc, mips_itu_properties); > dc->realize =3D mips_itu_realize; > dc->reset =3D mips_itu_reset; > } > diff --git a/hw/misc/pvpanic.c b/hw/misc/pvpanic.c > index 0ac1e6a..14b7cfb 100644 > --- a/hw/misc/pvpanic.c > +++ b/hw/misc/pvpanic.c > @@ -124,7 +124,7 @@ static void pvpanic_isa_class_init(ObjectClass *klass= , void *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > dc->realize =3D pvpanic_isa_realizefn; > - dc->props =3D pvpanic_isa_properties; > + device_class_set_props(dc, pvpanic_isa_properties); > set_bit(DEVICE_CATEGORY_MISC, dc->categories); > } > =20 > diff --git a/hw/net/allwinner_emac.c b/hw/net/allwinner_emac.c > index 50e8361..2132d8a 100644 > --- a/hw/net/allwinner_emac.c > +++ b/hw/net/allwinner_emac.c > @@ -514,7 +514,7 @@ static void aw_emac_class_init(ObjectClass *klass, vo= id *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > dc->realize =3D aw_emac_realize; > - dc->props =3D aw_emac_properties; > + device_class_set_props(dc, aw_emac_properties); > dc->reset =3D aw_emac_reset; > dc->vmsd =3D &vmstate_aw_emac; > } > diff --git a/hw/net/cadence_gem.c b/hw/net/cadence_gem.c > index 7915732..d0c0b26 100644 > --- a/hw/net/cadence_gem.c > +++ b/hw/net/cadence_gem.c > @@ -1522,7 +1522,7 @@ static void gem_class_init(ObjectClass *klass, void= *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > dc->realize =3D gem_realize; > - dc->props =3D gem_properties; > + device_class_set_props(dc, gem_properties); > dc->vmsd =3D &vmstate_cadence_gem; > dc->reset =3D gem_reset; > } > diff --git a/hw/net/dp8393x.c b/hw/net/dp8393x.c > index 17f0338..a165886 100644 > --- a/hw/net/dp8393x.c > +++ b/hw/net/dp8393x.c > @@ -891,7 +891,7 @@ static void dp8393x_class_init(ObjectClass *klass, vo= id *data) > dc->realize =3D dp8393x_realize; > dc->reset =3D dp8393x_reset; > dc->vmsd =3D &vmstate_dp8393x; > - dc->props =3D dp8393x_properties; > + device_class_set_props(dc, dp8393x_properties); > /* Reason: dma_mr property can't be set */ > dc->cannot_instantiate_with_device_add_yet =3D true; > } > diff --git a/hw/net/e1000.c b/hw/net/e1000.c > index 9324949..0df3f2f 100644 > --- a/hw/net/e1000.c > +++ b/hw/net/e1000.c > @@ -1667,7 +1667,7 @@ static void e1000_class_init(ObjectClass *klass, vo= id *data) > dc->desc =3D "Intel Gigabit Ethernet"; > dc->reset =3D qdev_e1000_reset; > dc->vmsd =3D &vmstate_e1000; > - dc->props =3D e1000_properties; > + device_class_set_props(dc, e1000_properties); > } > =20 > static void e1000_instance_init(Object *obj) > diff --git a/hw/net/e1000e.c b/hw/net/e1000e.c > index 4994e1c..032d90f 100644 > --- a/hw/net/e1000e.c > +++ b/hw/net/e1000e.c > @@ -671,7 +671,6 @@ static void e1000e_class_init(ObjectClass *class, voi= d *data) > dc->desc =3D "Intel 82574L GbE Controller"; > dc->reset =3D e1000e_qdev_reset; > dc->vmsd =3D &e1000e_vmstate; > - dc->props =3D e1000e_properties; > =20 > e1000e_prop_disable_vnet =3D qdev_prop_uint8; > e1000e_prop_disable_vnet.description =3D "Do not use virtio headers,= " > @@ -684,6 +683,8 @@ static void e1000e_class_init(ObjectClass *class, voi= d *data) > e1000e_prop_subsys =3D qdev_prop_uint16; > e1000e_prop_subsys.description =3D "PCI device Subsystem ID"; > =20 > + device_class_set_props(dc, e1000e_properties); > + > set_bit(DEVICE_CATEGORY_NETWORK, dc->categories); > } > =20 > diff --git a/hw/net/eepro100.c b/hw/net/eepro100.c > index 4bf71f2..9de9169 100644 > --- a/hw/net/eepro100.c > +++ b/hw/net/eepro100.c > @@ -2082,7 +2082,7 @@ static void eepro100_class_init(ObjectClass *klass,= void *data) > info =3D eepro100_get_class_by_name(object_class_get_name(klass)); > =20 > set_bit(DEVICE_CATEGORY_NETWORK, dc->categories); > - dc->props =3D e100_properties; > + device_class_set_props(dc, e100_properties); > dc->desc =3D info->desc; > k->vendor_id =3D PCI_VENDOR_ID_INTEL; > k->class_id =3D PCI_CLASS_NETWORK_ETHERNET; > diff --git a/hw/net/etraxfs_eth.c b/hw/net/etraxfs_eth.c > index efaa49f..2070e75 100644 > --- a/hw/net/etraxfs_eth.c > +++ b/hw/net/etraxfs_eth.c > @@ -628,7 +628,7 @@ static void etraxfs_eth_class_init(ObjectClass *klass= , void *data) > SysBusDeviceClass *k =3D SYS_BUS_DEVICE_CLASS(klass); > =20 > k->init =3D fs_eth_init; > - dc->props =3D etraxfs_eth_properties; > + device_class_set_props(dc, etraxfs_eth_properties); > /* Reason: pointer properties "dma_out", "dma_in" */ > dc->cannot_instantiate_with_device_add_yet =3D true; > } > diff --git a/hw/net/fsl_etsec/etsec.c b/hw/net/fsl_etsec/etsec.c > index 951c5f0..ca3e78f 100644 > --- a/hw/net/fsl_etsec/etsec.c > +++ b/hw/net/fsl_etsec/etsec.c > @@ -416,7 +416,7 @@ static void etsec_class_init(ObjectClass *klass, void= *data) > =20 > dc->realize =3D etsec_realize; > dc->reset =3D etsec_reset; > - dc->props =3D etsec_properties; > + device_class_set_props(dc, etsec_properties); > } > =20 > static TypeInfo etsec_info =3D { > diff --git a/hw/net/imx_fec.c b/hw/net/imx_fec.c > index 50c7564..a4ac141 100644 > --- a/hw/net/imx_fec.c > +++ b/hw/net/imx_fec.c > @@ -1189,7 +1189,7 @@ static void imx_eth_class_init(ObjectClass *klass, = void *data) > =20 > dc->vmsd =3D &vmstate_imx_eth; > dc->reset =3D imx_eth_reset; > - dc->props =3D imx_eth_properties; > + device_class_set_props(dc, imx_eth_properties); > dc->realize =3D imx_eth_realize; > dc->desc =3D "i.MX FEC/ENET Ethernet Controller"; > } > diff --git a/hw/net/lan9118.c b/hw/net/lan9118.c > index 3db8937..cf8b4f0 100644 > --- a/hw/net/lan9118.c > +++ b/hw/net/lan9118.c > @@ -1365,7 +1365,7 @@ static void lan9118_class_init(ObjectClass *klass, = void *data) > =20 > k->init =3D lan9118_init1; > dc->reset =3D lan9118_reset; > - dc->props =3D lan9118_properties; > + device_class_set_props(dc, lan9118_properties); > dc->vmsd =3D &vmstate_lan9118; > } > =20 > diff --git a/hw/net/lance.c b/hw/net/lance.c > index 573d724..c4796fa 100644 > --- a/hw/net/lance.c > +++ b/hw/net/lance.c > @@ -163,7 +163,7 @@ static void lance_class_init(ObjectClass *klass, void= *data) > dc->fw_name =3D "ethernet"; > dc->reset =3D lance_reset; > dc->vmsd =3D &vmstate_lance; > - dc->props =3D lance_properties; > + device_class_set_props(dc, lance_properties); > /* Reason: pointer property "dma" */ > dc->cannot_instantiate_with_device_add_yet =3D true; > } > diff --git a/hw/net/milkymist-minimac2.c b/hw/net/milkymist-minimac2.c > index c3a12e1..6aaeaf0 100644 > --- a/hw/net/milkymist-minimac2.c > +++ b/hw/net/milkymist-minimac2.c > @@ -526,7 +526,7 @@ static void milkymist_minimac2_class_init(ObjectClass= *klass, void *data) > k->init =3D milkymist_minimac2_init; > dc->reset =3D milkymist_minimac2_reset; > dc->vmsd =3D &vmstate_milkymist_minimac2; > - dc->props =3D milkymist_minimac2_properties; > + device_class_set_props(dc, milkymist_minimac2_properties); > } > =20 > static const TypeInfo milkymist_minimac2_info =3D { > diff --git a/hw/net/mipsnet.c b/hw/net/mipsnet.c > index 5a63df7..3cc735d 100644 > --- a/hw/net/mipsnet.c > +++ b/hw/net/mipsnet.c > @@ -274,7 +274,7 @@ static void mipsnet_class_init(ObjectClass *klass, vo= id *data) > dc->desc =3D "MIPS Simulator network device"; > dc->reset =3D mipsnet_sysbus_reset; > dc->vmsd =3D &vmstate_mipsnet; > - dc->props =3D mipsnet_properties; > + device_class_set_props(dc, mipsnet_properties); > } > =20 > static const TypeInfo mipsnet_info =3D { > diff --git a/hw/net/ne2000-isa.c b/hw/net/ne2000-isa.c > index f345533..23f9c6f 100644 > --- a/hw/net/ne2000-isa.c > +++ b/hw/net/ne2000-isa.c > @@ -90,7 +90,7 @@ static void isa_ne2000_class_initfn(ObjectClass *klass,= void *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > dc->realize =3D isa_ne2000_realizefn; > - dc->props =3D ne2000_isa_properties; > + device_class_set_props(dc, ne2000_isa_properties); > dc->vmsd =3D &vmstate_isa_ne2000; > set_bit(DEVICE_CATEGORY_NETWORK, dc->categories); > } > diff --git a/hw/net/ne2000.c b/hw/net/ne2000.c > index 798d681..32c0bd5 100644 > --- a/hw/net/ne2000.c > +++ b/hw/net/ne2000.c > @@ -776,7 +776,7 @@ static void ne2000_class_init(ObjectClass *klass, voi= d *data) > k->device_id =3D PCI_DEVICE_ID_REALTEK_8029; > k->class_id =3D PCI_CLASS_NETWORK_ETHERNET; > dc->vmsd =3D &vmstate_pci_ne2000; > - dc->props =3D ne2000_properties; > + device_class_set_props(dc, ne2000_properties); > set_bit(DEVICE_CATEGORY_NETWORK, dc->categories); > } > =20 > diff --git a/hw/net/opencores_eth.c b/hw/net/opencores_eth.c > index 268d6a7..6084502 100644 > --- a/hw/net/opencores_eth.c > +++ b/hw/net/opencores_eth.c > @@ -755,7 +755,7 @@ static void open_eth_class_init(ObjectClass *klass, v= oid *data) > set_bit(DEVICE_CATEGORY_NETWORK, dc->categories); > dc->desc =3D "Opencores 10/100 Mbit Ethernet"; > dc->reset =3D qdev_open_eth_reset; > - dc->props =3D open_eth_properties; > + device_class_set_props(dc, open_eth_properties); > } > =20 > static const TypeInfo open_eth_info =3D { > diff --git a/hw/net/pcnet-pci.c b/hw/net/pcnet-pci.c > index 0acf8a4..e52e970 100644 > --- a/hw/net/pcnet-pci.c > +++ b/hw/net/pcnet-pci.c > @@ -355,7 +355,7 @@ static void pcnet_class_init(ObjectClass *klass, void= *data) > k->class_id =3D PCI_CLASS_NETWORK_ETHERNET; > dc->reset =3D pci_reset; > dc->vmsd =3D &vmstate_pci_pcnet; > - dc->props =3D pcnet_properties; > + device_class_set_props(dc, pcnet_properties); > set_bit(DEVICE_CATEGORY_NETWORK, dc->categories); > } > =20 > diff --git a/hw/net/rocker/rocker.c b/hw/net/rocker/rocker.c > index e9d215a..8505e75 100644 > --- a/hw/net/rocker/rocker.c > +++ b/hw/net/rocker/rocker.c > @@ -1565,7 +1565,7 @@ static void rocker_class_init(ObjectClass *klass, v= oid *data) > set_bit(DEVICE_CATEGORY_NETWORK, dc->categories); > dc->desc =3D "Rocker Switch"; > dc->reset =3D rocker_reset; > - dc->props =3D rocker_properties; > + device_class_set_props(dc, rocker_properties); > dc->vmsd =3D &rocker_vmsd; > } > =20 > diff --git a/hw/net/rtl8139.c b/hw/net/rtl8139.c > index f05e59c..91dc9a5 100644 > --- a/hw/net/rtl8139.c > +++ b/hw/net/rtl8139.c > @@ -3471,7 +3471,7 @@ static void rtl8139_class_init(ObjectClass *klass, = void *data) > k->class_id =3D PCI_CLASS_NETWORK_ETHERNET; > dc->reset =3D rtl8139_reset; > dc->vmsd =3D &vmstate_rtl8139; > - dc->props =3D rtl8139_properties; > + device_class_set_props(dc, rtl8139_properties); > set_bit(DEVICE_CATEGORY_NETWORK, dc->categories); > } > =20 > diff --git a/hw/net/smc91c111.c b/hw/net/smc91c111.c > index 3b16dcf..49533af 100644 > --- a/hw/net/smc91c111.c > +++ b/hw/net/smc91c111.c > @@ -791,7 +791,7 @@ static void smc91c111_class_init(ObjectClass *klass, = void *data) > k->init =3D smc91c111_init1; > dc->reset =3D smc91c111_reset; > dc->vmsd =3D &vmstate_smc91c111; > - dc->props =3D smc91c111_properties; > + device_class_set_props(dc, smc91c111_properties); > } > =20 > static const TypeInfo smc91c111_info =3D { > diff --git a/hw/net/spapr_llan.c b/hw/net/spapr_llan.c > index 01ecb02..2783dcd 100644 > --- a/hw/net/spapr_llan.c > +++ b/hw/net/spapr_llan.c > @@ -849,7 +849,7 @@ static void spapr_vlan_class_init(ObjectClass *klass,= void *data) > k->dt_compatible =3D "IBM,l-lan"; > k->signal_mask =3D 0x1; > set_bit(DEVICE_CATEGORY_NETWORK, dc->categories); > - dc->props =3D spapr_vlan_properties; > + device_class_set_props(dc, spapr_vlan_properties); > k->rtce_window_size =3D 0x10000000; > dc->vmsd =3D &vmstate_spapr_llan; > } > diff --git a/hw/net/stellaris_enet.c b/hw/net/stellaris_enet.c > index 957730e..5211d40 100644 > --- a/hw/net/stellaris_enet.c > +++ b/hw/net/stellaris_enet.c > @@ -495,7 +495,7 @@ static void stellaris_enet_class_init(ObjectClass *kl= ass, void *data) > SysBusDeviceClass *k =3D SYS_BUS_DEVICE_CLASS(klass); > =20 > k->init =3D stellaris_enet_init; > - dc->props =3D stellaris_enet_properties; > + device_class_set_props(dc, stellaris_enet_properties); > dc->vmsd =3D &vmstate_stellaris_enet; > } > =20 > diff --git a/hw/net/virtio-net.c b/hw/net/virtio-net.c > index 06bfe4b..252313b 100644 > --- a/hw/net/virtio-net.c > +++ b/hw/net/virtio-net.c > @@ -1926,7 +1926,7 @@ static void virtio_net_class_init(ObjectClass *klas= s, void *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > VirtioDeviceClass *vdc =3D VIRTIO_DEVICE_CLASS(klass); > =20 > - dc->props =3D virtio_net_properties; > + device_class_set_props(dc, virtio_net_properties); > dc->vmsd =3D &vmstate_virtio_net; > set_bit(DEVICE_CATEGORY_NETWORK, dc->categories); > vdc->realize =3D virtio_net_device_realize; > diff --git a/hw/net/vmxnet3.c b/hw/net/vmxnet3.c > index 92f6af9..e452413 100644 > --- a/hw/net/vmxnet3.c > +++ b/hw/net/vmxnet3.c > @@ -2715,7 +2715,7 @@ static void vmxnet3_class_init(ObjectClass *class, = void *data) > dc->desc =3D "VMWare Paravirtualized Ethernet v3"; > dc->reset =3D vmxnet3_qdev_reset; > dc->vmsd =3D &vmstate_vmxnet3; > - dc->props =3D vmxnet3_properties; > + device_class_set_props(dc, vmxnet3_properties); > set_bit(DEVICE_CATEGORY_NETWORK, dc->categories); > } > =20 > diff --git a/hw/net/xgmac.c b/hw/net/xgmac.c > index 46b1aa1..a7992f2 100644 > --- a/hw/net/xgmac.c > +++ b/hw/net/xgmac.c > @@ -415,7 +415,7 @@ static void xgmac_enet_class_init(ObjectClass *klass,= void *data) > =20 > sbc->init =3D xgmac_enet_init; > dc->vmsd =3D &vmstate_xgmac; > - dc->props =3D xgmac_properties; > + device_class_set_props(dc, xgmac_properties); > } > =20 > static const TypeInfo xgmac_enet_info =3D { > diff --git a/hw/net/xilinx_axienet.c b/hw/net/xilinx_axienet.c > index b670184..4586b20 100644 > --- a/hw/net/xilinx_axienet.c > +++ b/hw/net/xilinx_axienet.c > @@ -1031,7 +1031,7 @@ static void xilinx_enet_class_init(ObjectClass *kla= ss, void *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > dc->realize =3D xilinx_enet_realize; > - dc->props =3D xilinx_enet_properties; > + device_class_set_props(dc, xilinx_enet_properties); > dc->reset =3D xilinx_axienet_reset; > } > =20 > diff --git a/hw/net/xilinx_ethlite.c b/hw/net/xilinx_ethlite.c > index 35de353..a8e0a0a 100644 > --- a/hw/net/xilinx_ethlite.c > +++ b/hw/net/xilinx_ethlite.c > @@ -261,7 +261,7 @@ static void xilinx_ethlite_class_init(ObjectClass *kl= ass, void *data) > =20 > dc->realize =3D xilinx_ethlite_realize; > dc->reset =3D xilinx_ethlite_reset; > - dc->props =3D xilinx_ethlite_properties; > + device_class_set_props(dc, xilinx_ethlite_properties); > } > =20 > static const TypeInfo xilinx_ethlite_info =3D { > diff --git a/hw/nvram/ds1225y.c b/hw/nvram/ds1225y.c > index 57d5ab2..78fc9cf 100644 > --- a/hw/nvram/ds1225y.c > +++ b/hw/nvram/ds1225y.c > @@ -152,7 +152,7 @@ static void nvram_sysbus_class_init(ObjectClass *klas= s, void *data) > =20 > k->init =3D nvram_sysbus_initfn; > dc->vmsd =3D &vmstate_nvram; > - dc->props =3D nvram_sysbus_properties; > + device_class_set_props(dc, nvram_sysbus_properties); > } > =20 > static const TypeInfo nvram_sysbus_info =3D { > diff --git a/hw/nvram/fw_cfg.c b/hw/nvram/fw_cfg.c > index 92aa563..aa1f040 100644 > --- a/hw/nvram/fw_cfg.c > +++ b/hw/nvram/fw_cfg.c > @@ -1029,7 +1029,7 @@ static void fw_cfg_io_class_init(ObjectClass *klass= , void *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > dc->realize =3D fw_cfg_io_realize; > - dc->props =3D fw_cfg_io_properties; > + device_class_set_props(dc, fw_cfg_io_properties); > } > =20 > static const TypeInfo fw_cfg_io_info =3D { > @@ -1086,7 +1086,7 @@ static void fw_cfg_mem_class_init(ObjectClass *klas= s, void *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > dc->realize =3D fw_cfg_mem_realize; > - dc->props =3D fw_cfg_mem_properties; > + device_class_set_props(dc, fw_cfg_mem_properties); > } > =20 > static const TypeInfo fw_cfg_mem_info =3D { > diff --git a/hw/nvram/mac_nvram.c b/hw/nvram/mac_nvram.c > index 63f9ed1..39ac159 100644 > --- a/hw/nvram/mac_nvram.c > +++ b/hw/nvram/mac_nvram.c > @@ -125,7 +125,7 @@ static void macio_nvram_class_init(ObjectClass *oc, v= oid *data) > dc->unrealize =3D macio_nvram_unrealizefn; > dc->reset =3D macio_nvram_reset; > dc->vmsd =3D &vmstate_macio_nvram; > - dc->props =3D macio_nvram_properties; > + device_class_set_props(dc, macio_nvram_properties); > set_bit(DEVICE_CATEGORY_MISC, dc->categories); > } > =20 > diff --git a/hw/nvram/spapr_nvram.c b/hw/nvram/spapr_nvram.c > index eb42ea3..ee8a0c3 100644 > --- a/hw/nvram/spapr_nvram.c > +++ b/hw/nvram/spapr_nvram.c > @@ -246,7 +246,7 @@ static void spapr_nvram_class_init(ObjectClass *klass= , void *data) > k->dt_type =3D "nvram"; > k->dt_compatible =3D "qemu,spapr-nvram"; > set_bit(DEVICE_CATEGORY_MISC, dc->categories); > - dc->props =3D spapr_nvram_properties; > + device_class_set_props(dc, spapr_nvram_properties); > dc->vmsd =3D &vmstate_spapr_nvram; > } > =20 > diff --git a/hw/pci-bridge/ioh3420.c b/hw/pci-bridge/ioh3420.c > index c8b5ac4..ed9f827 100644 > --- a/hw/pci-bridge/ioh3420.c > +++ b/hw/pci-bridge/ioh3420.c > @@ -202,7 +202,7 @@ static void ioh3420_class_init(ObjectClass *klass, vo= id *data) > dc->desc =3D "Intel IOH device id 3420 PCIE Root Port"; > dc->reset =3D ioh3420_reset; > dc->vmsd =3D &vmstate_ioh3420; > - dc->props =3D ioh3420_props; > + device_class_set_props(dc, ioh3420_props); > } > =20 > static const TypeInfo ioh3420_info =3D { > diff --git a/hw/pci-bridge/pci_bridge_dev.c b/hw/pci-bridge/pci_bridge_de= v.c > index 5dbd933..629df64 100644 > --- a/hw/pci-bridge/pci_bridge_dev.c > +++ b/hw/pci-bridge/pci_bridge_dev.c > @@ -225,7 +225,7 @@ static void pci_bridge_dev_class_init(ObjectClass *kl= ass, void *data) > k->is_bridge =3D 1, > dc->desc =3D "Standard PCI Bridge"; > dc->reset =3D qdev_pci_bridge_dev_reset; > - dc->props =3D pci_bridge_dev_properties; > + device_class_set_props(dc, pci_bridge_dev_properties); > dc->vmsd =3D &pci_bridge_dev_vmstate; > set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories); > hc->plug =3D pci_bridge_dev_hotplug_cb; > diff --git a/hw/pci-bridge/pci_expander_bridge.c b/hw/pci-bridge/pci_expa= nder_bridge.c > index 1cc598f..d5660b9 100644 > --- a/hw/pci-bridge/pci_expander_bridge.c > +++ b/hw/pci-bridge/pci_expander_bridge.c > @@ -307,7 +307,7 @@ static void pxb_dev_class_init(ObjectClass *klass, vo= id *data) > k->class_id =3D PCI_CLASS_BRIDGE_HOST; > =20 > dc->desc =3D "PCI Expander Bridge"; > - dc->props =3D pxb_dev_properties; > + device_class_set_props(dc, pxb_dev_properties); > dc->hotpluggable =3D false; > set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories); > } > @@ -341,7 +341,7 @@ static void pxb_pcie_dev_class_init(ObjectClass *klas= s, void *data) > k->class_id =3D PCI_CLASS_BRIDGE_HOST; > =20 > dc->desc =3D "PCI Express Expander Bridge"; > - dc->props =3D pxb_dev_properties; > + device_class_set_props(dc, pxb_dev_properties); > dc->hotpluggable =3D false; > set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories); > } > diff --git a/hw/pci-bridge/xio3130_downstream.c b/hw/pci-bridge/xio3130_d= ownstream.c > index cef6e13..4b3d136 100644 > --- a/hw/pci-bridge/xio3130_downstream.c > +++ b/hw/pci-bridge/xio3130_downstream.c > @@ -188,7 +188,7 @@ static void xio3130_downstream_class_init(ObjectClass= *klass, void *data) > dc->desc =3D "TI X3130 Downstream Port of PCI Express Switch"; > dc->reset =3D xio3130_downstream_reset; > dc->vmsd =3D &vmstate_xio3130_downstream; > - dc->props =3D xio3130_downstream_props; > + device_class_set_props(dc, xio3130_downstream_props); > } > =20 > static const TypeInfo xio3130_downstream_info =3D { > diff --git a/hw/pci-host/piix.c b/hw/pci-host/piix.c > index f9218aa..0b41f62 100644 > --- a/hw/pci-host/piix.c > +++ b/hw/pci-host/piix.c > @@ -872,7 +872,7 @@ static void i440fx_pcihost_class_init(ObjectClass *kl= ass, void *data) > hc->root_bus_path =3D i440fx_pcihost_root_bus_path; > dc->realize =3D i440fx_pcihost_realize; > dc->fw_name =3D "pci"; > - dc->props =3D i440fx_props; > + device_class_set_props(dc, i440fx_props); > /* Reason: needs to be wired up by pc_init1 */ > dc->cannot_instantiate_with_device_add_yet =3D true; > } > diff --git a/hw/pci-host/ppce500.c b/hw/pci-host/ppce500.c > index e502bc0..9c1bfc3 100644 > --- a/hw/pci-host/ppce500.c > +++ b/hw/pci-host/ppce500.c > @@ -531,7 +531,7 @@ static void e500_pcihost_class_init(ObjectClass *klas= s, void *data) > =20 > k->init =3D e500_pcihost_initfn; > set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories); > - dc->props =3D pcihost_properties; > + device_class_set_props(dc, pcihost_properties); > dc->vmsd =3D &vmstate_ppce500_pci; > } > =20 > diff --git a/hw/pci-host/prep.c b/hw/pci-host/prep.c > index 5580293..ce55eb7 100644 > --- a/hw/pci-host/prep.c > +++ b/hw/pci-host/prep.c > @@ -386,7 +386,7 @@ static void raven_pcihost_class_init(ObjectClass *kla= ss, void *data) > =20 > set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories); > dc->realize =3D raven_pcihost_realizefn; > - dc->props =3D raven_pcihost_properties; > + device_class_set_props(dc, raven_pcihost_properties); > dc->fw_name =3D "pci"; > } > =20 > diff --git a/hw/pci-host/q35.c b/hw/pci-host/q35.c > index 344f77b..72cabb9 100644 > --- a/hw/pci-host/q35.c > +++ b/hw/pci-host/q35.c > @@ -154,7 +154,7 @@ static void q35_host_class_init(ObjectClass *klass, v= oid *data) > =20 > hc->root_bus_path =3D q35_host_root_bus_path; > dc->realize =3D q35_host_realize; > - dc->props =3D mch_props; > + device_class_set_props(dc, mch_props); > /* Reason: needs to be wired up by pc_q35_init */ > dc->cannot_instantiate_with_device_add_yet =3D true; > set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories); > diff --git a/hw/pci-host/versatile.c b/hw/pci-host/versatile.c > index 467cbb9..1c4b9e3 100644 > --- a/hw/pci-host/versatile.c > +++ b/hw/pci-host/versatile.c > @@ -502,7 +502,7 @@ static void pci_vpb_class_init(ObjectClass *klass, vo= id *data) > dc->realize =3D pci_vpb_realize; > dc->reset =3D pci_vpb_reset; > dc->vmsd =3D &pci_vpb_vmstate; > - dc->props =3D pci_vpb_properties; > + device_class_set_props(dc, pci_vpb_properties); > /* Reason: object_unref() hangs */ > dc->cannot_destroy_with_object_finalize_yet =3D true; > } > diff --git a/hw/pci/pci.c b/hw/pci/pci.c > index 24fae16..8d93a47 100644 > --- a/hw/pci/pci.c > +++ b/hw/pci/pci.c > @@ -2492,7 +2492,7 @@ static void pci_device_class_init(ObjectClass *klas= s, void *data) > k->realize =3D pci_qdev_realize; > k->unrealize =3D pci_qdev_unrealize; > k->bus_type =3D TYPE_PCI_BUS; > - k->props =3D pci_props; > + device_class_set_props(k, pci_props); > pc->realize =3D pci_default_realize; > } > =20 > diff --git a/hw/pci/pcie_port.c b/hw/pci/pcie_port.c > index 6432b9a..8bcca7c 100644 > --- a/hw/pci/pcie_port.c > +++ b/hw/pci/pcie_port.c > @@ -131,7 +131,7 @@ static void pcie_port_class_init(ObjectClass *oc, voi= d *data) > { > DeviceClass *dc =3D DEVICE_CLASS(oc); > =20 > - dc->props =3D pcie_port_props; > + device_class_set_props(dc, pcie_port_props); > } > =20 > static const TypeInfo pcie_port_type_info =3D { > @@ -153,7 +153,7 @@ static void pcie_slot_class_init(ObjectClass *oc, voi= d *data) > DeviceClass *dc =3D DEVICE_CLASS(oc); > HotplugHandlerClass *hc =3D HOTPLUG_HANDLER_CLASS(oc); > =20 > - dc->props =3D pcie_slot_props; > + device_class_set_props(dc, pcie_slot_props); > hc->plug =3D pcie_cap_slot_hotplug_cb; > hc->unplug_request =3D pcie_cap_slot_hot_unplug_request_cb; > } > diff --git a/hw/ppc/pnv.c b/hw/ppc/pnv.c > index 82276e0..94aef9c 100644 > --- a/hw/ppc/pnv.c > +++ b/hw/ppc/pnv.c > @@ -721,7 +721,7 @@ static void pnv_chip_class_init(ObjectClass *klass, v= oid *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > dc->realize =3D pnv_chip_realize; > - dc->props =3D pnv_chip_properties; > + device_class_set_props(dc, pnv_chip_properties); > dc->desc =3D "PowerNV Chip"; > } > =20 > diff --git a/hw/ppc/pnv_core.c b/hw/ppc/pnv_core.c > index 2acda96..7ec9d26 100644 > --- a/hw/ppc/pnv_core.c > +++ b/hw/ppc/pnv_core.c > @@ -190,7 +190,7 @@ static void pnv_core_class_init(ObjectClass *oc, void= *data) > PnvCoreClass *pcc =3D PNV_CORE_CLASS(oc); > =20 > dc->realize =3D pnv_core_realize; > - dc->props =3D pnv_core_properties; > + device_class_set_props(dc, pnv_core_properties); > pcc->cpu_oc =3D cpu_class_by_name(TYPE_POWERPC_CPU, data); > } > =20 > diff --git a/hw/ppc/spapr_pci.c b/hw/ppc/spapr_pci.c > index 7cde30e..341a04b 100644 > --- a/hw/ppc/spapr_pci.c > +++ b/hw/ppc/spapr_pci.c > @@ -1696,7 +1696,7 @@ static void spapr_phb_class_init(ObjectClass *klass= , void *data) > =20 > hc->root_bus_path =3D spapr_phb_root_bus_path; > dc->realize =3D spapr_phb_realize; > - dc->props =3D spapr_phb_properties; > + device_class_set_props(dc, spapr_phb_properties); > dc->reset =3D spapr_phb_reset; > dc->vmsd =3D &vmstate_spapr_pci; > set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories); > diff --git a/hw/ppc/spapr_pci_vfio.c b/hw/ppc/spapr_pci_vfio.c > index 8448e0b..605a9c1 100644 > --- a/hw/ppc/spapr_pci_vfio.c > +++ b/hw/ppc/spapr_pci_vfio.c > @@ -223,7 +223,7 @@ static void spapr_phb_vfio_class_init(ObjectClass *kl= ass, void *data) > { > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > - dc->props =3D spapr_phb_vfio_properties; > + device_class_set_props(dc, spapr_phb_vfio_properties); > } > =20 > static const TypeInfo spapr_phb_vfio_info =3D { > diff --git a/hw/ppc/spapr_rng.c b/hw/ppc/spapr_rng.c > index 80515eb..16091ab 100644 > --- a/hw/ppc/spapr_rng.c > +++ b/hw/ppc/spapr_rng.c > @@ -172,7 +172,7 @@ static void spapr_rng_class_init(ObjectClass *oc, voi= d *data) > =20 > dc->realize =3D spapr_rng_realize; > set_bit(DEVICE_CATEGORY_MISC, dc->categories); > - dc->props =3D spapr_rng_properties; > + device_class_set_props(dc, spapr_rng_properties); > dc->hotpluggable =3D false; > } > =20 > diff --git a/hw/ppc/spapr_vio.c b/hw/ppc/spapr_vio.c > index cc1e09c..2d23e16 100644 > --- a/hw/ppc/spapr_vio.c > +++ b/hw/ppc/spapr_vio.c > @@ -586,7 +586,7 @@ static void vio_spapr_device_class_init(ObjectClass *= klass, void *data) > k->realize =3D spapr_vio_busdev_realize; > k->reset =3D spapr_vio_busdev_reset; > k->bus_type =3D TYPE_SPAPR_VIO_BUS; > - k->props =3D spapr_vio_props; > + device_class_set_props(k, spapr_vio_props); > } > =20 > static const TypeInfo spapr_vio_type_info =3D { > diff --git a/hw/s390x/css-bridge.c b/hw/s390x/css-bridge.c > index 9a7f7ee..a332af8 100644 > --- a/hw/s390x/css-bridge.c > +++ b/hw/s390x/css-bridge.c > @@ -125,7 +125,7 @@ static void virtual_css_bridge_class_init(ObjectClass= *klass, void *data) > =20 > hc->unplug =3D ccw_device_unplug; > set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories); > - dc->props =3D virtual_css_bridge_properties; > + device_class_set_props(dc, virtual_css_bridge_properties); > } > =20 > static const TypeInfo virtual_css_bridge_info =3D { > diff --git a/hw/s390x/ipl.c b/hw/s390x/ipl.c > index 2e2664f..947cf12 100644 > --- a/hw/s390x/ipl.c > +++ b/hw/s390x/ipl.c > @@ -315,7 +315,7 @@ static void s390_ipl_class_init(ObjectClass *klass, v= oid *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > dc->realize =3D s390_ipl_realize; > - dc->props =3D s390_ipl_properties; > + device_class_set_props(dc, s390_ipl_properties); > dc->reset =3D s390_ipl_reset; > dc->vmsd =3D &vmstate_ipl; > set_bit(DEVICE_CATEGORY_MISC, dc->categories); > diff --git a/hw/s390x/s390-pci-bus.c b/hw/s390x/s390-pci-bus.c > index b7f8bca..9d8d13f 100644 > --- a/hw/s390x/s390-pci-bus.c > +++ b/hw/s390x/s390-pci-bus.c > @@ -942,7 +942,7 @@ static void s390_pci_device_class_init(ObjectClass *k= lass, void *data) > dc->reset =3D s390_pci_device_reset; > dc->bus_type =3D TYPE_S390_PCI_BUS; > dc->realize =3D s390_pci_device_realize; > - dc->props =3D s390_pci_device_properties; > + device_class_set_props(dc, s390_pci_device_properties); > } > =20 > static const TypeInfo s390_pci_device_info =3D { > diff --git a/hw/s390x/virtio-ccw.c b/hw/s390x/virtio-ccw.c > index ee136ab..6454fcb 100644 > --- a/hw/s390x/virtio-ccw.c > +++ b/hw/s390x/virtio-ccw.c > @@ -1347,7 +1347,7 @@ static void virtio_ccw_net_class_init(ObjectClass *= klass, void *data) > k->realize =3D virtio_ccw_net_realize; > k->exit =3D virtio_ccw_exit; > dc->reset =3D virtio_ccw_reset; > - dc->props =3D virtio_ccw_net_properties; > + device_class_set_props(dc, virtio_ccw_net_properties); > set_bit(DEVICE_CATEGORY_NETWORK, dc->categories); > } > =20 > @@ -1376,7 +1376,7 @@ static void virtio_ccw_blk_class_init(ObjectClass *= klass, void *data) > k->realize =3D virtio_ccw_blk_realize; > k->exit =3D virtio_ccw_exit; > dc->reset =3D virtio_ccw_reset; > - dc->props =3D virtio_ccw_blk_properties; > + device_class_set_props(dc, virtio_ccw_blk_properties); > set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); > } > =20 > @@ -1405,7 +1405,7 @@ static void virtio_ccw_serial_class_init(ObjectClas= s *klass, void *data) > k->realize =3D virtio_ccw_serial_realize; > k->exit =3D virtio_ccw_exit; > dc->reset =3D virtio_ccw_reset; > - dc->props =3D virtio_ccw_serial_properties; > + device_class_set_props(dc, virtio_ccw_serial_properties); > set_bit(DEVICE_CATEGORY_INPUT, dc->categories); > } > =20 > @@ -1434,7 +1434,7 @@ static void virtio_ccw_balloon_class_init(ObjectCla= ss *klass, void *data) > k->realize =3D virtio_ccw_balloon_realize; > k->exit =3D virtio_ccw_exit; > dc->reset =3D virtio_ccw_reset; > - dc->props =3D virtio_ccw_balloon_properties; > + device_class_set_props(dc, virtio_ccw_balloon_properties); > set_bit(DEVICE_CATEGORY_MISC, dc->categories); > } > =20 > @@ -1463,7 +1463,7 @@ static void virtio_ccw_scsi_class_init(ObjectClass = *klass, void *data) > k->realize =3D virtio_ccw_scsi_realize; > k->exit =3D virtio_ccw_exit; > dc->reset =3D virtio_ccw_reset; > - dc->props =3D virtio_ccw_scsi_properties; > + device_class_set_props(dc, virtio_ccw_scsi_properties); > set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); > } > =20 > @@ -1491,7 +1491,7 @@ static void vhost_ccw_scsi_class_init(ObjectClass *= klass, void *data) > k->realize =3D vhost_ccw_scsi_realize; > k->exit =3D virtio_ccw_exit; > dc->reset =3D virtio_ccw_reset; > - dc->props =3D vhost_ccw_scsi_properties; > + device_class_set_props(dc, vhost_ccw_scsi_properties); > set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); > } > =20 > @@ -1531,7 +1531,7 @@ static void virtio_ccw_rng_class_init(ObjectClass *= klass, void *data) > k->realize =3D virtio_ccw_rng_realize; > k->exit =3D virtio_ccw_exit; > dc->reset =3D virtio_ccw_reset; > - dc->props =3D virtio_ccw_rng_properties; > + device_class_set_props(dc, virtio_ccw_rng_properties); > set_bit(DEVICE_CATEGORY_MISC, dc->categories); > } > =20 > @@ -1657,7 +1657,7 @@ static void virtio_ccw_9p_class_init(ObjectClass *k= lass, void *data) > k->exit =3D virtio_ccw_exit; > k->realize =3D virtio_ccw_9p_realize; > dc->reset =3D virtio_ccw_reset; > - dc->props =3D virtio_ccw_9p_properties; > + device_class_set_props(dc, virtio_ccw_9p_properties); > set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); > } > =20 > @@ -1708,7 +1708,7 @@ static void vhost_vsock_ccw_class_init(ObjectClass = *klass, void *data) > k->realize =3D vhost_vsock_ccw_realize; > k->exit =3D virtio_ccw_exit; > set_bit(DEVICE_CATEGORY_MISC, dc->categories); > - dc->props =3D vhost_vsock_ccw_properties; > + device_class_set_props(dc, vhost_vsock_ccw_properties); > dc->reset =3D virtio_ccw_reset; > } > =20 > diff --git a/hw/scsi/megasas.c b/hw/scsi/megasas.c > index 52a4123..63dfcf5 100644 > --- a/hw/scsi/megasas.c > +++ b/hw/scsi/megasas.c > @@ -2515,7 +2515,7 @@ static void megasas_class_init(ObjectClass *oc, voi= d *data) > e->osts =3D info->osts; > e->product_name =3D info->product_name; > e->product_version =3D info->product_version; > - dc->props =3D info->props; > + device_class_set_props(dc, info->props); > dc->reset =3D megasas_scsi_reset; > dc->vmsd =3D info->vmsd; > set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); > diff --git a/hw/scsi/mptsas.c b/hw/scsi/mptsas.c > index ad87e78..2fa622e 100644 > --- a/hw/scsi/mptsas.c > +++ b/hw/scsi/mptsas.c > @@ -1434,7 +1434,7 @@ static void mptsas1068_class_init(ObjectClass *oc, = void *data) > pc->subsystem_vendor_id =3D PCI_VENDOR_ID_LSI_LOGIC; > pc->subsystem_id =3D 0x8000; > pc->class_id =3D PCI_CLASS_STORAGE_SCSI; > - dc->props =3D mptsas_properties; > + device_class_set_props(dc, mptsas_properties); > dc->reset =3D mptsas_reset; > dc->vmsd =3D &vmstate_mptsas; > dc->desc =3D "LSI SAS 1068"; > diff --git a/hw/scsi/scsi-bus.c b/hw/scsi/scsi-bus.c > index 297216d..54fcc54 100644 > --- a/hw/scsi/scsi-bus.c > +++ b/hw/scsi/scsi-bus.c > @@ -2069,7 +2069,7 @@ static void scsi_device_class_init(ObjectClass *kla= ss, void *data) > k->bus_type =3D TYPE_SCSI_BUS; > k->realize =3D scsi_qdev_realize; > k->unrealize =3D scsi_qdev_unrealize; > - k->props =3D scsi_props; > + device_class_set_props(k, scsi_props); > } > =20 > static void scsi_dev_instance_init(Object *obj) > diff --git a/hw/scsi/scsi-disk.c b/hw/scsi/scsi-disk.c > index a963191..9c1ce3c 100644 > --- a/hw/scsi/scsi-disk.c > +++ b/hw/scsi/scsi-disk.c > @@ -2897,7 +2897,7 @@ static void scsi_hd_class_initfn(ObjectClass *klass= , void *data) > sc->alloc_req =3D scsi_new_request; > sc->unit_attention_reported =3D scsi_disk_unit_attention_reported; > dc->desc =3D "virtual SCSI disk"; > - dc->props =3D scsi_hd_properties; > + device_class_set_props(dc, scsi_hd_properties); > dc->vmsd =3D &vmstate_scsi_disk_state; > } > =20 > @@ -2926,7 +2926,7 @@ static void scsi_cd_class_initfn(ObjectClass *klass= , void *data) > sc->alloc_req =3D scsi_new_request; > sc->unit_attention_reported =3D scsi_disk_unit_attention_reported; > dc->desc =3D "virtual SCSI CD-ROM"; > - dc->props =3D scsi_cd_properties; > + device_class_set_props(dc, scsi_cd_properties); > dc->vmsd =3D &vmstate_scsi_disk_state; > } > =20 > @@ -2955,7 +2955,7 @@ static void scsi_block_class_initfn(ObjectClass *kl= ass, void *data) > sdc->dma_writev =3D scsi_block_dma_writev; > sdc->need_fua_emulation =3D scsi_block_no_fua; > dc->desc =3D "SCSI block device passthrough"; > - dc->props =3D scsi_block_properties; > + device_class_set_props(dc, scsi_block_properties); > dc->vmsd =3D &vmstate_scsi_disk_state; > } > =20 > @@ -2993,7 +2993,7 @@ static void scsi_disk_class_initfn(ObjectClass *kla= ss, void *data) > dc->fw_name =3D "disk"; > dc->desc =3D "virtual SCSI disk or CD-ROM (legacy)"; > dc->reset =3D scsi_disk_reset; > - dc->props =3D scsi_disk_properties; > + device_class_set_props(dc, scsi_disk_properties); > dc->vmsd =3D &vmstate_scsi_disk_state; > } > =20 > diff --git a/hw/scsi/scsi-generic.c b/hw/scsi/scsi-generic.c > index 7a588a7..3a5182c 100644 > --- a/hw/scsi/scsi-generic.c > +++ b/hw/scsi/scsi-generic.c > @@ -605,7 +605,7 @@ static void scsi_generic_class_initfn(ObjectClass *kl= ass, void *data) > dc->fw_name =3D "disk"; > dc->desc =3D "pass through generic scsi device (/dev/sg*)"; > dc->reset =3D scsi_generic_reset; > - dc->props =3D scsi_generic_properties; > + device_class_set_props(dc, scsi_generic_properties); > dc->vmsd =3D &vmstate_scsi_device; > } > =20 > diff --git a/hw/scsi/spapr_vscsi.c b/hw/scsi/spapr_vscsi.c > index 6090a20..cb11a7e 100644 > --- a/hw/scsi/spapr_vscsi.c > +++ b/hw/scsi/spapr_vscsi.c > @@ -1268,7 +1268,7 @@ static void spapr_vscsi_class_init(ObjectClass *kla= ss, void *data) > k->dt_compatible =3D "IBM,v-scsi"; > k->signal_mask =3D 0x00000001; > set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); > - dc->props =3D spapr_vscsi_properties; > + device_class_set_props(dc, spapr_vscsi_properties); > k->rtce_window_size =3D 0x10000000; > dc->vmsd =3D &vmstate_spapr_vscsi; > } > diff --git a/hw/scsi/vhost-scsi.c b/hw/scsi/vhost-scsi.c > index 5b26946..9833d8b 100644 > --- a/hw/scsi/vhost-scsi.c > +++ b/hw/scsi/vhost-scsi.c > @@ -314,7 +314,7 @@ static void vhost_scsi_class_init(ObjectClass *klass,= void *data) > VirtioDeviceClass *vdc =3D VIRTIO_DEVICE_CLASS(klass); > FWPathProviderClass *fwc =3D FW_PATH_PROVIDER_CLASS(klass); > =20 > - dc->props =3D vhost_scsi_properties; > + device_class_set_props(dc, vhost_scsi_properties); > set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); > vdc->realize =3D vhost_scsi_realize; > vdc->unrealize =3D vhost_scsi_unrealize; > diff --git a/hw/scsi/virtio-scsi.c b/hw/scsi/virtio-scsi.c > index 4762f05..32f131a 100644 > --- a/hw/scsi/virtio-scsi.c > +++ b/hw/scsi/virtio-scsi.c > @@ -949,7 +949,7 @@ static void virtio_scsi_class_init(ObjectClass *klass= , void *data) > VirtioDeviceClass *vdc =3D VIRTIO_DEVICE_CLASS(klass); > HotplugHandlerClass *hc =3D HOTPLUG_HANDLER_CLASS(klass); > =20 > - dc->props =3D virtio_scsi_properties; > + device_class_set_props(dc, virtio_scsi_properties); > dc->vmsd =3D &vmstate_virtio_scsi; > set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); > vdc->realize =3D virtio_scsi_device_realize; > diff --git a/hw/scsi/vmw_pvscsi.c b/hw/scsi/vmw_pvscsi.c > index a5ce7de..b5c525c 100644 > --- a/hw/scsi/vmw_pvscsi.c > +++ b/hw/scsi/vmw_pvscsi.c > @@ -1292,7 +1292,7 @@ static void pvscsi_class_init(ObjectClass *klass, v= oid *data) > dc->realize =3D pvscsi_realize; > dc->reset =3D pvscsi_reset; > dc->vmsd =3D &vmstate_pvscsi; > - dc->props =3D pvscsi_properties; > + device_class_set_props(dc, pvscsi_properties); > set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); > hc->unplug =3D pvscsi_hot_unplug; > hc->plug =3D pvscsi_hotplug; > diff --git a/hw/sd/sd.c b/hw/sd/sd.c > index 8e88e83..e87f40f 100644 > --- a/hw/sd/sd.c > +++ b/hw/sd/sd.c > @@ -1914,7 +1914,7 @@ static void sd_class_init(ObjectClass *klass, void = *data) > SDCardClass *sc =3D SD_CARD_CLASS(klass); > =20 > dc->realize =3D sd_realize; > - dc->props =3D sd_properties; > + device_class_set_props(dc, sd_properties); > dc->vmsd =3D &sd_vmstate; > dc->reset =3D sd_reset; > dc->bus_type =3D TYPE_SD_BUS; > diff --git a/hw/sd/sdhci.c b/hw/sd/sdhci.c > index 01fbf22..1a30f89 100644 > --- a/hw/sd/sdhci.c > +++ b/hw/sd/sdhci.c > @@ -1305,7 +1305,7 @@ static void sdhci_pci_class_init(ObjectClass *klass= , void *data) > k->class_id =3D PCI_CLASS_SYSTEM_SDHCI; > set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); > dc->vmsd =3D &sdhci_vmstate; > - dc->props =3D sdhci_pci_properties; > + device_class_set_props(dc, sdhci_pci_properties); > dc->reset =3D sdhci_poweron_reset; > } > =20 > @@ -1356,7 +1356,7 @@ static void sdhci_sysbus_class_init(ObjectClass *kl= ass, void *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > dc->vmsd =3D &sdhci_vmstate; > - dc->props =3D sdhci_sysbus_properties; > + device_class_set_props(dc, sdhci_sysbus_properties); > dc->realize =3D sdhci_sysbus_realize; > dc->reset =3D sdhci_poweron_reset; > } > diff --git a/hw/sparc/sun4m.c b/hw/sparc/sun4m.c > index 6224288..19930b7 100644 > --- a/hw/sparc/sun4m.c > +++ b/hw/sparc/sun4m.c > @@ -728,7 +728,7 @@ static void prom_class_init(ObjectClass *klass, void = *data) > SysBusDeviceClass *k =3D SYS_BUS_DEVICE_CLASS(klass); > =20 > k->init =3D prom_init1; > - dc->props =3D prom_properties; > + device_class_set_props(dc, prom_properties); > } > =20 > static const TypeInfo prom_info =3D { > @@ -795,7 +795,7 @@ static void ram_class_init(ObjectClass *klass, void *= data) > SysBusDeviceClass *k =3D SYS_BUS_DEVICE_CLASS(klass); > =20 > k->init =3D ram_init1; > - dc->props =3D ram_properties; > + device_class_set_props(dc, ram_properties); > } > =20 > static const TypeInfo ram_info =3D { > diff --git a/hw/sparc64/sun4u.c b/hw/sparc64/sun4u.c > index 271d8bc..f5eccc3 100644 > --- a/hw/sparc64/sun4u.c > +++ b/hw/sparc64/sun4u.c > @@ -652,7 +652,7 @@ static void prom_class_init(ObjectClass *klass, void = *data) > SysBusDeviceClass *k =3D SYS_BUS_DEVICE_CLASS(klass); > =20 > k->init =3D prom_init1; > - dc->props =3D prom_properties; > + device_class_set_props(dc, prom_properties); > } > =20 > static const TypeInfo prom_info =3D { > @@ -713,7 +713,7 @@ static void ram_class_init(ObjectClass *klass, void *= data) > SysBusDeviceClass *k =3D SYS_BUS_DEVICE_CLASS(klass); > =20 > k->init =3D ram_init1; > - dc->props =3D ram_properties; > + device_class_set_props(dc, ram_properties); > } > =20 > static const TypeInfo ram_info =3D { > diff --git a/hw/ssi/aspeed_smc.c b/hw/ssi/aspeed_smc.c > index 6e8403e..5e3b95e 100644 > --- a/hw/ssi/aspeed_smc.c > +++ b/hw/ssi/aspeed_smc.c > @@ -605,7 +605,7 @@ static void aspeed_smc_class_init(ObjectClass *klass,= void *data) > =20 > dc->realize =3D aspeed_smc_realize; > dc->reset =3D aspeed_smc_reset; > - dc->props =3D aspeed_smc_properties; > + device_class_set_props(dc, aspeed_smc_properties); > dc->vmsd =3D &vmstate_aspeed_smc; > mc->ctrl =3D data; > } > diff --git a/hw/ssi/xilinx_spi.c b/hw/ssi/xilinx_spi.c > index 33482f0..82cc089 100644 > --- a/hw/ssi/xilinx_spi.c > +++ b/hw/ssi/xilinx_spi.c > @@ -372,7 +372,7 @@ static void xilinx_spi_class_init(ObjectClass *klass,= void *data) > =20 > k->init =3D xilinx_spi_init; > dc->reset =3D xlx_spi_reset; > - dc->props =3D xilinx_spi_properties; > + device_class_set_props(dc, xilinx_spi_properties); > dc->vmsd =3D &vmstate_xilinx_spi; > } > =20 > diff --git a/hw/ssi/xilinx_spips.c b/hw/ssi/xilinx_spips.c > index da8adfa..a73f4f9 100644 > --- a/hw/ssi/xilinx_spips.c > +++ b/hw/ssi/xilinx_spips.c > @@ -705,7 +705,7 @@ static void xilinx_spips_class_init(ObjectClass *klas= s, void *data) > =20 > dc->realize =3D xilinx_spips_realize; > dc->reset =3D xilinx_spips_reset; > - dc->props =3D xilinx_spips_properties; > + device_class_set_props(dc, xilinx_spips_properties); > dc->vmsd =3D &vmstate_xilinx_spips; > =20 > xsc->reg_ops =3D &spips_ops; > diff --git a/hw/timer/a9gtimer.c b/hw/timer/a9gtimer.c > index ce1dc63..6f1a73c 100644 > --- a/hw/timer/a9gtimer.c > +++ b/hw/timer/a9gtimer.c > @@ -354,7 +354,7 @@ static void a9_gtimer_class_init(ObjectClass *klass, = void *data) > dc->realize =3D a9_gtimer_realize; > dc->vmsd =3D &vmstate_a9_gtimer; > dc->reset =3D a9_gtimer_reset; > - dc->props =3D a9_gtimer_properties; > + device_class_set_props(dc, a9_gtimer_properties); > } > =20 > static const TypeInfo a9_gtimer_info =3D { > diff --git a/hw/timer/allwinner-a10-pit.c b/hw/timer/allwinner-a10-pit.c > index 22ceabe..a1ac96e 100644 > --- a/hw/timer/allwinner-a10-pit.c > +++ b/hw/timer/allwinner-a10-pit.c > @@ -276,7 +276,7 @@ static void a10_pit_class_init(ObjectClass *klass, vo= id *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > dc->reset =3D a10_pit_reset; > - dc->props =3D a10_pit_properties; > + device_class_set_props(dc, a10_pit_properties); > dc->desc =3D "allwinner a10 timer"; > dc->vmsd =3D &vmstate_a10_pit; > } > diff --git a/hw/timer/arm_mptimer.c b/hw/timer/arm_mptimer.c > index daf6c48..401a6f6 100644 > --- a/hw/timer/arm_mptimer.c > +++ b/hw/timer/arm_mptimer.c > @@ -299,7 +299,7 @@ static void arm_mptimer_class_init(ObjectClass *klass= , void *data) > dc->realize =3D arm_mptimer_realize; > dc->vmsd =3D &vmstate_arm_mptimer; > dc->reset =3D arm_mptimer_reset; > - dc->props =3D arm_mptimer_properties; > + device_class_set_props(dc, arm_mptimer_properties); > } > =20 > static const TypeInfo arm_mptimer_info =3D { > diff --git a/hw/timer/arm_timer.c b/hw/timer/arm_timer.c > index 98fddd7..91f5184 100644 > --- a/hw/timer/arm_timer.c > +++ b/hw/timer/arm_timer.c > @@ -389,7 +389,7 @@ static void sp804_class_init(ObjectClass *klass, void= *data) > DeviceClass *k =3D DEVICE_CLASS(klass); > =20 > k->realize =3D sp804_realize; > - k->props =3D sp804_properties; > + device_class_set_props(k, sp804_properties); > k->vmsd =3D &vmstate_sp804; > } > =20 > diff --git a/hw/timer/grlib_gptimer.c b/hw/timer/grlib_gptimer.c > index 712d1ae..fcde90a 100644 > --- a/hw/timer/grlib_gptimer.c > +++ b/hw/timer/grlib_gptimer.c > @@ -394,7 +394,7 @@ static void grlib_gptimer_class_init(ObjectClass *kla= ss, void *data) > =20 > k->init =3D grlib_gptimer_init; > dc->reset =3D grlib_gptimer_reset; > - dc->props =3D grlib_gptimer_properties; > + device_class_set_props(dc, grlib_gptimer_properties); > } > =20 > static const TypeInfo grlib_gptimer_info =3D { > diff --git a/hw/timer/hpet.c b/hw/timer/hpet.c > index a2c18b3..3c47ef1 100644 > --- a/hw/timer/hpet.c > +++ b/hw/timer/hpet.c > @@ -770,7 +770,7 @@ static void hpet_device_class_init(ObjectClass *klass= , void *data) > dc->realize =3D hpet_realize; > dc->reset =3D hpet_reset; > dc->vmsd =3D &vmstate_hpet; > - dc->props =3D hpet_device_properties; > + device_class_set_props(dc, hpet_device_properties); > } > =20 > static const TypeInfo hpet_device_info =3D { > diff --git a/hw/timer/i8254.c b/hw/timer/i8254.c > index 5e61ad5..bbecf49 100644 > --- a/hw/timer/i8254.c > +++ b/hw/timer/i8254.c > @@ -365,7 +365,7 @@ static void pit_class_initfn(ObjectClass *klass, void= *data) > k->get_channel_info =3D pit_get_channel_info_common; > k->post_load =3D pit_post_load; > dc->reset =3D pit_reset; > - dc->props =3D pit_properties; > + device_class_set_props(dc, pit_properties); > } > =20 > static const TypeInfo pit_info =3D { > diff --git a/hw/timer/lm32_timer.c b/hw/timer/lm32_timer.c > index 2a07b59..4eeb216 100644 > --- a/hw/timer/lm32_timer.c > +++ b/hw/timer/lm32_timer.c > @@ -222,7 +222,7 @@ static void lm32_timer_class_init(ObjectClass *klass,= void *data) > dc->realize =3D lm32_timer_realize; > dc->reset =3D timer_reset; > dc->vmsd =3D &vmstate_lm32_timer; > - dc->props =3D lm32_timer_properties; > + device_class_set_props(dc, lm32_timer_properties); > } > =20 > static const TypeInfo lm32_timer_info =3D { > diff --git a/hw/timer/m48t59.c b/hw/timer/m48t59.c > index e46ca88..2c07345 100644 > --- a/hw/timer/m48t59.c > +++ b/hw/timer/m48t59.c > @@ -822,7 +822,7 @@ static void m48txx_isa_class_init(ObjectClass *klass,= void *data) > =20 > dc->realize =3D m48t59_isa_realize; > dc->reset =3D m48t59_reset_isa; > - dc->props =3D m48t59_isa_properties; > + device_class_set_props(dc, m48t59_isa_properties); > nc->read =3D m48txx_isa_read; > nc->write =3D m48txx_isa_write; > nc->toggle_lock =3D m48txx_isa_toggle_lock; > @@ -867,7 +867,7 @@ static void m48txx_sysbus_class_init(ObjectClass *kla= ss, void *data) > =20 > k->init =3D m48t59_init1; > dc->reset =3D m48t59_reset_sysbus; > - dc->props =3D m48t59_sysbus_properties; > + device_class_set_props(dc, m48t59_sysbus_properties); > nc->read =3D m48txx_sysbus_read; > nc->write =3D m48txx_sysbus_write; > nc->toggle_lock =3D m48txx_sysbus_toggle_lock; > diff --git a/hw/timer/mc146818rtc.c b/hw/timer/mc146818rtc.c > index da209d0..9d9b998 100644 > --- a/hw/timer/mc146818rtc.c > +++ b/hw/timer/mc146818rtc.c > @@ -952,7 +952,7 @@ static void rtc_class_initfn(ObjectClass *klass, void= *data) > =20 > dc->realize =3D rtc_realizefn; > dc->vmsd =3D &vmstate_rtc; > - dc->props =3D mc146818rtc_properties; > + device_class_set_props(dc, mc146818rtc_properties); > /* Reason: needs to be wired up by rtc_init() */ > dc->cannot_instantiate_with_device_add_yet =3D true; > } > diff --git a/hw/timer/milkymist-sysctl.c b/hw/timer/milkymist-sysctl.c > index 4488590..aafbe54 100644 > --- a/hw/timer/milkymist-sysctl.c > +++ b/hw/timer/milkymist-sysctl.c > @@ -328,7 +328,7 @@ static void milkymist_sysctl_class_init(ObjectClass *= klass, void *data) > dc->realize =3D milkymist_sysctl_realize; > dc->reset =3D milkymist_sysctl_reset; > dc->vmsd =3D &vmstate_milkymist_sysctl; > - dc->props =3D milkymist_sysctl_properties; > + device_class_set_props(dc, milkymist_sysctl_properties); > } > =20 > static const TypeInfo milkymist_sysctl_info =3D { > diff --git a/hw/timer/pxa2xx_timer.c b/hw/timer/pxa2xx_timer.c > index 59002b4..aa5679b 100644 > --- a/hw/timer/pxa2xx_timer.c > +++ b/hw/timer/pxa2xx_timer.c > @@ -546,7 +546,7 @@ static void pxa25x_timer_dev_class_init(ObjectClass *= klass, void *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > dc->desc =3D "PXA25x timer"; > - dc->props =3D pxa25x_timer_dev_properties; > + device_class_set_props(dc, pxa25x_timer_dev_properties); > } > =20 > static const TypeInfo pxa25x_timer_dev_info =3D { > @@ -568,7 +568,7 @@ static void pxa27x_timer_dev_class_init(ObjectClass *= klass, void *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > dc->desc =3D "PXA27x timer"; > - dc->props =3D pxa27x_timer_dev_properties; > + device_class_set_props(dc, pxa27x_timer_dev_properties); > } > =20 > static const TypeInfo pxa27x_timer_dev_info =3D { > diff --git a/hw/timer/slavio_timer.c b/hw/timer/slavio_timer.c > index bfee1f3..c14a240 100644 > --- a/hw/timer/slavio_timer.c > +++ b/hw/timer/slavio_timer.c > @@ -417,7 +417,7 @@ static void slavio_timer_class_init(ObjectClass *klas= s, void *data) > k->init =3D slavio_timer_init1; > dc->reset =3D slavio_timer_reset; > dc->vmsd =3D &vmstate_slavio_timer; > - dc->props =3D slavio_timer_properties; > + device_class_set_props(dc, slavio_timer_properties); > } > =20 > static const TypeInfo slavio_timer_info =3D { > diff --git a/hw/timer/stm32f2xx_timer.c b/hw/timer/stm32f2xx_timer.c > index e5f5e14..6ef3d91 100644 > --- a/hw/timer/stm32f2xx_timer.c > +++ b/hw/timer/stm32f2xx_timer.c > @@ -319,7 +319,7 @@ static void stm32f2xx_timer_class_init(ObjectClass *k= lass, void *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > dc->reset =3D stm32f2xx_timer_reset; > - dc->props =3D stm32f2xx_timer_properties; > + device_class_set_props(dc, stm32f2xx_timer_properties); > dc->vmsd =3D &vmstate_stm32f2xx_timer; > } > =20 > diff --git a/hw/timer/xilinx_timer.c b/hw/timer/xilinx_timer.c > index 59439c0..953d442 100644 > --- a/hw/timer/xilinx_timer.c > +++ b/hw/timer/xilinx_timer.c > @@ -247,7 +247,7 @@ static void xilinx_timer_class_init(ObjectClass *klas= s, void *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > dc->realize =3D xilinx_timer_realize; > - dc->props =3D xilinx_timer_properties; > + device_class_set_props(dc, xilinx_timer_properties); > } > =20 > static const TypeInfo xilinx_timer_info =3D { > diff --git a/hw/tpm/tpm_tis.c b/hw/tpm/tpm_tis.c > index 381e726..d290c30 100644 > --- a/hw/tpm/tpm_tis.c > +++ b/hw/tpm/tpm_tis.c > @@ -1079,7 +1079,7 @@ static void tpm_tis_class_init(ObjectClass *klass, = void *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > dc->realize =3D tpm_tis_realizefn; > - dc->props =3D tpm_tis_properties; > + device_class_set_props(dc, tpm_tis_properties); > dc->reset =3D tpm_tis_reset; > dc->vmsd =3D &vmstate_tpm_tis; > } > diff --git a/hw/usb/bus.c b/hw/usb/bus.c > index 25913ad..2507576 100644 > --- a/hw/usb/bus.c > +++ b/hw/usb/bus.c > @@ -791,7 +791,7 @@ static void usb_device_class_init(ObjectClass *klass,= void *data) > k->bus_type =3D TYPE_USB_BUS; > k->realize =3D usb_qdev_realize; > k->unrealize =3D usb_qdev_unrealize; > - k->props =3D usb_props; > + device_class_set_props(k, usb_props); > } > =20 > static const TypeInfo usb_device_type_info =3D { > diff --git a/hw/usb/ccid-card-emulated.c b/hw/usb/ccid-card-emulated.c > index 3213f9f..5992d70 100644 > --- a/hw/usb/ccid-card-emulated.c > +++ b/hw/usb/ccid-card-emulated.c > @@ -588,7 +588,7 @@ static void emulated_class_initfn(ObjectClass *klass,= void *data) > cc->apdu_from_guest =3D emulated_apdu_from_guest; > set_bit(DEVICE_CATEGORY_INPUT, dc->categories); > dc->desc =3D "emulated smartcard"; > - dc->props =3D emulated_card_properties; > + device_class_set_props(dc, emulated_card_properties); > } > =20 > static const TypeInfo emulated_card_info =3D { > diff --git a/hw/usb/ccid-card-passthru.c b/hw/usb/ccid-card-passthru.c > index 325129a..2f4fecc 100644 > --- a/hw/usb/ccid-card-passthru.c > +++ b/hw/usb/ccid-card-passthru.c > @@ -402,7 +402,7 @@ static void passthru_class_initfn(ObjectClass *klass,= void *data) > set_bit(DEVICE_CATEGORY_INPUT, dc->categories); > dc->desc =3D "passthrough smartcard"; > dc->vmsd =3D &passthru_vmstate; > - dc->props =3D passthru_card_properties; > + device_class_set_props(dc, passthru_card_properties); > } > =20 > static const TypeInfo passthru_card_info =3D { > diff --git a/hw/usb/dev-audio.c b/hw/usb/dev-audio.c > index 87cab0a..f783f7a 100644 > --- a/hw/usb/dev-audio.c > +++ b/hw/usb/dev-audio.c > @@ -675,7 +675,7 @@ static void usb_audio_class_init(ObjectClass *klass, = void *data) > USBDeviceClass *k =3D USB_DEVICE_CLASS(klass); > =20 > dc->vmsd =3D &vmstate_usb_audio; > - dc->props =3D usb_audio_properties; > + device_class_set_props(dc, usb_audio_properties); > set_bit(DEVICE_CATEGORY_SOUND, dc->categories); > k->product_desc =3D "QEMU USB Audio Interface"; > k->usb_desc =3D &desc_audio; > diff --git a/hw/usb/dev-hid.c b/hw/usb/dev-hid.c > index 24d05f7..cdc7795 100644 > --- a/hw/usb/dev-hid.c > +++ b/hw/usb/dev-hid.c > @@ -812,7 +812,7 @@ static void usb_tablet_class_initfn(ObjectClass *klas= s, void *data) > uc->realize =3D usb_tablet_realize; > uc->product_desc =3D "QEMU USB Tablet"; > dc->vmsd =3D &vmstate_usb_ptr; > - dc->props =3D usb_tablet_properties; > + device_class_set_props(dc, usb_tablet_properties); > set_bit(DEVICE_CATEGORY_INPUT, dc->categories); > } > =20 > @@ -835,7 +835,7 @@ static void usb_mouse_class_initfn(ObjectClass *klass= , void *data) > uc->realize =3D usb_mouse_realize; > uc->product_desc =3D "QEMU USB Mouse"; > dc->vmsd =3D &vmstate_usb_ptr; > - dc->props =3D usb_mouse_properties; > + device_class_set_props(dc, usb_mouse_properties); > set_bit(DEVICE_CATEGORY_INPUT, dc->categories); > } > =20 > @@ -859,7 +859,7 @@ static void usb_keyboard_class_initfn(ObjectClass *kl= ass, void *data) > uc->realize =3D usb_keyboard_realize; > uc->product_desc =3D "QEMU USB Keyboard"; > dc->vmsd =3D &vmstate_usb_kbd; > - dc->props =3D usb_keyboard_properties; > + device_class_set_props(dc, usb_keyboard_properties); > set_bit(DEVICE_CATEGORY_INPUT, dc->categories); > } > =20 > diff --git a/hw/usb/dev-mtp.c b/hw/usb/dev-mtp.c > index 58d95ff..b9f1cbf 100644 > --- a/hw/usb/dev-mtp.c > +++ b/hw/usb/dev-mtp.c > @@ -1583,7 +1583,7 @@ static void usb_mtp_class_initfn(ObjectClass *klass= , void *data) > uc->handle_data =3D usb_mtp_handle_data; > dc->fw_name =3D "mtp"; > dc->vmsd =3D &vmstate_usb_mtp; > - dc->props =3D mtp_properties; > + device_class_set_props(dc, mtp_properties); > } > =20 > static TypeInfo mtp_info =3D { > diff --git a/hw/usb/dev-network.c b/hw/usb/dev-network.c > index c0f1193..4f9016e 100644 > --- a/hw/usb/dev-network.c > +++ b/hw/usb/dev-network.c > @@ -1432,7 +1432,7 @@ static void usb_net_class_initfn(ObjectClass *klass= , void *data) > set_bit(DEVICE_CATEGORY_NETWORK, dc->categories); > dc->fw_name =3D "network"; > dc->vmsd =3D &vmstate_usb_net; > - dc->props =3D net_properties; > + device_class_set_props(dc, net_properties); > } > =20 > static const TypeInfo net_info =3D { > diff --git a/hw/usb/dev-serial.c b/hw/usb/dev-serial.c > index 6066d9b..a912f44 100644 > --- a/hw/usb/dev-serial.c > +++ b/hw/usb/dev-serial.c > @@ -613,7 +613,7 @@ static void usb_serial_class_initfn(ObjectClass *klas= s, void *data) > =20 > uc->product_desc =3D "QEMU USB Serial"; > uc->usb_desc =3D &desc_serial; > - dc->props =3D serial_properties; > + device_class_set_props(dc, serial_properties); > } > =20 > static const TypeInfo serial_info =3D { > @@ -634,7 +634,7 @@ static void usb_braille_class_initfn(ObjectClass *kla= ss, void *data) > =20 > uc->product_desc =3D "QEMU USB Braille"; > uc->usb_desc =3D &desc_braille; > - dc->props =3D braille_properties; > + device_class_set_props(dc, braille_properties); > } > =20 > static const TypeInfo braille_info =3D { > diff --git a/hw/usb/dev-smartcard-reader.c b/hw/usb/dev-smartcard-reader.c > index af4b851..ed9e759 100644 > --- a/hw/usb/dev-smartcard-reader.c > +++ b/hw/usb/dev-smartcard-reader.c > @@ -1462,7 +1462,7 @@ static void ccid_class_initfn(ObjectClass *klass, v= oid *data) > uc->handle_destroy =3D ccid_handle_destroy; > dc->desc =3D "CCID Rev 1.1 smartcard reader"; > dc->vmsd =3D &ccid_vmstate; > - dc->props =3D ccid_properties; > + device_class_set_props(dc, ccid_properties); > set_bit(DEVICE_CATEGORY_INPUT, dc->categories); > hc->unplug =3D qdev_simple_device_unplug_cb; > } > @@ -1484,7 +1484,7 @@ static void ccid_card_class_init(ObjectClass *klass= , void *data) > k->bus_type =3D TYPE_CCID_BUS; > k->init =3D ccid_card_init; > k->exit =3D ccid_card_exit; > - k->props =3D ccid_props; > + device_class_set_props(k, ccid_props); > } > =20 > static const TypeInfo ccid_card_type_info =3D { > diff --git a/hw/usb/dev-storage.c b/hw/usb/dev-storage.c > index c607f76..47ff7b5 100644 > --- a/hw/usb/dev-storage.c > +++ b/hw/usb/dev-storage.c > @@ -755,7 +755,7 @@ static void usb_msd_class_initfn_storage(ObjectClass = *klass, void *data) > USBDeviceClass *uc =3D USB_DEVICE_CLASS(klass); > =20 > uc->realize =3D usb_msd_realize_storage; > - dc->props =3D msd_properties; > + device_class_set_props(dc, msd_properties); > } > =20 > static void usb_msd_get_bootindex(Object *obj, Visitor *v, const char *n= ame, > diff --git a/hw/usb/dev-uas.c b/hw/usb/dev-uas.c > index 3a8ff18..5bf7c81 100644 > --- a/hw/usb/dev-uas.c > +++ b/hw/usb/dev-uas.c > @@ -948,7 +948,7 @@ static void usb_uas_class_initfn(ObjectClass *klass, = void *data) > set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); > dc->fw_name =3D "storage"; > dc->vmsd =3D &vmstate_usb_uas; > - dc->props =3D uas_properties; > + device_class_set_props(dc, uas_properties); > } > =20 > static const TypeInfo uas_info =3D { > diff --git a/hw/usb/hcd-ehci-pci.c b/hw/usb/hcd-ehci-pci.c > index 5657705..8cda359 100644 > --- a/hw/usb/hcd-ehci-pci.c > +++ b/hw/usb/hcd-ehci-pci.c > @@ -150,7 +150,7 @@ static void ehci_class_init(ObjectClass *klass, void = *data) > k->class_id =3D PCI_CLASS_SERIAL_USB; > k->config_write =3D usb_ehci_pci_write_config; > dc->vmsd =3D &vmstate_ehci_pci; > - dc->props =3D ehci_pci_properties; > + device_class_set_props(dc, ehci_pci_properties); > dc->reset =3D usb_ehci_pci_reset; > } > =20 > diff --git a/hw/usb/hcd-ehci-sysbus.c b/hw/usb/hcd-ehci-sysbus.c > index 6c20604..2264b66 100644 > --- a/hw/usb/hcd-ehci-sysbus.c > +++ b/hw/usb/hcd-ehci-sysbus.c > @@ -79,7 +79,7 @@ static void ehci_sysbus_class_init(ObjectClass *klass, = void *data) > =20 > dc->realize =3D usb_ehci_sysbus_realize; > dc->vmsd =3D &vmstate_ehci_sysbus; > - dc->props =3D ehci_sysbus_properties; > + device_class_set_props(dc, ehci_sysbus_properties); > dc->reset =3D usb_ehci_sysbus_reset; > set_bit(DEVICE_CATEGORY_USB, dc->categories); > } > diff --git a/hw/usb/hcd-ohci.c b/hw/usb/hcd-ohci.c > index c82a92f..0cdb549 100644 > --- a/hw/usb/hcd-ohci.c > +++ b/hw/usb/hcd-ohci.c > @@ -2124,7 +2124,7 @@ static void ohci_pci_class_init(ObjectClass *klass,= void *data) > k->class_id =3D PCI_CLASS_SERIAL_USB; > set_bit(DEVICE_CATEGORY_USB, dc->categories); > dc->desc =3D "Apple USB Controller"; > - dc->props =3D ohci_pci_properties; > + device_class_set_props(dc, ohci_pci_properties); > dc->hotpluggable =3D false; > dc->vmsd =3D &vmstate_ohci; > dc->reset =3D usb_ohci_reset_pci; > @@ -2150,7 +2150,7 @@ static void ohci_sysbus_class_init(ObjectClass *kla= ss, void *data) > dc->realize =3D ohci_realize_pxa; > set_bit(DEVICE_CATEGORY_USB, dc->categories); > dc->desc =3D "OHCI USB Controller"; > - dc->props =3D ohci_sysbus_properties; > + device_class_set_props(dc, ohci_sysbus_properties); > dc->reset =3D usb_ohci_reset_sysbus; > } > =20 > diff --git a/hw/usb/hcd-uhci.c b/hw/usb/hcd-uhci.c > index ca72a80..47fa0a0 100644 > --- a/hw/usb/hcd-uhci.c > +++ b/hw/usb/hcd-uhci.c > @@ -1340,9 +1340,9 @@ static void uhci_data_class_init(ObjectClass *klass= , void *data) > if (!info->unplug) { > /* uhci controllers in companion setups can't be hotplugged */ > dc->hotpluggable =3D false; > - dc->props =3D uhci_properties_companion; > + device_class_set_props(dc, uhci_properties_companion); > } else { > - dc->props =3D uhci_properties_standalone; > + device_class_set_props(dc, uhci_properties_standalone); > } > u->info =3D *info; > } > diff --git a/hw/usb/hcd-xhci.c b/hw/usb/hcd-xhci.c > index 4acf0c6..4b33e6e 100644 > --- a/hw/usb/hcd-xhci.c > +++ b/hw/usb/hcd-xhci.c > @@ -3945,7 +3945,7 @@ static void xhci_class_init(ObjectClass *klass, voi= d *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > =20 > dc->vmsd =3D &vmstate_xhci; > - dc->props =3D xhci_properties; > + device_class_set_props(dc, xhci_properties); > dc->reset =3D xhci_reset; > set_bit(DEVICE_CATEGORY_USB, dc->categories); > k->realize =3D usb_xhci_realize; > diff --git a/hw/usb/host-libusb.c b/hw/usb/host-libusb.c > index bd81d71..f8dacb5 100644 > --- a/hw/usb/host-libusb.c > +++ b/hw/usb/host-libusb.c > @@ -1573,7 +1573,7 @@ static void usb_host_class_initfn(ObjectClass *klas= s, void *data) > uc->alloc_streams =3D usb_host_alloc_streams; > uc->free_streams =3D usb_host_free_streams; > dc->vmsd =3D &vmstate_usb_host; > - dc->props =3D usb_host_dev_properties; > + device_class_set_props(dc, usb_host_dev_properties); > set_bit(DEVICE_CATEGORY_BRIDGE, dc->categories); > } > =20 > diff --git a/hw/usb/redirect.c b/hw/usb/redirect.c > index 528081e..6a0b900 100644 > --- a/hw/usb/redirect.c > +++ b/hw/usb/redirect.c > @@ -2508,7 +2508,7 @@ static void usbredir_class_initfn(ObjectClass *klas= s, void *data) > uc->alloc_streams =3D usbredir_alloc_streams; > uc->free_streams =3D usbredir_free_streams; > dc->vmsd =3D &usbredir_vmstate; > - dc->props =3D usbredir_properties; > + device_class_set_props(dc, usbredir_properties); > set_bit(DEVICE_CATEGORY_MISC, dc->categories); > } > =20 > diff --git a/hw/vfio/pci.c b/hw/vfio/pci.c > index 65d30fd..a17c264 100644 > --- a/hw/vfio/pci.c > +++ b/hw/vfio/pci.c > @@ -2886,7 +2886,7 @@ static void vfio_pci_dev_class_init(ObjectClass *kl= ass, void *data) > PCIDeviceClass *pdc =3D PCI_DEVICE_CLASS(klass); > =20 > dc->reset =3D vfio_pci_reset; > - dc->props =3D vfio_pci_dev_properties; > + device_class_set_props(dc, vfio_pci_dev_properties); > dc->vmsd =3D &vfio_pci_vmstate; > dc->desc =3D "VFIO-based PCI device assignment"; > set_bit(DEVICE_CATEGORY_MISC, dc->categories); > diff --git a/hw/vfio/platform.c b/hw/vfio/platform.c > index a4663c9..9f618ba 100644 > --- a/hw/vfio/platform.c > +++ b/hw/vfio/platform.c > @@ -691,7 +691,7 @@ static void vfio_platform_class_init(ObjectClass *kla= ss, void *data) > SysBusDeviceClass *sbc =3D SYS_BUS_DEVICE_CLASS(klass); > =20 > dc->realize =3D vfio_platform_realize; > - dc->props =3D vfio_platform_dev_properties; > + device_class_set_props(dc, vfio_platform_dev_properties); > dc->vmsd =3D &vfio_platform_vmstate; > dc->desc =3D "VFIO-based platform device assignment"; > sbc->connect_irq_notifier =3D vfio_start_irqfd_injection; > diff --git a/hw/virtio/vhost-vsock.c b/hw/virtio/vhost-vsock.c > index b481562..80718d8 100644 > --- a/hw/virtio/vhost-vsock.c > +++ b/hw/virtio/vhost-vsock.c > @@ -390,7 +390,7 @@ static void vhost_vsock_class_init(ObjectClass *klass= , void *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > VirtioDeviceClass *vdc =3D VIRTIO_DEVICE_CLASS(klass); > =20 > - dc->props =3D vhost_vsock_properties; > + device_class_set_props(dc, vhost_vsock_properties); > dc->vmsd =3D &vmstate_virtio_vhost_vsock; > set_bit(DEVICE_CATEGORY_MISC, dc->categories); > vdc->realize =3D vhost_vsock_device_realize; > diff --git a/hw/virtio/virtio-balloon.c b/hw/virtio/virtio-balloon.c > index 1d77028..fc67ea7 100644 > --- a/hw/virtio/virtio-balloon.c > +++ b/hw/virtio/virtio-balloon.c > @@ -508,7 +508,7 @@ static void virtio_balloon_class_init(ObjectClass *kl= ass, void *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > VirtioDeviceClass *vdc =3D VIRTIO_DEVICE_CLASS(klass); > =20 > - dc->props =3D virtio_balloon_properties; > + device_class_set_props(dc, virtio_balloon_properties); > dc->vmsd =3D &vmstate_virtio_balloon; > set_bit(DEVICE_CATEGORY_MISC, dc->categories); > vdc->realize =3D virtio_balloon_device_realize; > diff --git a/hw/virtio/virtio-mmio.c b/hw/virtio/virtio-mmio.c > index 13798b3..14c98f7 100644 > --- a/hw/virtio/virtio-mmio.c > +++ b/hw/virtio/virtio-mmio.c > @@ -496,7 +496,7 @@ static void virtio_mmio_class_init(ObjectClass *klass= , void *data) > dc->realize =3D virtio_mmio_realizefn; > dc->reset =3D virtio_mmio_reset; > set_bit(DEVICE_CATEGORY_MISC, dc->categories); > - dc->props =3D virtio_mmio_properties; > + device_class_set_props(dc, virtio_mmio_properties); > } > =20 > static const TypeInfo virtio_mmio_info =3D { > diff --git a/hw/virtio/virtio-pci.c b/hw/virtio/virtio-pci.c > index 06831de..f44860d 100644 > --- a/hw/virtio/virtio-pci.c > +++ b/hw/virtio/virtio-pci.c > @@ -1137,7 +1137,7 @@ static void virtio_9p_pci_class_init(ObjectClass *k= lass, void *data) > pcidev_k->revision =3D VIRTIO_PCI_ABI_VERSION; > pcidev_k->class_id =3D 0x2; > set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); > - dc->props =3D virtio_9p_pci_properties; > + device_class_set_props(dc, virtio_9p_pci_properties); > } > =20 > static void virtio_9p_pci_instance_init(Object *obj) > @@ -1899,7 +1899,7 @@ static void virtio_pci_class_init(ObjectClass *klas= s, void *data) > PCIDeviceClass *k =3D PCI_DEVICE_CLASS(klass); > VirtioPCIClass *vpciklass =3D VIRTIO_PCI_CLASS(klass); > =20 > - dc->props =3D virtio_pci_properties; > + device_class_set_props(dc, virtio_pci_properties); > k->realize =3D virtio_pci_realize; > k->exit =3D virtio_pci_exit; > k->vendor_id =3D PCI_VENDOR_ID_REDHAT_QUMRANET; > @@ -1945,7 +1945,7 @@ static void virtio_blk_pci_class_init(ObjectClass *= klass, void *data) > PCIDeviceClass *pcidev_k =3D PCI_DEVICE_CLASS(klass); > =20 > set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); > - dc->props =3D virtio_blk_pci_properties; > + device_class_set_props(dc, virtio_blk_pci_properties); > k->realize =3D virtio_blk_pci_realize; > pcidev_k->vendor_id =3D PCI_VENDOR_ID_REDHAT_QUMRANET; > pcidev_k->device_id =3D PCI_DEVICE_ID_VIRTIO_BLOCK; > @@ -2017,7 +2017,7 @@ static void virtio_scsi_pci_class_init(ObjectClass = *klass, void *data) > =20 > k->realize =3D virtio_scsi_pci_realize; > set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); > - dc->props =3D virtio_scsi_pci_properties; > + device_class_set_props(dc, virtio_scsi_pci_properties); > pcidev_k->vendor_id =3D PCI_VENDOR_ID_REDHAT_QUMRANET; > pcidev_k->device_id =3D PCI_DEVICE_ID_VIRTIO_SCSI; > pcidev_k->revision =3D 0x00; > @@ -2072,7 +2072,7 @@ static void vhost_scsi_pci_class_init(ObjectClass *= klass, void *data) > PCIDeviceClass *pcidev_k =3D PCI_DEVICE_CLASS(klass); > k->realize =3D vhost_scsi_pci_realize; > set_bit(DEVICE_CATEGORY_STORAGE, dc->categories); > - dc->props =3D vhost_scsi_pci_properties; > + device_class_set_props(dc, vhost_scsi_pci_properties); > pcidev_k->vendor_id =3D PCI_VENDOR_ID_REDHAT_QUMRANET; > pcidev_k->device_id =3D PCI_DEVICE_ID_VIRTIO_SCSI; > pcidev_k->revision =3D 0x00; > @@ -2122,7 +2122,7 @@ static void vhost_vsock_pci_class_init(ObjectClass = *klass, void *data) > PCIDeviceClass *pcidev_k =3D PCI_DEVICE_CLASS(klass); > k->realize =3D vhost_vsock_pci_realize; > set_bit(DEVICE_CATEGORY_MISC, dc->categories); > - dc->props =3D vhost_vsock_pci_properties; > + device_class_set_props(dc, vhost_vsock_pci_properties); > pcidev_k->vendor_id =3D PCI_VENDOR_ID_REDHAT_QUMRANET; > pcidev_k->device_id =3D PCI_DEVICE_ID_VIRTIO_VSOCK; > pcidev_k->revision =3D 0x00; > @@ -2174,7 +2174,7 @@ static void virtio_balloon_pci_class_init(ObjectCla= ss *klass, void *data) > PCIDeviceClass *pcidev_k =3D PCI_DEVICE_CLASS(klass); > k->realize =3D virtio_balloon_pci_realize; > set_bit(DEVICE_CATEGORY_MISC, dc->categories); > - dc->props =3D virtio_balloon_pci_properties; > + device_class_set_props(dc, virtio_balloon_pci_properties); > pcidev_k->vendor_id =3D PCI_VENDOR_ID_REDHAT_QUMRANET; > pcidev_k->device_id =3D PCI_DEVICE_ID_VIRTIO_BALLOON; > pcidev_k->revision =3D VIRTIO_PCI_ABI_VERSION; > @@ -2252,7 +2252,7 @@ static void virtio_serial_pci_class_init(ObjectClas= s *klass, void *data) > PCIDeviceClass *pcidev_k =3D PCI_DEVICE_CLASS(klass); > k->realize =3D virtio_serial_pci_realize; > set_bit(DEVICE_CATEGORY_INPUT, dc->categories); > - dc->props =3D virtio_serial_pci_properties; > + device_class_set_props(dc, virtio_serial_pci_properties); > pcidev_k->vendor_id =3D PCI_VENDOR_ID_REDHAT_QUMRANET; > pcidev_k->device_id =3D PCI_DEVICE_ID_VIRTIO_CONSOLE; > pcidev_k->revision =3D VIRTIO_PCI_ABI_VERSION; > @@ -2308,7 +2308,7 @@ static void virtio_net_pci_class_init(ObjectClass *= klass, void *data) > k->revision =3D VIRTIO_PCI_ABI_VERSION; > k->class_id =3D PCI_CLASS_NETWORK_ETHERNET; > set_bit(DEVICE_CATEGORY_NETWORK, dc->categories); > - dc->props =3D virtio_net_properties; > + device_class_set_props(dc, virtio_net_properties); > vpciklass->realize =3D virtio_net_pci_realize; > } > =20 > @@ -2406,7 +2406,7 @@ static void virtio_input_pci_class_init(ObjectClass= *klass, void *data) > VirtioPCIClass *k =3D VIRTIO_PCI_CLASS(klass); > PCIDeviceClass *pcidev_k =3D PCI_DEVICE_CLASS(klass); > =20 > - dc->props =3D virtio_input_pci_properties; > + device_class_set_props(dc, virtio_input_pci_properties); > k->realize =3D virtio_input_pci_realize; > set_bit(DEVICE_CATEGORY_INPUT, dc->categories); > =20 > diff --git a/hw/virtio/virtio-rng.c b/hw/virtio/virtio-rng.c > index 9639f4e..0ce422e 100644 > --- a/hw/virtio/virtio-rng.c > +++ b/hw/virtio/virtio-rng.c > @@ -237,7 +237,7 @@ static void virtio_rng_class_init(ObjectClass *klass,= void *data) > DeviceClass *dc =3D DEVICE_CLASS(klass); > VirtioDeviceClass *vdc =3D VIRTIO_DEVICE_CLASS(klass); > =20 > - dc->props =3D virtio_rng_properties; > + device_class_set_props(dc, virtio_rng_properties); > dc->vmsd =3D &vmstate_virtio_rng; > set_bit(DEVICE_CATEGORY_MISC, dc->categories); > vdc->realize =3D virtio_rng_device_realize; > diff --git a/hw/virtio/virtio.c b/hw/virtio/virtio.c > index d48d1a9..f089ed8 100644 > --- a/hw/virtio/virtio.c > +++ b/hw/virtio/virtio.c > @@ -2166,7 +2166,7 @@ static void virtio_device_class_init(ObjectClass *k= lass, void *data) > dc->realize =3D virtio_device_realize; > dc->unrealize =3D virtio_device_unrealize; > dc->bus_type =3D TYPE_VIRTIO_BUS; > - dc->props =3D virtio_properties; > + device_class_set_props(dc, virtio_properties); > } > =20 > static const TypeInfo virtio_device_info =3D { > diff --git a/hw/xen/xen_backend.c b/hw/xen/xen_backend.c > index 69a2388..60b8d46 100644 > --- a/hw/xen/xen_backend.c > +++ b/hw/xen/xen_backend.c > @@ -877,7 +877,7 @@ static void xen_sysdev_class_init(ObjectClass *klass,= void *data) > SysBusDeviceClass *k =3D SYS_BUS_DEVICE_CLASS(klass); > =20 > k->init =3D xen_sysdev_init; > - dc->props =3D xen_sysdev_properties; > + device_class_set_props(dc, xen_sysdev_properties); > } > =20 > static const TypeInfo xensysdev_info =3D { > diff --git a/hw/xen/xen_pt.c b/hw/xen/xen_pt.c > index b6d71bb..592dc2b 100644 > --- a/hw/xen/xen_pt.c > +++ b/hw/xen/xen_pt.c > @@ -948,7 +948,7 @@ static void xen_pci_passthrough_class_init(ObjectClas= s *klass, void *data) > k->config_write =3D xen_pt_pci_write_config; > set_bit(DEVICE_CATEGORY_MISC, dc->categories); > dc->desc =3D "Assign an host PCI device with Xen"; > - dc->props =3D xen_pci_passthrough_properties; > + device_class_set_props(dc, xen_pci_passthrough_properties); > }; > =20 > static void xen_pci_passthrough_finalize(Object *obj) > diff --git a/include/hw/qdev-core.h b/include/hw/qdev-core.h > index 2c97347..6a41308 100644 > --- a/include/hw/qdev-core.h > +++ b/include/hw/qdev-core.h > @@ -401,6 +401,12 @@ static inline bool qbus_is_hotpluggable(BusState *bu= s) > return bus->hotplug_handler; > } > =20 > +/* Set list of static properties for class > + * > + * It can be called only once per class. > + */ > +void device_class_set_props(DeviceClass *dc, Property *props); > + > void device_listener_register(DeviceListener *listener); > void device_listener_unregister(DeviceListener *listener); > =20 > diff --git a/target-arm/cpu.c b/target-arm/cpu.c > index 2439ca5..ac8dd5d 100644 > --- a/target-arm/cpu.c > +++ b/target-arm/cpu.c > @@ -1531,7 +1531,7 @@ static void arm_cpu_class_init(ObjectClass *oc, voi= d *data) > =20 > acc->parent_realize =3D dc->realize; > dc->realize =3D arm_cpu_realizefn; > - dc->props =3D arm_cpu_properties; > + device_class_set_props(dc, arm_cpu_properties); > =20 > acc->parent_reset =3D cc->reset; > cc->reset =3D arm_cpu_reset; > diff --git a/target-i386/cpu.c b/target-i386/cpu.c > index 83998a8..ca9eaa5 100644 > --- a/target-i386/cpu.c > +++ b/target-i386/cpu.c > @@ -1579,7 +1579,7 @@ static void host_x86_cpu_class_init(ObjectClass *oc= , void *data) > * instance_init, because they require KVM to be initialized. > */ > =20 > - dc->props =3D host_x86_cpu_properties; > + device_class_set_props(dc, host_x86_cpu_properties); > /* Reason: host_x86_cpu_initfn() dies when !kvm_enabled() */ > dc->cannot_destroy_with_object_finalize_yet =3D true; > } > @@ -3651,7 +3651,7 @@ static void x86_cpu_common_class_init(ObjectClass *= oc, void *data) > xcc->parent_unrealize =3D dc->unrealize; > dc->realize =3D x86_cpu_realizefn; > dc->unrealize =3D x86_cpu_unrealizefn; > - dc->props =3D x86_cpu_properties; > + device_class_set_props(dc, x86_cpu_properties); > =20 > xcc->parent_reset =3D cc->reset; > cc->reset =3D x86_cpu_reset; > diff --git a/target-microblaze/cpu.c b/target-microblaze/cpu.c > index 389c7b6..222b54c 100644 > --- a/target-microblaze/cpu.c > +++ b/target-microblaze/cpu.c > @@ -269,7 +269,7 @@ static void mb_cpu_class_init(ObjectClass *oc, void *= data) > cc->get_phys_page_debug =3D mb_cpu_get_phys_page_debug; > #endif > dc->vmsd =3D &vmstate_mb_cpu; > - dc->props =3D mb_properties; > + device_class_set_props(dc, mb_properties); > cc->gdb_num_core_regs =3D 32 + 5; > =20 > cc->disas_set_info =3D mb_disas_set_info; > diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c > index 208fa1e..c5d2de7 100644 > --- a/target-ppc/translate_init.c > +++ b/target-ppc/translate_init.c > @@ -8586,7 +8586,7 @@ POWERPC_FAMILY(POWER7)(ObjectClass *oc, void *data) > =20 > dc->fw_name =3D "PowerPC,POWER7"; > dc->desc =3D "POWER7"; > - dc->props =3D powerpc_servercpu_properties; > + device_class_set_props(dc, powerpc_servercpu_properties); > pcc->pvr_match =3D ppc_pvr_match_power7; > pcc->pcr_mask =3D PCR_VEC_DIS | PCR_VSX_DIS | PCR_COMPAT_2_05; > pcc->pcr_supported =3D PCR_COMPAT_2_06 | PCR_COMPAT_2_05; > @@ -8713,7 +8713,7 @@ POWERPC_FAMILY(POWER8)(ObjectClass *oc, void *data) > =20 > dc->fw_name =3D "PowerPC,POWER8"; > dc->desc =3D "POWER8"; > - dc->props =3D powerpc_servercpu_properties; > + device_class_set_props(dc, powerpc_servercpu_properties); > pcc->pvr_match =3D ppc_pvr_match_power8; > pcc->pcr_mask =3D PCR_TM_DIS | PCR_COMPAT_2_06 | PCR_COMPAT_2_05; > pcc->pcr_supported =3D PCR_COMPAT_2_07 | PCR_COMPAT_2_06 | PCR_COMPA= T_2_05; > @@ -8794,7 +8794,7 @@ POWERPC_FAMILY(POWER9)(ObjectClass *oc, void *data) > =20 > dc->fw_name =3D "PowerPC,POWER9"; > dc->desc =3D "POWER9"; > - dc->props =3D powerpc_servercpu_properties; > + device_class_set_props(dc, powerpc_servercpu_properties); > pcc->pvr_match =3D ppc_pvr_match_power9; > pcc->pcr_mask =3D PCR_COMPAT_2_05 | PCR_COMPAT_2_06 | PCR_COMPAT_2_0= 7; > pcc->init_proc =3D init_proc_POWER9; > diff --git a/tests/test-qdev-global-props.c b/tests/test-qdev-global-prop= s.c > index 48e5b73..2e9d6b9 100644 > --- a/tests/test-qdev-global-props.c > +++ b/tests/test-qdev-global-props.c > @@ -53,7 +53,7 @@ static void static_prop_class_init(ObjectClass *oc, voi= d *data) > DeviceClass *dc =3D DEVICE_CLASS(oc); > =20 > dc->realize =3D NULL; > - dc->props =3D static_props; > + device_class_set_props(dc, static_props); > } > =20 > static const TypeInfo static_prop_type =3D {