[libvirt] [PATCH v2] qemu: Add shortcut for HMP pass through

Eric Blake eblake at redhat.com
Thu Feb 3 17:36:37 UTC 2011


On 02/03/2011 02:43 AM, Jiri Denemark wrote:
> This patch introduces --hmp option to qemu-monitor-command, which says
> that the provided command is in HMP. If libvirt uses QMP to talk with
> qemu, the command will automatically be converted into QMP. So the
> example above is simplified to just
> 
>     virsh qemu-monitor-command --hmp DOM "info kvm"
> 
> ---
> Notes:
>     Version 2:
>     - document --hmp in virsh man page

What, I forgot to call you on that?  Thanks for picking it up anyways :)

> +++ b/tools/virsh.pod
> @@ -1253,10 +1253,13 @@ problems to the libvirt developers; the reports will be ignored.
>  
>  =over 4
>  
> -=item B<qemu-monitor-command> I<domain> I<command>
> +=item B<qemu-monitor-command> I<domain> I<command> optional I<--hmp>
>  
>  Send an arbitrary monitor command I<command> to domain I<domain> through the
> -qemu monitor.  The results of the command will be printed on stdout.
> +qemu monitor.  The results of the command will be printed on stdout.  If
> +I<--hmp> is passed, the command is considered to be a human monitor command
> +and libvirt will automatically convert it into QMP if needed.  In that case
> +the result will also be converted back from QMP.

ACK.

-- 
Eric Blake   eblake at redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

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


More information about the libvir-list mailing list