[Spice-devel] usbredir doesn't hide/filter specific usb devices
Uri Lublin
uril at redhat.com
Wed Feb 16 14:39:40 UTC 2022
On Tue, Feb 15, 2022 at 5:41 PM lizhijian at fujitsu.com <lizhijian at fujitsu.com>
wrote:
> > The auto-redirect-filter only works for auto-redirected USB devices.
>
> may i know what "auto-redirected usb devices" mean here.
> what's auto-redirect-filter user case.
>
>
USB devices that are being plugged in while the remote-viewer window is in
focus.
Such USB devices are auto-redirect'ed to the guest, but go through the
filter first.
Uri
>
> > When a user is choosing a device from the menu, the filter does not
> apply.
>
> any idea to hide specific host usb devices from guest by current scheme
>
>
> Get Outlook for Android <https://aka.ms/AAb9ysg>
>
> ------------------------------
> *发件人:* Uri Lublin <uril at redhat.com>
> *发送时间:* 2022年2月15日星期二 22:50
> *收件人:* Li, Zhijian/李 智坚
> *抄送:* spice-devel
> *主题:* Re: [Spice-devel] usbredir doesn't hide/filter specific usb devices
>
> Hi Zhijian,
>
> On Tue, Feb 15, 2022 at 3:52 PM Li, Zhijian <lizhijian at cn.fujitsu.com>
> wrote:
>
>> Hi guys
>>
>> I intended to not allow redirecting some of my usb devices(HID) to the
>> guest, i thought https://www.spice-space.org/usbredir.html
>> could help on this.
>>
>> My host has below usb devices
>>
>> lizj at FNSTPC:~/workspace/vgt/virt-viewer/src$ lsusb
>> Bus 002 Device 001: ID 1d6b:0003 Linux Foundation 3.0 root hub
>> Bus 001 Device 006: ID 04d8:0b2a Microchip Technology, Inc.
>> Bus 001 Device 021: ID 046d:c534 Logitech, Inc. Unifying Receiver
>> Bus 001 Device 004: ID 0424:2137 Standard Microsystems Corp.
>> Bus 001 Device 003: ID 0bda:8176 Realtek Semiconductor Corp. RTL8188CUS
>> 802.11n WLAN Adapter
>> Bus 001 Device 002: ID 0bda:8771 Realtek Semiconductor Corp.
>> Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
>>
>> $ remote-viewer
>> --spice-usbredir-auto-redirect-filter="-1,0x0bda,-1,-1,0" --spice-debug
>> spice://localhost:5900
>>
>
>> For testing, i just want to hide produce id 0x0bda from remote-viewer
>> with above command line. But acutally
>>
>> i am still able to redirec both Realtek device to the guest through
>> remote-viewer.
>>
>> So is there something with my usage ? Feel free to let me know if there
>> is something wrong.
>>
>
> The auto-redirect-filter only works for auto-redirected USB devices.
> When a user is choosing a device from the menu, the filter does not apply.
>
> Regards,
> Uri.T
>
>
>>
>> Thanks
>>
>> Zhijian
>>
>>
>>
>>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/spice-devel/attachments/20220216/33577494/attachment.htm>
More information about the Spice-devel
mailing list