]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Fallback to HMP for snapshot commands
authorJiri Denemark <jdenemar@redhat.com>
Wed, 23 Feb 2011 11:12:11 +0000 (12:12 +0100)
committerJiri Denemark <jdenemar@redhat.com>
Thu, 10 Mar 2011 13:36:05 +0000 (14:36 +0100)
commit89241fe0d1821febc84cd5efc5a7334bd66cc463
tree1e6f894aac8b4065dfdf64fd292a0d4e76d2af0d
parentb3c6ec03b814ee7817f53c09a97447b42976eb7a
qemu: Fallback to HMP for snapshot commands

qemu driver in libvirt gained support for creating domain snapshots
almost a year ago in libvirt 0.8.0. Since then we enabled QMP support
for qemu >= 0.13.0 but QMP equivalents of {save,load,del}vm commands are
not implemented in current qemu (0.14.0) so the domain snapshot support
is not very useful.

This patch detects when the appropriate QMP command is not implemented
and tries to use human-monitor-command (aka HMP passthrough) to run
it's HMP equivalent.
src/qemu/qemu_monitor_json.c