Received: from eggs.gnu.org ([2001:4830:134:3::10]:58165) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQaVA-0005hX-KZ for qemu-devel@nongnu.org; Tue, 02 Feb 2016 07:56:13 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aQaV6-0004Jo-Hd for qemu-devel@nongnu.org; Tue, 02 Feb 2016 07:56:12 -0500 Received: from mx1.redhat.com ([209.132.183.28]:50113) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aQaV6-0004JQ-DK for qemu-devel@nongnu.org; Tue, 02 Feb 2016 07:56:08 -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 (Postfix) with ESMTPS id 563F6804E6 for ; Tue, 2 Feb 2016 12:56:07 +0000 (UTC) From: Markus Armbruster References: <1453817255-10287-1-git-send-email-kraxel@redhat.com> <1453817255-10287-2-git-send-email-kraxel@redhat.com> Date: Tue, 02 Feb 2016 13:56:04 +0100 In-Reply-To: <1453817255-10287-2-git-send-email-kraxel@redhat.com> (Gerd Hoffmann's message of "Tue, 26 Jan 2016 15:07:32 +0100") Message-ID: <87powfmftn.fsf@blackfin.pond.sub.org> MIME-Version: 1.0 Content-Type: text/plain Subject: Re: [Qemu-devel] [PATCH v2 2/5] qapi: switch x-input-send-event from console to device+head List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Gerd Hoffmann Cc: Marcelo Tosatti , qemu-devel@nongnu.org Gerd Hoffmann writes: > Use display device qdev id and head number instead of console index to > specify the QemuConsole. This makes things consistent with input > devices (for input routing) and vnc server configuration, which both use > display and head too. > > Signed-off-by: Gerd Hoffmann > Reviewed-by: Daniel P. Berrange > --- > qapi-schema.json | 32 +++++++++++++++++--------------- > qmp-commands.hx | 17 +++++++++-------- > ui/input.c | 15 ++++++++++----- > 3 files changed, 36 insertions(+), 28 deletions(-) > [...] > diff --git a/qmp-commands.hx b/qmp-commands.hx > index db072a6..9925fc1 100644 > --- a/qmp-commands.hx > +++ b/qmp-commands.hx > @@ -4614,8 +4614,9 @@ Send input event to guest. > > Arguments: > > -- "console": console index. (json-int, optional) > -- "events": list of input events. > +- "device": display device (json-str, optional) Missed this in v1, sorry: json-string > +- "head": display head (json-int, optional) > +- "events": list of input events > > The consoles are visible in the qom tree, under > /backend/console[$index]. They have a device link and head property, so [...]