From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:33069) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RmRCK-0005iN-JT for qemu-devel@nongnu.org; Sun, 15 Jan 2012 09:36:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RmRCJ-0005rN-H2 for qemu-devel@nongnu.org; Sun, 15 Jan 2012 09:36:40 -0500 Received: from mx1.redhat.com ([209.132.183.28]:1568) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RmRCJ-0005rH-88 for qemu-devel@nongnu.org; Sun, 15 Jan 2012 09:36:39 -0500 Message-ID: <4F12E473.9080700@redhat.com> Date: Sun, 15 Jan 2012 16:36:35 +0200 From: Avi Kivity MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PULL] Fix for kvm dirty logging List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: qemu-devel kvm dirty logging is broken in the presence of memory slots being removed; this breaks opensuse's boot screen. Following patch fixes: git://git.kernel.org/pub/scm/virt/kvm/qemu-kvm.git memory/urgent Avi Kivity (1): kvm: flush the dirty log when unregistering a slot kvm-all.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-) diff --git a/kvm-all.c b/kvm-all.c index 3174f42..2cc4562 100644 --- a/kvm-all.c +++ b/kvm-all.c @@ -566,6 +566,10 @@ static void kvm_set_phys_mem(MemoryRegionSection *section, bool add) old = *mem; + if (mem->flags & KVM_MEM_LOG_DIRTY_PAGES) { + kvm_physical_sync_dirty_bitmap(section); + } + /* unregister the overlapping slot */ mem->memory_size = 0; err = kvm_set_user_memory_region(s, mem); -- error compiling committee.c: too many arguments to function