Re: Configuration vs. compat hints [was Re: [Qemu-devel] [PATCHv3 03/13] qemu: add routines to manage PCI capabilities]

Anthony Liguori
2009-06-15T12:52:21Z

Avi Kivity wrote:
> On 06/15/2009 03:41 PM, Michael S. Tsirkin wrote:
>> We should just tell the user which slots are open.
>>
>> This might be tricky if the config is passed in with the command line
>> flags.
>>
>
> qemu -show-available-pci-slots

Why does the user care?

Let QEMU allocate the PCI slot, then query it to see what slot it
assigned and remember that.

It's not a good idea to have management applications attempt to do PCI
slot allocation. For instance, one day we may decide to make virtio
devices multi-function.

Regards,

Anthony Liguori