[virt-tools-list] [PATCH 0/2] bug fix about attaching usb devices from same vendors

Guannan Ren gren at redhat.com
Mon Apr 22 17:45:30 UTC 2013


Resolve: https://bugzilla.redhat.com/show_bug.cgi?id=820303

When there are multiple usb devices being attached with same
vendorId and productId, virt-manager failed to distinguish
them.
The patchset makes virt-manager use <address> to distingush
multiple usb devices as follows:

  <hostdev mode='subsystem' type='usb' managed='yes'>
    <source>
      <address bus='5' device='19'/>
    </source>
  </hostdev>

When there is unique usb device, the xml is like:
  <hostdev mode="subsystem" type="usb" managed="yes">
    <source>
      <vendor id="0x15e1"/>
      <product id="0x2007"/>
    </source>
  </hostdev>

This is fix only for virt-manager. About virtinst, patch will be
submitted later.

Guannan Ren(2)
 [PATCH 1/2] addhardware: store device type in host-device treeview
 [PATCH 2/2] addhardware: use bus,device to distingush usb products

 virtManager/addhardware.py    | 25 +++++++++++++++++++++++--
 virtManager/connection.py     | 20 ++++++++++++++++++++
 virtinst/VirtualHostDevice.py |  5 ++---
 3 files changed, 45 insertions(+), 5 deletions(-)






More information about the virt-tools-list mailing list