qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH RFC 0/3] qdev: order devices by priority before creating them
@ 2016-05-09 17:47 Marcel Apfelbaum
  2016-05-09 17:47 ` [Qemu-devel] [PATCH RFC 1/3] qdev: add device creation priority flag Marcel Apfelbaum
                   ` (3 more replies)
  0 siblings, 4 replies; 14+ messages in thread
From: Marcel Apfelbaum @ 2016-05-09 17:47 UTC (permalink / raw)
  To: qemu-devel; +Cc: marcel, pbonzini, mst

This series aims to allow more devices to be used with '-device'
by sorting the devices based on a predefined creation order flag
before creating them.

Devices like IOMMU need to be created before others, so they can leverage
the DeviceCreationPriority flag introduced by the first patch to DeviceClass.

The second patch sorts the devices by their DeviceCreationPriority
before creating them.

Finally, the last patch demonstrates how it can be used to ensure
the creation of host-bridges before the pci-bridges and pci-bridges before
the others.

I preferred to combine all the priorities into a single enum
to better manage the creation order.

This is an RFC because I only wanted to know if it seems like the right way to go.
Comments are appreciated,

Thanks,
Marcel

Marcel Apfelbaum (3):
  qdev: add device creation priority flag
  vl.c: create devices by their creation priority flag
  hw/pci-bridge: add the corresponding creation priority flag

 hw/pci-bridge/pci_bridge_dev.c      |  1 +
 hw/pci-bridge/pci_expander_bridge.c |  2 ++
 include/hw/qdev-core.h              | 13 +++++++++
 include/monitor/qdev.h              |  1 +
 qdev-monitor.c                      | 19 +++++++++++++
 vl.c                                | 55 +++++++++++++++++++++++++++++++------
 6 files changed, 82 insertions(+), 9 deletions(-)

-- 
2.4.3

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

end of thread, other threads:[~2016-05-15 11:23 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-05-09 17:47 [Qemu-devel] [PATCH RFC 0/3] qdev: order devices by priority before creating them Marcel Apfelbaum
2016-05-09 17:47 ` [Qemu-devel] [PATCH RFC 1/3] qdev: add device creation priority flag Marcel Apfelbaum
2016-05-09 17:47 ` [Qemu-devel] [PATCH RFC 2/3] vl.c: create devices by their " Marcel Apfelbaum
2016-05-09 17:47 ` [Qemu-devel] [PATCH RFC 3/3] hw/pci-bridge: add the corresponding " Marcel Apfelbaum
2016-05-10  8:28 ` [Qemu-devel] [PATCH RFC 0/3] qdev: order devices by priority before creating them Markus Armbruster
2016-05-10 11:05   ` Marcel Apfelbaum
2016-05-11  7:51     ` Markus Armbruster
2016-05-15 11:23       ` Marcel Apfelbaum
2016-05-10 15:36   ` Michael S. Tsirkin
2016-05-10 17:13     ` Paolo Bonzini
2016-05-11 13:55       ` Michael S. Tsirkin
2016-05-11 15:09         ` Paolo Bonzini
2016-05-11 15:19           ` Michael S. Tsirkin
2016-05-11 15:25             ` Paolo Bonzini

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).