From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:58572) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adxF0-00045v-GH for qemu-devel@nongnu.org; Thu, 10 Mar 2016 04:50:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1adxEx-00066a-2y for qemu-devel@nongnu.org; Thu, 10 Mar 2016 04:50:46 -0500 Received: from mail-wm0-x242.google.com ([2a00:1450:400c:c09::242]:36730) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1adxEw-00066W-GU for qemu-devel@nongnu.org; Thu, 10 Mar 2016 04:50:42 -0500 Received: by mail-wm0-x242.google.com with SMTP id l68so2798925wml.3 for ; Thu, 10 Mar 2016 01:50:42 -0800 (PST) Sender: Paolo Bonzini References: <1457087116-4379-1-git-send-email-kraxel@redhat.com> <56E09456.4020404@redhat.com> <1457595095.6405.1.camel@redhat.com> From: Paolo Bonzini Message-ID: <56E1436E.3010809@redhat.com> Date: Thu, 10 Mar 2016 10:50:38 +0100 MIME-Version: 1.0 In-Reply-To: <1457595095.6405.1.camel@redhat.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 0/3] input: linux evdev support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: qemu-devel@nongnu.org On 10/03/2016 08:31, Gerd Hoffmann wrote: > > However, instead of adding a new -input-linux option, could you make it > > a QOM object which implements UserCreatable? Then you can add it with > > something like "-object input-linux,path=/dev/input/input10" (perhaps > > "input-evdev" would be more specific). This has three advantages: > It's merged meanwhile, but when doing it before 2.6 we can still change > it I think. Do you have a pointer to some sample code doing this and/or > docs for me? backends/hostmem.c is probably as close as it can get. Paolo