From patchwork Mon Dec 19 14:13:28 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Avi Kivity X-Patchwork-Id: 132243 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 96358B7048 for ; Tue, 20 Dec 2011 01:26:32 +1100 (EST) Received: from localhost ([::1]:52789 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rcdzk-0005aI-IM for incoming@patchwork.ozlabs.org; Mon, 19 Dec 2011 09:15:12 -0500 Received: from eggs.gnu.org ([140.186.70.92]:48605) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rcdyn-0002wf-7y for qemu-devel@nongnu.org; Mon, 19 Dec 2011 09:14:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rcdyh-0001uH-4d for qemu-devel@nongnu.org; Mon, 19 Dec 2011 09:14:13 -0500 Received: from mx1.redhat.com ([209.132.183.28]:48484) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rcdyg-0001tK-ND for qemu-devel@nongnu.org; Mon, 19 Dec 2011 09:14:07 -0500 Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id pBJEE2p8004308 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Mon, 19 Dec 2011 09:14:02 -0500 Received: from cleopatra.tlv.redhat.com (cleopatra.tlv.redhat.com [10.35.255.11]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id pBJEE1G8015710; Mon, 19 Dec 2011 09:14:02 -0500 Received: from s01.tlv.redhat.com (s01.tlv.redhat.com [10.35.255.8]) by cleopatra.tlv.redhat.com (Postfix) with ESMTP id A4CEB250BA6; Mon, 19 Dec 2011 16:13:54 +0200 (IST) From: Avi Kivity To: Stefano Stabellini , qemu-devel@nongnu.org, "Michael S. Tsirkin" Date: Mon, 19 Dec 2011 16:13:28 +0200 Message-Id: <1324304024-11220-8-git-send-email-avi@redhat.com> In-Reply-To: <1324304024-11220-1-git-send-email-avi@redhat.com> References: <1324304024-11220-1-git-send-email-avi@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 209.132.183.28 Cc: xen-devel@lists.xensource.com, kvm@vger.kernel.org Subject: [Qemu-devel] [PATCH 07/23] framebuffer: drop use of cpu_physical_sync_dirty_bitmap() X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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