[libvirt] [PATCH 0/5] support guest agent general command

Eric Blake eblake at redhat.com
Wed Aug 8 14:36:12 UTC 2012


[adding qemu-devel, for a qemu-ga question]

On 08/07/2012 06:04 PM, MATSUDA, Daiki wrote:
> Hi, All.
> 
> I rewrote the patches as Eric suggested.
> 
> 
> 
> virsh # help qemu-agent-command
>   NAME
>     qemu-agent-command - Qemu Guest Agent Command
> 
>   SYNOPSIS
>     qemu-agent-command <domain> [--timeout <number>] {[--cmd] <string>}...

> 
> virsh # qemu-agent-command RHEL58_64 '{"execute":"guest-info"}'
> {"return":{"version":"1.1.50","supported_commands":[{"enabled":true,"name":"guest-network-get-interfaces"},{"enabled":true,"name":"guest-suspend-hybrid"},...

Question to the qemu folks - can we enhance 'guest-info' to tell us
commands required to give output on success, vs. commands that are
expected to never answer (except on possible error), so that libvirt can
then make smarter decisions about whether to wait for a response for an
arbitrary guest agent command?  That is, I would love for the
'success-response' field of the qapi-schema-guest.json file to be
exposed to libvirt, as it would greatly help in implementing Daiki's
patchset for calling an arbitrary command and knowing whether to block
on expecting a response rather than forcing the user to know which magic
--timeout values to use.

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

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20120808/ec2b7a8f/attachment-0001.sig>


More information about the libvir-list mailing list