Allow monitor interaction when using migrate -exec
authorChris Lalancette <clalance@redhat.com>
Mon, 25 May 2009 14:38:23 +0000 (16:38 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Wed, 27 May 2009 14:46:07 +0000 (09:46 -0500)
commit8a43b1ea7fd02a8e9a5c5ef58017b1bd059663bb
tree267c6df69d20628c38875715e1f8c97551b4834b
parentc16b5a2ca0b186de618654a576bdad9cdd2d1ab2
Allow monitor interaction when using migrate -exec

All,
     I've recently been playing around with migration via exec.  Unfortunately,
when starting the incoming qemu process with "-incoming exec:cmd", it suffers
the same problem that -incoming tcp used to suffer; namely, that you can't
interact with the monitor until after the migration has happened.  This causes
problems for libvirt usage of -incoming exec, since libvirt expects to be able
to access the monitor ahead of time.  This fairly simple patch allows you to
access the monitor both before and after the migration has completed using exec.

(note: developed/tested with qemu-kvm, but applies perfectly fine to qemu)

Signed-off-by: Chris Lalancette <clalance@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/hw.h
migration-exec.c
savevm.c