[libvirt] [PATCH] Implement path lookup for USB by vendor:product

2010-01-12 Thread Cole Robinson
Based off how QEMU does it, look through /sys/bus/usb/devices/* for matching vendor:product info, and if found, use info from the surrounding files to build the device's /dev/bus/usb path. This fixes USB device assignment by vendor:product when running qemu as non-root (well, it should, but for so

Re: [libvirt] [PATCH] Implement path lookup for USB by vendor:product

2010-01-13 Thread Daniel P. Berrange
On Tue, Jan 12, 2010 at 03:26:29PM -0500, Cole Robinson wrote: > diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c > index deb8adc..f03ce91 100644 > --- a/src/qemu/qemu_driver.c > +++ b/src/qemu/qemu_driver.c > @@ -2105,14 +2105,11 @@ static int > qemuDomainSetHostdevUSBOwnership(virCon