|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH RFC 0.2 2/2] xl: Add usb-add and usb-del commands
On 11/04/13 16:20, George Dunlap wrote: Add commands to add and remove host USB to HVM guests. WARNING: STILL A PROTOTYPE Signed-off-by: George Dunlap <george.dunlap@xxxxxxxxxxxxx> --- docs/man/xl.pod.1 | 51 ++++++++++++++++++++++ tools/libxl/xl.h | 2 + tools/libxl/xl_cmdimpl.c | 105 +++++++++++++++++++++++++++++++++++++++++++++ tools/libxl/xl_cmdtable.c | 5 +++ 4 files changed, 163 insertions(+) diff --git a/docs/man/xl.pod.1 b/docs/man/xl.pod.1 index a0e298e..2b5e6d7 100644 --- a/docs/man/xl.pod.1 +++ b/docs/man/xl.pod.1 @@ -1110,6 +1110,57 @@ List virtual network interfaces for a domain.=back +=head2 HVM DEVICES+ +=over 4 + +=item B<hvm-host-usb-add> I<-d domain-id> I<-v host-device-spec> [I<-i devname>] Hmm, it should be obvious that this bit is pure fiction... I'll of course fix it up before the final submission. -G + +Passes through the host USB device specified by I<host-device-spec> to the +HVM domain I<domain-id>. Host-device-spec can be one of the following: + +=over 4 + +=item <hostbus>.<hostaddr> + +=item <vendorid>:<productid> + +=item <hostbus>.<hostaddr>:<vendorid>:<productid> + +=back + +The best way to find out the information for the device is typically using +lsusb. + +Using the I<-i> option, you can specify a I<devname> for the +device. This is an arbitrary string that can be used by +I<hvm-host-usb-del> to remove the device later. If no name is +specified, then one will be chosen automatically. In any case the +devname will be printed to stdout if the device is successfully added. + +If the I<-i> option is used, then it must be used on device removal; +I<host-device-spec> cannot be used. + +This command is only available for domains using qemu-xen, not +qemu-traditional. + +=item B<hvm-host-usb-del> I<-d domain-id> (I<-i devname> | I<-v host-device-spec>) + +Remove the host USB device from I<domain-id> which is specified either +by I<devname> or I<host-device-spec>. Exactly one of the two must be +specified. I<devname> is a string that was specified when the device +was inserted by B<hvm-host-usb-add>. I<host-device-spec> can only be +used if no name I<devname> was specified when the device was added, +and it must match exactly the specification given at that time. + +Devices specified in the config file do not have an associated +devname, and thus cannot be removed using this command. + +This command is only available for domains using qemu-xen, not +qemu-traditional. + +=back + =head2 VTPM DEVICES=over 4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |