From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:54124) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrpaH-0005tk-4m for qemu-devel@nongnu.org; Fri, 21 Nov 2014 09:53:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XrpaB-0006MI-02 for qemu-devel@nongnu.org; Fri, 21 Nov 2014 09:53:17 -0500 Received: from mx1.redhat.com ([209.132.183.28]:54610) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XrpaA-0006M6-Ms for qemu-devel@nongnu.org; Fri, 21 Nov 2014 09:53:10 -0500 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id sALEr9rL004905 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Fri, 21 Nov 2014 09:53:09 -0500 Message-ID: <1416581586.3856.8.camel@nilsson.home.kraxel.org> From: Gerd Hoffmann Date: Fri, 21 Nov 2014 15:53:06 +0100 In-Reply-To: <87fvdczrvl.fsf@blackfin.pond.sub.org> References: <1416562215-9317-1-git-send-email-kraxel@redhat.com> <87fvdczrvl.fsf@blackfin.pond.sub.org> Content-Type: text/plain; charset="UTF-8" Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH] input: improve docs for input-send-event qmp command List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Markus Armbruster Cc: qemu-devel@nongnu.org, Luiz Capitulino On Fr, 2014-11-21 at 12:59 +0100, Markus Armbruster wrote: > [Copying Eric] > > Gerd Hoffmann writes: > > > Text partly suggested by Markus Armbruster > > > > Signed-off-by: Gerd Hoffmann > > --- > > qapi-schema.json | 12 ++++++++++++ > > 1 file changed, 12 insertions(+) > > > > diff --git a/qapi-schema.json b/qapi-schema.json > > index d0926d9..fcd49b1 100644 > > --- a/qapi-schema.json > > +++ b/qapi-schema.json > > @@ -3250,6 +3250,18 @@ > > # Send input event(s) to guest. > > # > > # @console: #optional console to send event(s) to. > > +# This parameter can be used to send the input event to > > +# specific input devices in case (a) multiple input devices > > +# of the same kind are added to the virtual machine and (b) > > +# you have configured input routing (see docs/multiseat.txt) > > +# for those input devices. If input routing is not > > +# configured this parameter has no effect. > > +# If @console is missing, only devices that aren't associated > > +# with a console are admissible. > > +# If @console is specified, it must exist, and both devices > > +# associated with that console and devices not associated with a > > +# console are admissible, but the former take precedence. > > + > > # > > # @events: List of InputEvent union. > > # > > What is a "console", and how get input devices assoated with one? I > checked docs/multiseat.txt for clues, but found none. Oh, right, in the command line the video device names are used. video device emulation actually creates the consoles, typically console 0 is your vga. They are numbered in creation order. You can inspect them in the qom tree (/backend/console[$nr]). There is a device link pointing to the device which created it. cheers, Gerd