summaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2009-07-14 18:07:50 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-07-16 18:49:07 -0500
commitdf97ff696bcf4d81e36468e33e2c7797acbe4c6c (patch)
tree8882bbd5ba56a66beaf305ead4bdaf99367845d0 /vl.c
parentcc15f92832f484d01e3e973105737053f69104e2 (diff)
downloadqemu-df97ff696bcf4d81e36468e33e2c7797acbe4c6c.tar.gz
honor -S on incoming migration
-S is not honored by qemu on incoming migration. If a domain is migrated while paused, thus, it will start running on the remote machine; this is wrong. Given the trivial patch to fix this, it looks more like a thinko than anything else, probably dating back to the qemu-kvm merge. The interesting part is that the -S mechanism was in fact *used* when migrating (setting autostart = 0) and the incoming migration code was starting the VM at the end of the migration. Since I was removing the vm_start from there, I also corrected a related imprecision. The code was doing a vm_stop "just in case", but we can be sure that the VM is not running---the vm_start call in vl.c has not been reached yet. So the vm_stop is removed together with the vm_start. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/vl.c b/vl.c
index 56623fb576..6cd0ce7500 100644
--- a/vl.c
+++ b/vl.c
@@ -5721,10 +5721,8 @@ int main(int argc, char **argv, char **envp)
if (loadvm)
do_loadvm(loadvm);
- if (incoming) {
- autostart = 0; /* fixme how to deal with -daemonize */
+ if (incoming)
qemu_start_incoming_migration(incoming);
- }
if (autostart)
vm_start();