[libvirt] USB redirection support

Marc-André Lureau marcandre.lureau at gmail.com
Fri Apr 6 13:34:09 UTC 2012


On Fri, Apr 6, 2012 at 2:51 PM, Christophe Fergeau <cfergeau at redhat.com> wrote:
> This patch series adds the needed classes for apps to be able to
> use USB redirection. I've followed
> http://hansdegoede.livejournal.com/11084.html and added all the API needed
> to be able to get the same XML. However, I'm not 100% sure all these
> attributes are required, in particular the various addresses.

You only need to specify the startport. (ie, look at how it's
implemented in python-virtinst)

This is the expected XML

    <controller type='usb' index='0' model='ich9-ehci1'/>
    <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>

I would add a convenience function to add these controllers (in
python-virtinst: add_usb_ich9_controllers)

regards

-- 
Marc-André Lureau




More information about the libvir-list mailing list