From 203ab129afe85e287bf5ac7f9ea7a7bc665df05c Mon Sep 17 00:00:00 2001 From: Guannan Ren Date: Thu, 13 Sep 2012 15:25:48 +0800 Subject: [PATCH] doc: update usb redirection filter infomation on formatdomain.html --- docs/formatdomain.html.in | 38 ++++++++++++++++++++++++-------------- 1 file changed, 24 insertions(+), 14 deletions(-) diff --git a/docs/formatdomain.html.in b/docs/formatdomain.html.in index 503685fe59..fc32c70549 100644 --- a/docs/formatdomain.html.in +++ b/docs/formatdomain.html.in @@ -2136,6 +2136,10 @@ <redirdev bus='usb' type='tcp'> <source mode='connect' host='localhost' service='4000'/> </redirdev> + <redirfilter> + <usbdev class='0x08' vendor='0x1234' product='0xbeef' version='2.00' allow='yes'/> + <usbdev allow='no'/> + </redirfilter> </devices> ... @@ -2152,21 +2156,27 @@ tunnel; type='tcp' or type='spicevmc' (which uses the usbredir channel of a SPICE graphics - device) are typical. - + device) are typical.The redirdev element has an optional + sub-element<address> which can tie the + device to a particular controller. Further sub-elements, + such as <source>, may be required according + to the given type, although a <target> sub-element + is not required (since the consumer of the character device is + the hypervisor itself,rather than a device visible in the guest). + +
redirfilter
+
The redirfilter element is used for creating the + filter rule to filter out certain devices from redirection. + It uses sub-element <usbdev>to define each filter rule. + classattribute is the USB Class code, for example, + 0x08 represents mass storage devices. The USB device can be addressed by + vendor / product id using thevendor and product attributes. + version is the bcdDevice value of USB device, such as 1.00, 1.10 and 2.00. + These four attributes are optional and -1 can be used to allow + any value for them. allowattribute is mandatory, + 'yes' means allow, 'no' for deny. +
-

- The redirdev element has an optional sub-element - <address> which can tie the device to a - particular controller. -

-

- Further sub-elements, such as <source>, may - be required according to the given type, although - a <target> sub-element is not required (since - the consumer of the character device is the hypervisor itself, - rather than a device visible in the guest). -

Smartcard devices