qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] [PATCH 14/18] arch_init: skip migration_bitmap_sync for loc


From: Lei Li
Subject: [Qemu-devel] [PATCH 14/18] arch_init: skip migration_bitmap_sync for local migration
Date: Wed, 21 Aug 2013 15:18:51 +0800

Signed-off-by: Lei Li <address@hidden>
---
 arch_init.c |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/arch_init.c b/arch_init.c
index cbbb4db..e6069eb 100644
--- a/arch_init.c
+++ b/arch_init.c
@@ -375,6 +375,11 @@ static void migration_bitmap_sync(void)
     int64_t end_time;
     int64_t bytes_xfer_now;
 
+    /* No need to sync with bitmap for local migration */
+    if (migrate_is_localhost()) {
+        return;
+    }
+
     if (!bytes_xfer_prev) {
         bytes_xfer_prev = ram_bytes_transferred();
     }
-- 
1.7.7.6




reply via email to

[Prev in Thread] Current Thread [Next in Thread]