]> git.ipfire.org Git - thirdparty/libvirt.git/commit
[v2] qemu: Retry JSON monitor cont cmd on MigrationExpected error
authorJim Fehlig <jfehlig@novell.com>
Thu, 13 Jan 2011 19:52:23 +0000 (12:52 -0700)
committerJim Fehlig <jfehlig@novell.com>
Fri, 21 Jan 2011 16:35:57 +0000 (09:35 -0700)
commit4301b95af7f554700de8e69ecf3f3bb3148b1d44
tree25352f37b7983100dcac981770da3db382998dec
parentaf268f2a36be381d2fef79d89ef542425fd2dc7c
[v2] qemu: Retry JSON monitor cont cmd on MigrationExpected error

When restoring a saved qemu instance via JSON monitor, the vm is
left in a paused state.  Turns out the 'cont' cmd was failing with
"MigrationExpected" error class and "An incoming migration is
expected before this command can be executed" error description
due to migration (restore) not yet complete.

Detect if 'cont' cmd fails with "MigrationExpecte" error class and
retry 'cont' cmd.

V2: Fix potential double-free noted by Laine Stump
src/qemu/qemu_monitor_json.c