From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:41037) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RdMJt-00077F-JX for qemu-devel@nongnu.org; Wed, 21 Dec 2011 08:35:01 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RdMJq-0004oY-0v for qemu-devel@nongnu.org; Wed, 21 Dec 2011 08:34:57 -0500 Received: from mx1.redhat.com ([209.132.183.28]:39870) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RdMJp-0004o7-Kv for qemu-devel@nongnu.org; Wed, 21 Dec 2011 08:34:53 -0500 From: Avi Kivity Date: Wed, 21 Dec 2011 15:34:36 +0200 Message-Id: <1324474477-22267-8-git-send-email-avi@redhat.com> In-Reply-To: <1324474477-22267-1-git-send-email-avi@redhat.com> References: <1324474477-22267-1-git-send-email-avi@redhat.com> Subject: [Qemu-devel] [PATCH 7/8] xen: convert framebuffer dirty tracking to memory API List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori , qemu-devel@nongnu.org, quintela@redhat.com Signed-off-by: Avi Kivity --- xen-all.c | 5 ++--- 1 files changed, 2 insertions(+), 3 deletions(-) diff --git a/xen-all.c b/xen-all.c index df70592..8f9db95 100644 --- a/xen-all.c +++ b/xen-all.c @@ -408,7 +408,6 @@ static int xen_sync_dirty_bitmap(XenIOState *state, ram_addr_t size) { target_phys_addr_t npages = size >> TARGET_PAGE_BITS; - target_phys_addr_t vram_offset = 0; const int width = sizeof(unsigned long) * 8; unsigned long bitmap[(npages + width - 1) / width]; int rc, i, j; @@ -425,7 +424,6 @@ static int xen_sync_dirty_bitmap(XenIOState *state, } else if (state->log_for_dirtybit != physmap) { return -1; } - vram_offset = physmap->phys_offset; rc = xc_hvm_track_dirty_vram(xen_xc, xen_domid, start_addr >> TARGET_PAGE_BITS, npages, @@ -439,7 +437,8 @@ static int xen_sync_dirty_bitmap(XenIOState *state, while (map != 0) { j = ffsl(map) - 1; map &= ~(1ul << j); - cpu_physical_memory_set_dirty(vram_offset + (i * width + j) * TARGET_PAGE_SIZE); + memory_region_set_dirty(framebuffer, + (i * width + j) * TARGET_PAGE_SIZE); }; } -- 1.7.7.1