Hello Anthony, This is my current QOM devices patch queue for 1.6. Please pull.
FROM_SYSBUS(): 188 -> 176 DO_UPCAST(): 468 -> 421 Thanks, Andreas Cc: Anthony Liguori <anth...@codemonkey.ws> Cc: Peter Maydell <peter.mayd...@linaro.org> Cc: Peter Crosthwaite <peter.crosthwa...@xilinx.com> Cc: Hu Tao <hu...@cn.fujitsu.com> Cc: Michael S. Tsirkin <m...@redhat.com> (pci) Cc: Paolo Bonzini <pbonz...@redhat.com> (scsi) Cc: Stefan Hajnoczi <stefa...@redhat.com> (fdc) The following changes since commit 3464700f6aecb3e2aa9098839d90672d6b3fa974: tests: Add test-bitops.c with some sextract tests (2013-07-22 15:41:49 -0500) are available in the git repository at: git://github.com/afaerber/qemu-cpu.git tags/qom-devices-for-anthony for you to fetch changes up to 52785d99513e4f5d8c3d94f4362ff54aba88f33c: isa-bus: Drop isabus_bridge_init() since it does nothing (2013-07-23 00:37:35 +0200) ---------------------------------------------------------------- QOM device refactorings * Avoid TYPE_* in VMStateDescription name * Replace some DO_UPCAST()s and FROM_SYSBUS()s with QOM casts * Limit legacy SCSI command line handling to non-hotplugged devices * Replace some SysBusDeviceClass::init with DeviceClass::realize ---------------------------------------------------------------- Andreas Färber (15): net/e1000: QOM parent field cleanup net/rtl8139: QOM parent field cleanup usb/hcd-xhci: QOM parent field cleanup scsi/lsi53c895a: QOM parent field cleanup scsi/megasas: QOM parent field cleanup scsi/esp-pci: QOM parent field cleanup ide/ich: QOM parent field cleanup acpi/piix4: QOM parent field cleanup misc/pci-testdev: QOM parent field cleanup display/vmware_vga: QOM parent field cleanup misc/ivshmem: QOM parent field cleanup xen/xen_platform: QOM parent field cleanup fdc: Improve error propagation for QOM realize megasas: Legacy command line handling fix scsi: Improve error propagation for scsi_bus_legacy_handle_cmdline() Hu Tao (26): sysbus: Document SysBusDeviceClass::init and realize semantics ohci: QOM'ify some more ohci: Use QOM realize for OHCI i440fx: Use type-safe cast instead of direct access of parent dev i440fx-pcihost: Use QOM realize for i440fx-pcihost q35: Use type-safe cast instead of direct access of parent dev q35: Use QOM realize for q35 host bridge fdc: QOM'ify some more pflash-cfi01: QOM'ify some more pflash-cfi02: QOM'ify some more ahci: QOM'ify some more fwcfg: QOM'ify some more scsi/esp: QOM'ify some more hpet: QOM'ify some more kvm/clock: QOM'ify some more fdc: Use QOM realize for fdc pflash_cfi01: Use QOM realize for pflash_cfi01 pflash_cfi02: Use QOM realize for pflash_cfi02 ahci: Use QOM realize for ahci fw_cfg: Use QOM realize for fw_cfg scsi/esp: Use QOM realize for scsi esp hpet: Use QOM realize for hpet kvm/clock: Use QOM realize for kvmclock kvmvapic: Use QOM realize ioapic: Use QOM realize for ioapic isa-bus: Drop isabus_bridge_init() since it does nothing Peter Crosthwaite (13): net/e1000: QOM Upcast Sweep net/rtl8139: QOM Upcast Sweep net/pcnet-pci: QOM Upcast Sweep usb/hcd-xhci: QOM Upcast Sweep scsi/lsi53c895a: QOM Upcast Sweep scsi/megasas: QOM Upcast Sweep scsi/esp-pci: QOM Upcast Sweep ide/ich: QOM Upcast Sweep acpi/piix4: QOM Upcast Sweep misc/pci-testdev: QOM Upcast Sweep display/vmware_vga: QOM casting sweep misc/ivshmem: QOM Upcast Sweep xen/xen_platform: QOM casting sweep Peter Maydell (1): hw: Avoid use of QOM type name macros in VMStateDescriptions hw/acpi/piix4.c | 63 ++++++++++++--------- hw/block/fdc.c | 126 ++++++++++++++++++++++++++---------------- hw/block/pflash_cfi01.c | 33 +++++------ hw/block/pflash_cfi02.c | 36 ++++++------ hw/display/vmware_vga.c | 36 +++++++----- hw/i2c/exynos4210_i2c.c | 2 +- hw/i386/kvm/clock.c | 18 +++--- hw/i386/kvmvapic.c | 12 ++-- hw/i386/pc_q35.c | 4 +- hw/ide/ahci.c | 39 +++++++------ hw/ide/ahci.h | 10 +++- hw/ide/ich.c | 32 +++++------ hw/intc/ioapic_common.c | 12 ++-- hw/isa/isa-bus.c | 8 --- hw/misc/ivshmem.c | 59 ++++++++++++-------- hw/misc/pci-testdev.c | 24 +++++--- hw/net/e1000.c | 53 +++++++++++------- hw/net/pcnet-pci.c | 21 ++++--- hw/net/rtl8139.c | 114 ++++++++++++++++++++++---------------- hw/nvram/fw_cfg.c | 42 ++++++++------ hw/pci-host/piix.c | 54 +++++++++++------- hw/pci-host/q35.c | 68 ++++++++++++----------- hw/pci/pci-hotplug-old.c | 2 +- hw/scsi/esp-pci.c | 36 ++++++++---- hw/scsi/esp.c | 42 ++++++++------ hw/scsi/lsi53c895a.c | 79 ++++++++++++++++---------- hw/scsi/megasas.c | 71 +++++++++++++++--------- hw/scsi/scsi-bus.c | 22 +++++--- hw/scsi/spapr_vscsi.c | 7 ++- hw/scsi/virtio-scsi.c | 7 ++- hw/scsi/vmw_pvscsi.c | 4 +- hw/timer/hpet.c | 51 ++++++++++------- hw/timer/imx_epit.c | 2 +- hw/timer/imx_gpt.c | 2 +- hw/usb/ccid-card-passthru.c | 2 +- hw/usb/dev-smartcard-reader.c | 2 +- hw/usb/dev-storage.c | 4 +- hw/usb/hcd-ohci.c | 51 ++++++++++------- hw/usb/hcd-xhci.c | 104 ++++++++++++++++++++-------------- hw/xen/xen_platform.c | 35 +++++++----- include/hw/pci-host/q35.h | 10 +++- include/hw/scsi/scsi.h | 4 +- include/hw/sysbus.h | 12 ++++ 43 files changed, 855 insertions(+), 560 deletions(-)