From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: [PATCH 07/23] framebuffer: drop use of cpu_physical_sync_dirty_bitmap() Date: Mon, 19 Dec 2011 16:13:28 +0200 Message-ID: <1324304024-11220-8-git-send-email-avi@redhat.com> References: <1324304024-11220-1-git-send-email-avi@redhat.com> Cc: xen-devel@lists.xensource.com, kvm@vger.kernel.org To: Stefano Stabellini , qemu-devel@nongnu.org, "Michael S. Tsirkin" Return-path: Received: from mx1.redhat.com ([209.132.183.28]:13662 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752714Ab1LSOOH (ORCPT ); Mon, 19 Dec 2011 09:14:07 -0500 In-Reply-To: <1324304024-11220-1-git-send-email-avi@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: Replace with memory API equivalent. Signed-off-by: Avi Kivity --- hw/framebuffer.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/framebuffer.c b/hw/framebuffer.c index 3f4e773..b43bcdf 100644 --- a/hw/framebuffer.c +++ b/hw/framebuffer.c @@ -50,7 +50,6 @@ void framebuffer_update_display( *first_row = -1; src_len = src_width * rows; - cpu_physical_sync_dirty_bitmap(base, base + src_len); mem_section = memory_region_find(address_space, base, src_len); if (mem_section.size != src_len || !memory_region_is_ram(mem_section.mr)) { return; @@ -59,6 +58,7 @@ void framebuffer_update_display( assert(mem); assert(mem_section.offset_within_address_space == base); + memory_region_sync_dirty_bitmap(mem); src_base = cpu_physical_memory_map(base, &src_len, 0); /* If we can't map the framebuffer then bail. We could try harder, but it's not really worth it as dirty flag tracking will probably -- 1.7.7.1