This series updates part of devices inheriting from SysbusDevice to use DeviceState::realize, and QOM'ify them.
These devices are default to x86_64-softmmu. I'm planning to make patches in the same manner, that is, each series is for devices default to each target. After all devices are converted to realizefn, SysBusDevice::init can be removed. Hu Tao (26): ohci: use realize for ohci ohci: QOM'ify some more i440fx-pcihost: use realize for i440fx-pcihost i440fx: use type-safe cast instead of directly access of parent dev q35: use realize for q35 host q35: use type-safe cast instead of directly access of parent dev fdc: use realize for fdc. fdc: QOM'ify some more pflash_cfi01: use realize for pflash_cfi01 pflash-cfi01: QOM'ify some more pflash_cfi02: use realize for pflash_cfi02 pflash-cfi02: QOM'ify some more ahci: use realize for ahci ahci: QOM'ify some more fwcfg: use realize for fwcfg fwcfg: QOM'ify some more scsi esp: use realize for scsi esp scsi esp: QOM'ify some more hpet: use realize for hpet hpet: QOM'ify some more kvmclock: use realize for kvmclock kvmclock: QOM'ify some more kvmvapic realize ioapic: use realize for ioapic isa bus: use realize for isa bus ehci: use realize for ehci hw/block/fdc.c | 84 ++++++++++++++++++++++++++++++------------------ hw/block/pflash_cfi01.c | 28 ++++++++-------- hw/block/pflash_cfi02.c | 31 +++++++++--------- hw/i386/kvm/clock.c | 17 +++++----- hw/i386/kvmvapic.c | 12 +++---- hw/ide/ahci.c | 23 ++++++------- hw/intc/ioapic_common.c | 10 +++--- hw/isa/isa-bus.c | 7 ++-- hw/nvram/fw_cfg.c | 38 +++++++++++++--------- hw/pci-host/piix.c | 36 +++++++++++++-------- hw/pci-host/q35.c | 60 +++++++++++++++++----------------- hw/scsi/esp.c | 46 ++++++++++++++++---------- hw/timer/hpet.c | 43 +++++++++++++++---------- hw/usb/hcd-ehci-sysbus.c | 11 +++---- hw/usb/hcd-ohci.c | 27 +++++++++------- 15 files changed, 263 insertions(+), 210 deletions(-) -- 1.8.3.1