[virt-tools-list] [PATCH v2 0/2]bug fix about attaching usb devices from same vendors
Guannan Ren
gren at redhat.com
Tue Apr 23 13:30:33 UTC 2013
v1 to v2
squashed original 1/2 into 2/2
fixed a testcase break
moved get_nodedev_numbers() to addhardware.py
Add a UI fix patch as current [PATCH 1/2]
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] details: the bus, device values of USB device is decimal
[PATCH v2 2/2] addhardware: use bus, device to distingush usb products
tests/nodedev-xml/devxml/usbdev1.xml | 1 +
virtManager/addhardware.py | 40 ++++++++++++++++++++++++++++++++++++++--
virtManager/details.py | 24 +++++++++++++++---------
virtinst/VirtualHostDevice.py | 5 ++---
4 files changed, 56 insertions(+), 14 deletions(-)
More information about the virt-tools-list
mailing list