From: Jeff Cody <jcody@redhat.com>
To: Eric Blake <eblake@redhat.com>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] qemu-ga command listing
Date: Wed, 2 Jan 2013 15:34:24 -0500 [thread overview]
Message-ID: <20130102203424.GB2289@jefflaptop.redhat.com> (raw)
In-Reply-To: <50E1F895.70006@redhat.com>
On Mon, Dec 31, 2012 at 01:41:57PM -0700, Eric Blake wrote:
> Is there a guest-agent command for querying the list of available
> commands for a given guest agent? If not, should there be? In other
> words, I'm looking for the counterpart to QMP {"execute":"query-commands"}.
>
Hi Eric,
There is guest-info ({"execute": "guest-info"}), which returns a list
of supported commands, and whether or not that command is enabled or
disabled (e.g. it may be blacklisted). Here is an example of the
output, with guest-file-* operations blacklisted (formatted slightly
for better readability):
{"return":
{"version": "1.0", "supported_commands":
[{"enabled": true, "name": "guest-network-get-interfaces"},
{"enabled": true, "name": "guest-suspend-hybrid"},
{"enabled": true, "name": "guest-suspend-ram"},
{"enabled": true, "name": "guest-suspend-disk"},
{"enabled": true, "name": "guest-fsfreeze-thaw"},
{"enabled": true, "name": "guest-fsfreeze-freeze"},
{"enabled": true, "name": "guest-fsfreeze-status"},
{"enabled": false, "name": "guest-file-flush"},
{"enabled": false, "name": "guest-file-seek"},
{"enabled": false, "name": "guest-file-write"},
{"enabled": false, "name": "guest-file-read"},
{"enabled": false, "name": "guest-file-close"},
{"enabled": false, "name": "guest-file-open"},
{"enabled": true, "name": "guest-shutdown"},
{"enabled": true, "name": "guest-info"},
{"enabled": true, "name": "guest-ping"},
{"enabled": true, "name": "guest-sync"},
{"enabled": true, "name": "guest-sync-delimited"}]}}
Jeff
next prev parent reply other threads:[~2013-01-02 20:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-12-31 20:41 [Qemu-devel] qemu-ga command listing Eric Blake
2013-01-02 20:34 ` Jeff Cody [this message]
2013-01-02 21:26 ` Eric Blake
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20130102203424.GB2289@jefflaptop.redhat.com \
--to=jcody@redhat.com \
--cc=eblake@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).