From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MVWix-0005Ww-NY for qemu-devel@nongnu.org; Mon, 27 Jul 2009 16:23:07 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MVWis-0005OU-GX for qemu-devel@nongnu.org; Mon, 27 Jul 2009 16:23:06 -0400 Received: from [199.232.76.173] (port=55619 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MVWis-0005O9-8y for qemu-devel@nongnu.org; Mon, 27 Jul 2009 16:23:02 -0400 Received: from mx2.redhat.com ([66.187.237.31]:45690) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MVWir-0001sX-Rs for qemu-devel@nongnu.org; Mon, 27 Jul 2009 16:23:02 -0400 Date: Mon, 27 Jul 2009 17:22:51 -0300 From: Luiz Capitulino Subject: Re: [Qemu-devel] Re: [PATCH] fix endless look at kvm migration Message-ID: <20090727172251.39a000c2@doriath> In-Reply-To: <20090727202134.GL4776@poweredge.glommer> References: <1248719202-24401-1-git-send-email-glommer@redhat.com> <4A6DF5AB.6000608@web.de> <20090727202134.GL4776@poweredge.glommer> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Glauber Costa Cc: aliguori@us.ibm.com, Jan Kiszka , qemu-devel@nongnu.org, Alexander Graf On Mon, 27 Jul 2009 17:21:34 -0300 Glauber Costa wrote: > On Mon, Jul 27, 2009 at 08:44:59PM +0200, Jan Kiszka wrote: > > Glauber Costa wrote: > > > If we try to sync bitmaps withouth KVM_MEM_LOG_DIRTY_PAGES being set > > > on a slot, we will enter an endless loop. Remove the test, since it > > > is not strictly needed anyway > > > > > > Signed-off-by: Glauber Costa > > > CC: Alexander Graf > > > --- > > > kvm-all.c | 5 ----- > > > 1 files changed, 0 insertions(+), 5 deletions(-) > > > > > > diff --git a/kvm-all.c b/kvm-all.c > > > index 824bb4c..d3bbd3c 100644 > > > --- a/kvm-all.c > > > +++ b/kvm-all.c > > > @@ -331,11 +331,6 @@ int kvm_physical_sync_dirty_bitmap(target_phys_addr_t start_addr, > > > break; > > > } > > > > > > - /* We didn't activate dirty logging? Don't care then. */ > > > - if(!(mem->flags & KVM_MEM_LOG_DIRTY_PAGES)) { > > > - continue; > > > - } > > > - > > > size = ((mem->memory_size >> TARGET_PAGE_BITS) + 7) / 8; > > > if (!d.dirty_bitmap) { > > > d.dirty_bitmap = qemu_malloc(size); > > > > Please let us revert the whole bd83677. > I'm not opposed either. Avi can surely do that if he prefer. As you have submitted the if() removal fix, you could submit the revert as well, so that we keep this going.