qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH prep for-1.4? v2 0/2] prep_pci: Prepare for QOM realize
@ 2013-01-16 15:11 Andreas Färber
  2013-01-16 15:11 ` [Qemu-devel] [PATCH prep for-1.4? v2 1/2] prep_pci: Create PCIBus and PCIDevice in-place Andreas Färber
  2013-01-16 15:11 ` [Qemu-devel] [PATCH prep for-1.4? v2 2/2] prep_pci: Convert to QOM realizefn Andreas Färber
  0 siblings, 2 replies; 3+ messages in thread
From: Andreas Färber @ 2013-01-16 15:11 UTC (permalink / raw)
  To: qemu-devel
  Cc: Markus Armbruster, Alexander Graf, Andreas Färber,
	Hervé Poussineau, anthony, pbonzini

From: Andreas Färber <andreas.faerber@web.de>

Hello Anthony and Paolo,

Here's a respin of the patch that prompted the big PCI host bridge refactoring.
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 possible 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 <anthony@codemonkey.ws>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Markus Armbruster <armbru@redhat.com>
Cc: Alexander Graf <agraf@suse.de>
Cc: Hervé Poussineau <hpoussin@reactos.org>

Andreas Färber (2):
  prep_pci: Create PCIBus and PCIDevice in-place
  prep_pci: Convert to QOM realizefn

 hw/prep_pci.c |   65 +++++++++++++++++++++++++++++++++++++++++++--------------
 1 Datei geändert, 49 Zeilen hinzugefügt(+), 16 Zeilen entfernt(-)

-- 
1.7.10.4

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-01-16 15:12 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-16 15:11 [Qemu-devel] [PATCH prep for-1.4? v2 0/2] prep_pci: Prepare for QOM realize Andreas Färber
2013-01-16 15:11 ` [Qemu-devel] [PATCH prep for-1.4? v2 1/2] prep_pci: Create PCIBus and PCIDevice in-place Andreas Färber
2013-01-16 15:11 ` [Qemu-devel] [PATCH prep for-1.4? v2 2/2] prep_pci: Convert to QOM realizefn Andreas Färber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).