Re: [Qemu-devel] [PATCH RFC 0/3] qdev: order devices by priority before creating them

2016-05-15 Thread Marcel Apfelbaum
On 05/11/2016 10:51 AM, Markus Armbruster wrote: Marcel Apfelbaum writes: On 05/10/2016 11:28 AM, Markus Armbruster wrote: Marcel Apfelbaum writes: This series aims to allow more devices to be used with '-device' by sorting the devices based on a predefined creation order flag before creat

Re: [Qemu-devel] [PATCH RFC 0/3] qdev: order devices by priority before creating them

2016-05-11 Thread Paolo Bonzini
On 11/05/2016 17:19, Michael S. Tsirkin wrote: > > If there's just one of its class you can use -global (similar to how we > > use it for floppies). > > I don't like that there's no documentation for these > at all. How are users supposed to know which type to use > for -global? Documentation, o

Re: [Qemu-devel] [PATCH RFC 0/3] qdev: order devices by priority before creating them

2016-05-11 Thread Michael S. Tsirkin
On Wed, May 11, 2016 at 05:09:56PM +0200, Paolo Bonzini wrote: > > > On 11/05/2016 15:55, Michael S. Tsirkin wrote: > > > Could they "know" it by adding an iommu=foo argument to e.g. the PCI > > > bridge, pointing to the IOMMU device? > > > > People don't create the pci host bridge though, it's

Re: [Qemu-devel] [PATCH RFC 0/3] qdev: order devices by priority before creating them

2016-05-11 Thread Paolo Bonzini
On 11/05/2016 15:55, Michael S. Tsirkin wrote: > > Could they "know" it by adding an iommu=foo argument to e.g. the PCI > > bridge, pointing to the IOMMU device? > > People don't create the pci host bridge though, it's > part of the default machine. If there's just one of its class you can use

Re: [Qemu-devel] [PATCH RFC 0/3] qdev: order devices by priority before creating them

2016-05-11 Thread Michael S. Tsirkin
On Tue, May 10, 2016 at 07:13:29PM +0200, Paolo Bonzini wrote: > > > On 10/05/2016 17:36, Michael S. Tsirkin wrote: > >> > Can you explain why requiring the user to specify -device in a sane > >> > order isn't good enough? > > Because it requires knowledge about the hardware. > > For example, how

Re: [Qemu-devel] [PATCH RFC 0/3] qdev: order devices by priority before creating them

2016-05-11 Thread Markus Armbruster
Marcel Apfelbaum writes: > On 05/10/2016 11:28 AM, Markus Armbruster wrote: >> Marcel Apfelbaum writes: >> >>> 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 IOMM

Re: [Qemu-devel] [PATCH RFC 0/3] qdev: order devices by priority before creating them

2016-05-10 Thread Paolo Bonzini
On 10/05/2016 17:36, Michael S. Tsirkin wrote: >> > Can you explain why requiring the user to specify -device in a sane >> > order isn't good enough? > Because it requires knowledge about the hardware. > For example, how do users know that iommu must come before the devices? > They don't. Could

Re: [Qemu-devel] [PATCH RFC 0/3] qdev: order devices by priority before creating them

2016-05-10 Thread Michael S. Tsirkin
On Tue, May 10, 2016 at 10:28:43AM +0200, Markus Armbruster wrote: > Marcel Apfelbaum writes: > > > 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

Re: [Qemu-devel] [PATCH RFC 0/3] qdev: order devices by priority before creating them

2016-05-10 Thread Marcel Apfelbaum
On 05/10/2016 11:28 AM, Markus Armbruster wrote: Marcel Apfelbaum writes: 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 le

Re: [Qemu-devel] [PATCH RFC 0/3] qdev: order devices by priority before creating them

2016-05-10 Thread Markus Armbruster
Marcel Apfelbaum writes: > 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 in

[Qemu-devel] [PATCH RFC 0/3] qdev: order devices by priority before creating them

2016-05-09 Thread Marcel Apfelbaum
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 DeviceC