From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48870) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UtbCx-0008Oz-Cl for qemu-devel@nongnu.org; Mon, 01 Jul 2013 06:19:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UtbCv-0001GM-Pc for qemu-devel@nongnu.org; Mon, 01 Jul 2013 06:19:43 -0400 Received: from [222.73.24.84] (port=7000 helo=song.cn.fujitsu.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UtbCv-0001Fm-Fh for qemu-devel@nongnu.org; Mon, 01 Jul 2013 06:19:41 -0400 From: Hu Tao Date: Mon, 1 Jul 2013 18:18:16 +0800 Message-Id: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH v2 00/26] use realizefn for SysBusDevice, part 1 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel Cc: Igor Mammedov , Peter Crosthwaite , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Eduardo Habkost This series updates part of devices inheriting from SysbusDevice to use DeviceState::realize, and QOM'ify them. These devices are default to x86=5F64-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-ne= xt Changes: 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=C3=A4rber Cc: Peter Crosthwaite Cc: Eduardo Habkost Cc: Igor Mammedov 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=5Fcfi01: use realize for pflash=5Fcfi01 pflash-cfi02: QOM'ify some more pflash=5Fcfi02: use realize for pflash=5Fcfi02 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=5Fbridge=5Finit since it does nothing hw/block/fdc.c | 87 +++++++++++++++++++++++++++++++--------------= ---- hw/block/pflash=5Fcfi01.c | 28 ++++++++-------- hw/block/pflash=5Fcfi02.c | 31 +++++++++--------- hw/i386/kvm/clock.c | 15 +++++---- hw/i386/kvmvapic.c | 12 +++---- hw/ide/ahci.c | 21 ++++++------ hw/intc/ioapic=5Fcommon.c | 12 +++---- hw/isa/isa-bus.c | 8 ----- hw/nvram/fw=5Fcfg.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(-) --=20 1.8.3.1 =