[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH V3 4/6] xl: add pvusb commands
On Mon, Apr 20, 2015 at 9:12 AM, Juergen Gross <jgross@xxxxxxxx> wrote: > On 04/19/2015 05:50 AM, Chunyan Liu wrote: >> >> Add pvusb commands: usb-ctrl-attach, usb-ctrl-detach, usb-list, >> usb-attach and usb-detach. >> >> To attach a usb device to guest through pvusb, one could follow >> following example: >> >> #xl usb-ctrl-attach test_vm version=1 num_ports=8 >> >> #xl usb-list test_vm >> will show the usb controllers and port usage under the domain. >> >> #xl usb-attach test_vm 1.6 >> will find the first usable controller:port, and attach usb >> device whose bus address is 1.6 (busnum is 1, devnum is 6) >> to it. One could also specify which <controller> and which <port>. >> >> #xl usb-detach test_vm 1.6 >> >> #xl usb-ctrl-detach test_vm dev_id >> will destroy the controller with specified dev_id. Dev_id >> can be traced in usb-list info. >> >> Signed-off-by: Chunyan Liu <cyliu@xxxxxxxx> >> Signed-off-by: Simon Cao <caobosimon@xxxxxxxxx> >> --- >> Changes to v2: >> * use bus.addr as user interface instead of busid in usb-attach|detach >> * remove usb-assignable-list interface > > > Why? While lsusb in combination with xl usb-list for each domain will > give the same information, having to iterate through all domains can be > quite annoying. > > An alternative would be to accept omitting the domain for xl usb-list > and list all domains with assigned usb devices in this case. I don't understand what information it is that you want. Do you want a list of devices *not already assigned* to domains? -George _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |