From 738df5b97312bb61617669250ce67073108de070 Mon Sep 17 00:00:00 2001 From: Liang Li Date: Thu, 24 Sep 2015 08:56:12 +0800 Subject: migration: do cleanup operation after completion Because of the patch 3ea3b7fa9af067982f34b of kvm, now the migration_end() is a time consuming operation, which takes about dozens of milliseconds, and will prolong VM downtime. Such an operation should be done after migration completion. For a VM with 8G RAM, this patch can reduce the VM downtime about 32 ms during live migration. Change-Id: Iddd10bd5a2b1bf52cce36253f303fc458da343cd Signed-off-by: Liang Li --- qemu/migration/ram.c | 1 - 1 file changed, 1 deletion(-) (limited to 'qemu/migration/ram.c') diff --git a/qemu/migration/ram.c b/qemu/migration/ram.c index 7f007e643..6249f6e60 100644 --- a/qemu/migration/ram.c +++ b/qemu/migration/ram.c @@ -1269,7 +1269,6 @@ static int ram_save_complete(QEMUFile *f, void *opaque) rcu_read_unlock(); - migration_end(); qemu_put_be64(f, RAM_SAVE_FLAG_EOS); return 0; -- cgit 1.2.3-korg