]> xenbits.xensource.com Git - libvirt.git/commit
libxl: support hotplug USB host device
authorChunyan Liu <cyliu@suse.com>
Thu, 19 May 2016 08:14:34 +0000 (16:14 +0800)
committerJim Fehlig <jfehlig@suse.com>
Tue, 14 Jun 2016 20:26:09 +0000 (14:26 -0600)
commitfc21d1065b1684bca081fa2b141bd5ad69c7bb38
tree9a77a82b443aa9a1ef151042ae904586d8569945
parent2a58ed0bce8f2b5f1966fc67e56188a8175dd149
libxl: support hotplug USB host device

Support hot attach/detach a USB host device to guest.
Currently libxl only supports xen PV guest, and only
supports specifying USB host device by 'bus number'
and 'device number', for example:

 usb.xml:
    <hostdev mode='subsystem' type='usb' managed='no'>
      <source>
        <address bus='1' device='3'/>
      </source>
    </hostdev>
 #xl attach-device dom usb.xml
 #xl detach-device dom usb.xml

Signed-off-by: Chunyan Liu <cyliu@suse.com>
Signed-off-by: Jim Fehlig <jfehlig@suse.com>
src/libxl/libxl_driver.c