>From d249467b75dea5fad2c305d88edd447e8745494f Mon Sep 17 00:00:00 2001 From: Glauber Costa Date: Fri, 24 Jul 2009 15:32:46 -0400 Subject: [PATCH] remove infinite loop for migration Linux is so good, that it can finish an endless loop in 5 seconds. Unfortunately, not everybody uses Linux, and while kvm is still linux-only, this is likely to change. So remove an endless loop in migration code recently introduced. Signed-off-by: Glauber Costa --- kvm-all.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/kvm-all.c b/kvm-all.c index 824bb4c..b8b9539 100644 --- a/kvm-all.c +++ b/kvm-all.c @@ -333,7 +333,7 @@ int kvm_physical_sync_dirty_bitmap(target_phys_addr_t start_addr, /* We didn't activate dirty logging? Don't care then. */ if(!(mem->flags & KVM_MEM_LOG_DIRTY_PAGES)) { - continue; + break; } size = ((mem->memory_size >> TARGET_PAGE_BITS) + 7) / 8; -- 1.6.2.2