From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:53202) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpyXV-0006rW-PB for qemu-devel@nongnu.org; Wed, 25 Jan 2012 03:49:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RpyXP-00044z-Vs for qemu-devel@nongnu.org; Wed, 25 Jan 2012 03:49:09 -0500 Received: from mx1.redhat.com ([209.132.183.28]:19997) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RpyXP-00044s-LW for qemu-devel@nongnu.org; Wed, 25 Jan 2012 03:49:03 -0500 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id q0P8n1e3032564 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Wed, 25 Jan 2012 03:49:02 -0500 Message-ID: <4F1FC24D.2000707@redhat.com> Date: Wed, 25 Jan 2012 09:50:21 +0100 From: Hans de Goede MIME-Version: 1.0 References: <1326385868-26538-1-git-send-email-hdegoede@redhat.com> <4F0FE087.1050204@redhat.com> <4F1D73E2.5000100@redhat.com> In-Reply-To: <4F1D73E2.5000100@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] usb-redir: Add the posibility to filter out certain devices from redirecion List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: qemu-devel@nongnu.org Hi, On 01/23/2012 03:51 PM, Gerd Hoffmann wrote: > On 01/13/12 08:43, Gerd Hoffmann wrote: >> On 01/12/12 17:31, Hans de Goede wrote: >>> This patch adds the posibility to filter out certain devices from redirecion. >>> To use this pass the filter property to -device usb-redir. The filter >>> property takes a string consisting of filter rules, the format for a rule is: >>> :::: >> >> Hmm, what is the point of having this filter in qemu? >> >> I'd expect the other end of the network connection which talks to the >> actual usb device (i.e. the tcp standalone server or spice client) doing >> the filtering ... The admin of the vm may want to allow only certain devices to be redirected to the vm. And while he has administrative control over the vm, he does not necessarily have administrative control over the client. > > Also fails checkpatch: > > WARNING: line over 80 characters > #75: FILE: usb-redir.c:898: > + qerror_report(QERR_INVALID_PARAMETER_VALUE, "filter", "a > usb device filter string"); Oops, I'll send a new version. Regards, Hans