[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH 7/8] xen: convert framebuffer dirty tracking to memo
From: |
Avi Kivity |
Subject: |
[Qemu-devel] [PATCH 7/8] xen: convert framebuffer dirty tracking to memory API |
Date: |
Wed, 21 Dec 2011 15:34:36 +0200 |
Signed-off-by: Avi Kivity <address@hidden>
---
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
- [Qemu-devel] [PATCH 0/8] Convert live migration to memory API, Avi Kivity, 2011/12/21
- [Qemu-devel] [PATCH 4/8] Remove support for version 3 ram_load, Avi Kivity, 2011/12/21
- [Qemu-devel] [PATCH 7/8] xen: convert framebuffer dirty tracking to memory API,
Avi Kivity <=
- [Qemu-devel] [PATCH 1/8] Store MemoryRegion in RAMBlock, Avi Kivity, 2011/12/21
- [Qemu-devel] [PATCH 6/8] memory: obsolete cpu_physical_memory_[gs]et_dirty_tracking(), Avi Kivity, 2011/12/21
- [Qemu-devel] [PATCH 3/8] Sort RAMBlocks by ID for migration, not by ram_addr, Avi Kivity, 2011/12/21
- [Qemu-devel] [PATCH 2/8] Switch ram_save to the memory API, Avi Kivity, 2011/12/21
- [Qemu-devel] [PATCH 5/8] Convert ram_load() to the memory API, Avi Kivity, 2011/12/21
- [Qemu-devel] [PATCH 8/8] memory: obsolete more dirty memory related functions, Avi Kivity, 2011/12/21
- Re: [Qemu-devel] [PATCH 0/8] Convert live migration to memory API, Anthony Liguori, 2011/12/21