Hi,
On 05/10/2012 02:12 PM, Hans de Goede wrote:
Hi,
On 05/10/2012 01:39 PM, Oved Ourfalli wrote:
Rephrasing my question a bit, to make it more clear.
We are now working on adding the support for native USB devices on oVirt.
This requires adding composite PCI devices to a VM (details below), requiring
specific set of restrictions on the addresses of these devices, and the
connections between them.
Is it possible to add such a composite set of devices to a VM while using
automatic address assignment, as we do today on the other PCI devices?
To be clear, what the ovirt-engine people want to do (AFAIK), is add an EHCI
controller
with UHCI companion controllers to a vm, which would normally be done in the
xml file
like this:
<controller type='usb' index='0' model='ich9-ehci1'>
<address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x7'/>
</controller>
<controller type='usb' index='0' model='ich9-uhci1'>
<master startport='0'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x0'
multifunction='on'/>
</controller>
<controller type='usb' index='0' model='ich9-uhci2'>
<master startport='2'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x1'/>
</controller>
<controller type='usb' index='0' model='ich9-uhci3'>
<master startport='4'/>
<address type='pci' domain='0x0000' bus='0x00' slot='0x08' function='0x2'/>
</controller>
Without manually specifying the addresses, ie they want to be able to write
something like:
<controller type='usb' index='0' model='ich9-ehci1'>
</controller>
<controller type='usb' index='0' model='ich9-uhci1'>
<master startport='0'/>
</controller>
<controller type='usb' index='0' model='ich9-uhci2'>
<master startport='2'/>
</controller>
<controller type='usb' index='0' model='ich9-uhci3'>
<master startport='4'/>
</controller>
As indicated by danpb in a follow up mail fixing this so that the following:
<controller type='usb' index='0' model='ich9-ehci1'>
</controller>
<controller type='usb' index='0' model='ich9-uhci1'>
</controller>
<controller type='usb' index='0' model='ich9-uhci2'>
</controller>
<controller type='usb' index='0' model='ich9-uhci3'>
</controller>
Will work should be doable, a bug has been filed for tracking this:
https://bugzilla.redhat.com/show_bug.cgi?id=820869
Regards,
Hans
--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list