[libvirt] USB: USB Passthrough Device Autoconnect Feature

2013-09-13 Thread Wangyufei (A)
Hello,
Qemu upstream had achieved USB Passthrough Device Autoconnect Feature for the 
guest.
Such as a USB device is unplugged from the host then plugged back in to the 
same USB physical port.

the patch was:
https://lists.gnu.org/archive/html/qemu-devel/2011-05/msg02341.html

However, Libvirt has not provided such an interface that identifies a USB 
device for pass through with physical port, rather than the device number.

Do you have any ideas or plans about this problem? Thanks in advance.

Best Regards,
-WangYufei



--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Re: [libvirt] USB: USB Passthrough Device Autoconnect Feature

2013-09-13 Thread Daniel P. Berrange
On Fri, Sep 13, 2013 at 01:37:33AM +, Gonglei (Arei) wrote:
> Hi, all
> 
> Qemu upstream had achieved USB Passthrough Device Autoconnect Feature for the 
> guest. 
> Such as a USB device is unplugged from the host then plugged back in to the 
> same USB physical port. 
> 
> the patch was:
> https://lists.gnu.org/archive/html/qemu-devel/2011-05/msg02341.html
> 
> However, Libvirt has not provide such an interface that identifies a USB 
> device for pass through with physical port, 
> rather than the device number.
> 
> Do you have any ideas or plans about this problem? Thanks in advance.

Automatically connecting host devices as they are plugged into the
host is a policy decision, and has security implications too - QEMU
will be forbidden to access any plugged devices due to sVirt and also
file permissions. As such we delegate this tasks to applications using
libvirt, and do not intend to do anything to have this automatic plugging
done by libvirt or qemu itself.

Daniel
-- 
|: http://berrange.com  -o-http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org  -o- http://virt-manager.org :|
|: http://autobuild.org   -o- http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org   -o-   http://live.gnome.org/gtk-vnc :|

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list


[libvirt] USB: USB Passthrough Device Autoconnect Feature

2013-09-12 Thread Gonglei (Arei)
Hi, all

Qemu upstream had achieved USB Passthrough Device Autoconnect Feature for the 
guest. 
Such as a USB device is unplugged from the host then plugged back in to the 
same USB physical port. 

the patch was:
https://lists.gnu.org/archive/html/qemu-devel/2011-05/msg02341.html

However, Libvirt has not provide such an interface that identifies a USB device 
for pass through with physical port, 
rather than the device number.

Do you have any ideas or plans about this problem? Thanks in advance.

Best Regards,
-Gonglei

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list