From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:52305) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WYGiX-0003cv-MT for qemu-devel@nongnu.org; Thu, 10 Apr 2014 11:16:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WYGiR-0007yz-H4 for qemu-devel@nongnu.org; Thu, 10 Apr 2014 11:16:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:24807) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WYGiR-0007yt-92 for qemu-devel@nongnu.org; Thu, 10 Apr 2014 11:16:35 -0400 Date: Thu, 10 Apr 2014 18:16:14 +0300 From: "Michael S. Tsirkin" Message-ID: <20140410151614.GC21110@redhat.com> References: <1397120874-17166-1-git-send-email-kraxel@redhat.com> <1397120874-17166-9-git-send-email-kraxel@redhat.com> <20140410110502.GB19546@redhat.com> <1397131023.16790.98.camel@nilsson.home.kraxel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1397131023.16790.98.camel@nilsson.home.kraxel.org> Subject: Re: [Qemu-devel] [PATCH qemu 6/6] virtio-input: evdev passthrough List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: virtio-dev@lists.oasis-open.org, qemu-devel@nongnu.org, Anthony Liguori On Thu, Apr 10, 2014 at 01:57:03PM +0200, Gerd Hoffmann wrote: > Hi, > > > > +static void virtio_input_host_event(void *opaque) > > > +{ > > > + VirtIOInputHost *vhost = opaque; > > > > I'd prefer a name that does not imply > > vhost infrastructure > > ok. > > > > + rc = ioctl(vhost->fd, EVIOCGVERSION, &ver); > > > + if (rc < 0) { > > > + error_setg(errp, "%s: is not an evdev device", vhost->evdev); > > > + goto err_close; > > > + } > > > > Hmm is that all? > > Don't we want to report versioning info to guests? > > I guess the only thing we might want to here is bail out in case the > major version is != 1 (which implies a incompatible change). The major > version didn't change so far though, and I think it is highly unlikely > that it'll ever happen. > > cheers, > Gerd BTW this device should block migration, right?