From patchwork Mon Nov 24 14:46:11 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Amos Kong X-Patchwork-Id: 413753 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [IPv6:2001:4830:134:3::11]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 5805414012B for ; Tue, 25 Nov 2014 01:46:45 +1100 (AEDT) Received: from localhost ([::1]:53039 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XsuuW-0000jt-PQ for incoming@patchwork.ozlabs.org; Mon, 24 Nov 2014 09:46:40 -0500 Received: from eggs.gnu.org ([2001:4830:134:3::10]:59623) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xsuu7-0000S8-0J for qemu-devel@nongnu.org; Mon, 24 Nov 2014 09:46:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xsutz-0005eW-Hu for qemu-devel@nongnu.org; Mon, 24 Nov 2014 09:46:14 -0500 Received: from mx1.redhat.com ([209.132.183.28]:60917) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xsutz-0005eJ-AG for qemu-devel@nongnu.org; Mon, 24 Nov 2014 09:46:07 -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 sAOEk5NY010245 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Mon, 24 Nov 2014 09:46:06 -0500 Received: from air.redhat.com (vpn1-115-167.nay.redhat.com [10.66.115.167]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id sAOEk2uN008138; Mon, 24 Nov 2014 09:46:03 -0500 From: Amos Kong To: qemu-devel@nongnu.org, kraxel@redhat.com Date: Mon, 24 Nov 2014 22:46:11 +0800 Message-Id: <1416840371-27646-1-git-send-email-akong@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.26 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 209.132.183.28 Cc: mtosatti@redhat.com, armbru@redhat.com, lcapitulino@redhat.com Subject: [Qemu-devel] [PATCH for-2.2] qmp: document input-send-event detail X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org This patch documents what exactly input-send-event is supposed to do. Signed-off-by: Amos Kong --- qapi-schema.json | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/qapi-schema.json b/qapi-schema.json index d0926d9..9aa19bc 100644 --- a/qapi-schema.json +++ b/qapi-schema.json @@ -3249,7 +3249,18 @@ # # Send input event(s) to guest. # +# The VM must be running or suspended. +# +# Each event is sent to exactly one admissible input device. Such a +# device must exist. If multiple admissible devices can handle an +# event, which one gets it is unspecified, except as described below. +# # @console: #optional console to send event(s) to. +# 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 takes precedence. # # @events: List of InputEvent union. #