From patchwork Mon Mar 7 20:10:35 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael Roth X-Patchwork-Id: 85799 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 74B68B6EEB for ; Tue, 8 Mar 2011 07:13:13 +1100 (EST) Received: from localhost ([127.0.0.1]:36686 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pwgmz-0001dD-Gf for incoming@patchwork.ozlabs.org; Mon, 07 Mar 2011 15:12:21 -0500 Received: from [140.186.70.92] (port=41342 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Pwglu-0001d2-5j for qemu-devel@nongnu.org; Mon, 07 Mar 2011 15:11:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Pwgls-0006Sr-Ur for qemu-devel@nongnu.org; Mon, 07 Mar 2011 15:11:14 -0500 Received: from e1.ny.us.ibm.com ([32.97.182.141]:37136) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Pwgls-0006SP-Qx for qemu-devel@nongnu.org; Mon, 07 Mar 2011 15:11:12 -0500 Received: from d01dlp02.pok.ibm.com (d01dlp02.pok.ibm.com [9.56.224.85]) by e1.ny.us.ibm.com (8.14.4/8.13.1) with ESMTP id p27K1MPc013172 for ; Mon, 7 Mar 2011 15:01:22 -0500 Received: from d01relay03.pok.ibm.com (d01relay03.pok.ibm.com [9.56.227.235]) by d01dlp02.pok.ibm.com (Postfix) with ESMTP id C38346E803C for ; Mon, 7 Mar 2011 15:11:11 -0500 (EST) Received: from d01av01.pok.ibm.com (d01av01.pok.ibm.com [9.56.224.215]) by d01relay03.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id p27KBBdM238070 for ; Mon, 7 Mar 2011 15:11:11 -0500 Received: from d01av01.pok.ibm.com (loopback [127.0.0.1]) by d01av01.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id p27KBBYL012527 for ; Mon, 7 Mar 2011 15:11:11 -0500 Received: from localhost.localdomain (sig-9-76-30-5.mts.ibm.com [9.76.30.5]) by d01av01.pok.ibm.com (8.14.4/8.13.1/NCO v10.0 AVin) with ESMTP id p27KAi8J010005; Mon, 7 Mar 2011 15:11:10 -0500 From: Michael Roth To: qemu-devel@nongnu.org Date: Mon, 7 Mar 2011 14:10:35 -0600 Message-Id: <1299528642-23631-10-git-send-email-mdroth@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.0.4 In-Reply-To: <1299528642-23631-1-git-send-email-mdroth@linux.vnet.ibm.com> References: <1299528642-23631-1-git-send-email-mdroth@linux.vnet.ibm.com> X-Content-Scanned: Fidelis XPS MAILER X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Received-From: 32.97.182.141 Cc: agl@linux.vnet.ibm.com, stefanha@linux.vnet.ibm.com, Jes.Sorensen@redhat.com, mdroth@linux.vnet.ibm.com, markus_mueller@de.ibm.com, aliguori@linux.vnet.ibm.com, abeekhof@redhat.com Subject: [Qemu-devel] [RFC][PATCH v7 09/16] virtagent: add va_capabilities HMP/QMP command X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Michael Roth --- hmp-commands.hx | 16 ++++++++++++++++ qmp-commands.hx | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 49 insertions(+), 0 deletions(-) diff --git a/hmp-commands.hx b/hmp-commands.hx index 372bef4..86817e2 100644 --- a/hmp-commands.hx +++ b/hmp-commands.hx @@ -1364,6 +1364,22 @@ show available trace events and their state ETEXI #endif + { + .name = "va_capabilities", + .args_type = "", + .params = "", + .help = "Fetch and re-negotiate guest agent capabilties", + .user_print = do_va_capabilities_print, + .mhandler.cmd_async = do_va_capabilities, + .flags = MONITOR_CMD_ASYNC, + }, + +STEXI +@item va_capabilities +@findex va_capabilities +Fetch and re-negotiate guest agent capabilties +ETEXI + STEXI @end table ETEXI diff --git a/qmp-commands.hx b/qmp-commands.hx index df40a3d..e1092dd 100644 --- a/qmp-commands.hx +++ b/qmp-commands.hx @@ -858,6 +858,39 @@ Example: EQMP { + .name = "va_capabilities", + .args_type = "", + .params = "", + .help = "Fetch and re-negotiate guest agent capabilities", + .user_print = monitor_user_noop, + .mhandler.cmd_async = do_va_capabilities, + .flags = MONITOR_CMD_ASYNC, + }, + +STEXI +@item va_capabilities +@findex va_capabilities +Fetch and re-negotiate guest agent capabilities +ETEXI +SQMP +va_capabilities +-------- + +Fetch and re-negotiate guest agent capabilities + +Arguments: + +(none) + +Example: + +-> { "execute": "va_capabilities" } +<- { "return": { "methods": ["capabilities", "shutdown", "ping", ... ], + "version": "1.0" }} + +EQMP + + { .name = "qmp_capabilities", .args_type = "", .params = "",