From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:42647) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1OiH-0007q7-GU for qemu-devel@nongnu.org; Mon, 22 Jul 2013 18:36:20 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V1OiG-0006kB-83 for qemu-devel@nongnu.org; Mon, 22 Jul 2013 18:36:17 -0400 Received: from cantor2.suse.de ([195.135.220.15]:44291 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V1OiG-0006k4-1L for qemu-devel@nongnu.org; Mon, 22 Jul 2013 18:36:16 -0400 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Tue, 23 Jul 2013 00:36:04 +0200 Message-Id: <1374532568-28051-1-git-send-email-afaerber@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Subject: [Qemu-devel] [PATCH qom-next v2 0/4] QOM'ification of pci-bridge types List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Crosthwaite , "Michael S. Tsirkin" , Hu Tao , Anthony Liguori , Paolo Bonzini , =?UTF-8?q?Andreas=20F=C3=A4rber?= Hello Michael et al., This series turns PCIBridge, PCIEPort and PCIESlot into abstract QOM type= s, so that we can use QOM casts to obtain a pointer. The PCIBridge part was prompted by Don Koch's PCI bridge patch; the remai= nder by Peter C.'s PCIDevice cast cleanups. This prepares for turning the two-level qdev PCIDevice initfns into QOM multi-level realizefns, touched upon by Hu Tao's SysBus conversions. v2 moves qdev properties to PCIEPort/PCIESlot as appropriate. Regards, Andreas v1 -> v2: * Rebased on PCIBridge change, replacing a new container_of(). * Moved qdev properties to PCIEPort and PCIESlot respectively. * Don't cleverly avoid parent_obj.parent_obj chains in VMState (mst/aligu= ori). Cc: Anthony Liguori Cc: Paolo Bonzini Cc: Michael S. Tsirkin Cc: Peter Crosthwaite Cc: Hu Tao Andreas F=C3=A4rber (4): pci-bridge: Turn PCIBridge into abstract QOM type pci-bridge-dev: QOM parent field cleanup pci-bridge/i82801b11: Rename parent field pcie_port: Turn PCIEPort and PCIESlot into abstract QOM types hw/pci-bridge/dec.c | 4 +-- hw/pci-bridge/i82801b11.c | 10 +++++--- hw/pci-bridge/ioh3420.c | 35 ++++++++----------------- hw/pci-bridge/pci_bridge_dev.c | 26 +++++++++++-------- hw/pci-bridge/xio3130_downstream.c | 35 ++++++++----------------- hw/pci-bridge/xio3130_upstream.c | 26 ++++++------------- hw/pci-host/apb.c | 4 +-- hw/pci/pci.c | 2 +- hw/pci/pci_bridge.c | 40 +++++++++++++++++++++-------- hw/pci/pcie.c | 2 +- hw/pci/pcie_port.c | 52 ++++++++++++++++++++++++++++++++= ++++++ include/hw/pci/pci_bus.h | 7 ++++- include/hw/pci/pcie_port.h | 14 ++++++++-- 13 files changed, 155 insertions(+), 102 deletions(-) --=20 1.8.1.4