From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:60936) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPXmP-0002Lk-Qf for qemu-devel@nongnu.org; Wed, 02 May 2012 07:31:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SPXmJ-0000Fi-D1 for qemu-devel@nongnu.org; Wed, 02 May 2012 07:31:33 -0400 Received: from mail-pb0-f45.google.com ([209.85.160.45]:48124) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SPXmJ-0000FY-4T for qemu-devel@nongnu.org; Wed, 02 May 2012 07:31:27 -0400 Received: by pbbro12 with SMTP id ro12so1148607pbb.4 for ; Wed, 02 May 2012 04:31:25 -0700 (PDT) Sender: Paolo Bonzini From: Paolo Bonzini Date: Wed, 2 May 2012 13:30:52 +0200 Message-Id: <1335958273-769-1-git-send-email-pbonzini@redhat.com> Subject: [Qemu-devel] [PATCH 00/21] qbus QOM conversion, rebased on top of my patches List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: peter.maydell@linaro.org, aliguori@us.ibm.com, liwp@linux.vnet.ibm.com, afaerber@suse.de Here is Anthony's qbus conversion, with the qdev_add_properties changes replaced by my bus property changes. I left out the removal of bus methods; I'm not sure I agree with all of them (though I may just give up :)) and anyway they can be left to 1.2. Following Andreas's remark, I moved all TYPE_* definitions for buses to the same file that defines the struct, and added typecasting macros. I'm still a bit weary of putting this in this late, but I'll defer to others on this too. Anthony Liguori (6): qdev: fix adding of ptr properties qdev: use wrapper for qdev_get_path qdev: convert busses to QEMU Object Model qdev: connect busses with their parent devices qbus: make child devices links qbus: initialize in standard way Paolo Bonzini (15): qom: documentation addition qom: add object_class_get_parent qom: add class_base_init qom: make Object a type qom: assert that public types have a non-NULL parent field qdev: push "type" property up to Object qdev: fix -device foo,? qdev: use object_property_print in info qtree qdev: move bus properties to a separate global qdev: do not propagate properties to subclasses qdev: move bus properties to abstract superclasses pc: add back PCI.rombar compat property qdev: clean up global properties qdev: remove qdev_prop_set_defaults qdev: move sysbus initialization to sysbus.c exec.c | 4 +- hw/acpi_piix4.c | 10 +- hw/i2c.c | 30 +++-- hw/ide/internal.h | 3 + hw/ide/qdev.c | 31 +++-- hw/intel-hda.c | 37 ++--- hw/intel-hda.h | 3 + hw/isa-bus.c | 23 +++- hw/isa.h | 3 + hw/lsi53c895a.c | 5 +- hw/pc_piix.c | 9 +- hw/pci-hotplug.c | 6 +- hw/pci.c | 49 ++++--- hw/pci_bridge.c | 2 +- hw/pci_internals.h | 3 +- hw/qdev-monitor.c | 105 ++++++++------- hw/qdev-properties.c | 62 +++------ hw/qdev.c | 298 +++++++++++++++++++++++++++-------------- hw/qdev.h | 56 ++++---- hw/s390-virtio-bus.c | 37 ++--- hw/s390-virtio-bus.h | 3 + hw/scsi-bus.c | 54 +++++--- hw/scsi.h | 3 + hw/spapr_pci.c | 7 +- hw/spapr_vio.c | 49 ++++--- hw/spapr_vio.h | 3 + hw/spapr_vty.c | 6 +- hw/ssi.c | 29 ++-- hw/sysbus.c | 45 ++++++- hw/sysbus.h | 3 + hw/usb.h | 3 + hw/usb/bus.c | 45 ++++--- hw/usb/desc.c | 5 +- hw/usb/dev-smartcard-reader.c | 25 ++-- hw/virtio-scsi.c | 6 +- hw/virtio-serial-bus.c | 35 +++-- include/qemu/object.h | 27 +++- qom/object.c | 105 +++++++++++---- savevm.c | 12 +- 39 files changed, 783 insertions(+), 458 deletions(-) -- 1.7.9.3