qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [Qemu-devel] qemu-ga command listing
@ 2012-12-31 20:41 Eric Blake
  2013-01-02 20:34 ` Jeff Cody
  0 siblings, 1 reply; 3+ messages in thread
From: Eric Blake @ 2012-12-31 20:41 UTC (permalink / raw)
  To: qemu-devel@nongnu.org

[-- Attachment #1: Type: text/plain, Size: 326 bytes --]

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"}.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 619 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] qemu-ga command listing
  2012-12-31 20:41 [Qemu-devel] qemu-ga command listing Eric Blake
@ 2013-01-02 20:34 ` Jeff Cody
  2013-01-02 21:26   ` Eric Blake
  0 siblings, 1 reply; 3+ messages in thread
From: Jeff Cody @ 2013-01-02 20:34 UTC (permalink / raw)
  To: Eric Blake; +Cc: qemu-devel@nongnu.org

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Qemu-devel] qemu-ga command listing
  2013-01-02 20:34 ` Jeff Cody
@ 2013-01-02 21:26   ` Eric Blake
  0 siblings, 0 replies; 3+ messages in thread
From: Eric Blake @ 2013-01-02 21:26 UTC (permalink / raw)
  To: Jeff Cody; +Cc: qemu-devel@nongnu.org

[-- Attachment #1: Type: text/plain, Size: 1060 bytes --]

On 01/02/2013 01:34 PM, Jeff Cody wrote:
> 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"}, 

Thanks, that's mostly what I wanted.  Still missing is the ability to
tell if a command is expected to return a value on success, though.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org


[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 619 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2013-01-02 21:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-12-31 20:41 [Qemu-devel] qemu-ga command listing Eric Blake
2013-01-02 20:34 ` Jeff Cody
2013-01-02 21:26   ` Eric Blake

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).