From fd4aa979033ca604ad829cf95055d4b5c5ed1063 Mon Sep 17 00:00:00 2001 From: Blue Swirl Date: Sun, 16 Oct 2011 16:04:59 +0000 Subject: memory: change dirty setting APIs to take a size Instead of each target knowing or guessing the guest page size, just pass the desired size of dirtied memory area. Signed-off-by: Blue Swirl --- hw/qxl.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'hw/qxl.c') diff --git a/hw/qxl.c b/hw/qxl.c index bdd36f9d06..6442193274 100644 --- a/hw/qxl.c +++ b/hw/qxl.c @@ -343,10 +343,7 @@ static void init_qxl_ram(PCIQXLDevice *d) /* can be called from spice server thread context */ static void qxl_set_dirty(MemoryRegion *mr, ram_addr_t addr, ram_addr_t end) { - while (addr < end) { - memory_region_set_dirty(mr, addr); - addr += TARGET_PAGE_SIZE; - } + memory_region_set_dirty(mr, addr, end - addr); } static void qxl_rom_set_dirty(PCIQXLDevice *qxl) -- cgit v1.2.3