[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH v2 00/26] use realizefn for SysBusDevice, part 1

From: Hu Tao
Subject: [Qemu-devel] [PATCH v2 00/26] use realizefn for SysBusDevice, part 1
Date: Mon, 1 Jul 2013 18:18:16 +0800

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, SysBusDeviceClass::init can be removed.

v2 is based on qom-next at https://github.com/afaerber/qemu-cpu/tree/qom-next


  v2:  1. swap the order of some patches to first use type-cast macro
          then convert to realizefn.
       2. document SysBusDeviceClass::init
       3. don't touch VMStateDescription::name
       4. drop patch for ehci as the part's already been done by Andreas

Cc: Andreas Färber <address@hidden>
Cc: Peter Crosthwaite <address@hidden>
Cc: Eduardo Habkost <address@hidden>
Cc: Igor Mammedov <address@hidden>

Hu Tao (26):
  sysbus: document SysBusDeviceClass about @init
  ohci: QOM'ify some more
  ohci: use realize for ohci
  i440fx-pcihost: use realize for i440fx-pcihost
  i440fx: use type-safe cast instead of directly access of parent dev
  q35: use type-safe cast instead of directly access of parent dev
  q35: use realize for q35 host
  fdc: QOM'ify some more
  fdc: use realize for fdc.
  pflash-cfi01: QOM'ify some more
  pflash_cfi01: use realize for pflash_cfi01
  pflash-cfi02: QOM'ify some more
  pflash_cfi02: use realize for pflash_cfi02
  ahci: QOM'ify some more
  ahci: use realize for ahci
  fwcfg: QOM'ify some more
  fwcfg: use realize for fwcfg
  scsi esp: QOM'ify some more
  scsi esp: use realize for scsi esp
  hpet: QOM'ify some more
  hpet: use realize for hpet
  kvmclock: QOM'ify some more
  kvmclock: use realize for kvmclock
  kvmvapic realize
  ioapic: use realize for ioapic
  isa bus: remove isabus_bridge_init since it does nothing

 hw/block/fdc.c          | 87 +++++++++++++++++++++++++++++++------------------
 hw/block/pflash_cfi01.c | 28 ++++++++--------
 hw/block/pflash_cfi02.c | 31 +++++++++---------
 hw/i386/kvm/clock.c     | 15 +++++----
 hw/i386/kvmvapic.c      | 12 +++----
 hw/ide/ahci.c           | 21 ++++++------
 hw/intc/ioapic_common.c | 12 +++----
 hw/isa/isa-bus.c        |  8 -----
 hw/nvram/fw_cfg.c       | 36 +++++++++++---------
 hw/pci-host/piix.c      | 36 ++++++++++++--------
 hw/pci-host/q35.c       | 60 +++++++++++++++++-----------------
 hw/scsi/esp.c           | 46 ++++++++++++++++----------
 hw/timer/hpet.c         | 44 +++++++++++++++----------
 hw/usb/hcd-ohci.c       | 32 +++++++++---------
 include/hw/sysbus.h     | 10 ++++++
 15 files changed, 268 insertions(+), 210 deletions(-)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]