From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:49908) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvUel-0003Ax-Ay for qemu-devel@nongnu.org; Wed, 16 Jan 2013 10:12:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TvUeh-00031u-G6 for qemu-devel@nongnu.org; Wed, 16 Jan 2013 10:11:59 -0500 Received: from cantor2.suse.de ([195.135.220.15]:56698 helo=mx2.suse.de) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvUeh-00031d-A5 for qemu-devel@nongnu.org; Wed, 16 Jan 2013 10:11:55 -0500 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= Date: Wed, 16 Jan 2013 16:11:45 +0100 Message-Id: <1358349107-19592-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 prep for-1.4? v2 0/2] prep_pci: Prepare for QOM realize List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Markus Armbruster , Alexander Graf , =?UTF-8?q?Andreas=20F=C3=A4rber?= , =?UTF-8?q?Herv=C3=A9=20Poussineau?= , anthony@codemonkey.ws, pbonzini@redhat.com From: Andreas F=C3=A4rber Hello Anthony and Paolo, Here's a respin of the patch that prompted the big PCI host bridge refact= oring. It embeds PCIBus and PCIDevice into the host bridge state QOM-style. Question: Is the use of object_unref() correct and future-proof now? I'm also adding a second patch even more as an example of what is possibl= e with QOM types and now QOM realize: New SysBusDevices (e.g., IDE refactoring) = can get a realizefn straight away! Regards, Andreas v1 -> v2: * Rebased onto PCI header reorganization (pci_internal.h -> pci/pci_bus.h= ). * Replaced privatized object_finalize() with object_unref(). * Added patch converting initfn to realizefn. Cc: Anthony Liguori Cc: Paolo Bonzini Cc: Markus Armbruster Cc: Alexander Graf Cc: Herv=C3=A9 Poussineau Andreas F=C3=A4rber (2): prep_pci: Create PCIBus and PCIDevice in-place prep_pci: Convert to QOM realizefn hw/prep_pci.c | 65 +++++++++++++++++++++++++++++++++++++++++++--------= ------ 1 Datei ge=C3=A4ndert, 49 Zeilen hinzugef=C3=BCgt(+), 16 Zeilen entfernt= (-) --=20 1.7.10.4