libvirt/tools
Jiri Denemark 2169472ab6 qemu: Add shortcut for HMP pass through
Currently users who want to use virDomainQemuMonitorCommand() API or
it's virsh equivalent has to use the same protocol as libvirt uses for
communication to qemu. Since the protocol is QMP with current qemu and
HMP much more usable for humans, one ends up typing something like the
following:

    virsh qemu-monitor-command DOM \
'{"execute":"human-monitor-command","arguments":{"command-line":"info kvm"}}'

which is not a very convenient way of debugging qemu.

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"

Also the result is converted from

    {"return":"kvm support: enabled\r\n"}

to just plain HMP:

    kvm support: enabled

If libvirt talks to qemu in HMP, --hmp flag is obviously a noop.
2011-02-03 22:20:30 +01:00
..
.gitignore maint: track moved file 2010-08-31 10:00:31 -06:00
console.c correct the signal's name 2010-12-09 12:03:11 -07:00
console.h Re-write virsh console to use streams 2010-11-11 16:03:20 +00:00
libvirt_win_icon_16x16.ico Move virsh into tools/ directory 2009-09-21 14:41:45 +01:00
libvirt_win_icon_32x32.ico Move virsh into tools/ directory 2009-09-21 14:41:45 +01:00
libvirt_win_icon_48x48.ico Move virsh into tools/ directory 2009-09-21 14:41:45 +01:00
libvirt_win_icon_64x64.ico Move virsh into tools/ directory 2009-09-21 14:41:45 +01:00
libvirt-guests.init.sh build: let xgettext see strings in libvirt-guests 2011-01-17 07:48:17 -07:00
libvirt-guests.sysconf Move libvirt-guests init script and config to tools 2010-08-25 14:07:26 +02:00
Makefile.am build: let xgettext see strings in libvirt-guests 2011-01-17 07:48:17 -07:00
virsh_win_icon.rc Move virsh into tools/ directory 2009-09-21 14:41:45 +01:00
virsh.c qemu: Add shortcut for HMP pass through 2011-02-03 22:20:30 +01:00
virsh.pod qemu: Add shortcut for HMP pass through 2011-02-03 22:20:30 +01:00
virt-pki-validate.in Fix virt-pki-validate's determination of CN 2010-04-29 20:10:46 -06:00
virt-xml-validate.in build: import latest gnulib 2010-04-02 10:18:55 -06:00