aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorGerd Hoffmann <kraxel@redhat.com>2013-09-11 13:15:48 +0200
committerGerd Hoffmann <kraxel@redhat.com>2013-09-18 11:13:29 +0200
commitb0297b4a82f5ba39f6e75c024f80bc4c20070d27 (patch)
treebcd2d2274627f145e02e8c20eff43fbe7c73484d /hw
parent60b3b2a55f4b3fb72419ce7e4b44378dc56eed28 (diff)
qxl: simplify page dirtying
No need to do target page size calculations here, memory_region_set_dirty will care for us. Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/display/qxl.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/hw/display/qxl.c b/hw/display/qxl.c
index bcbf97aceb..ee2db0da1a 100644
--- a/hw/display/qxl.c
+++ b/hw/display/qxl.c
@@ -414,9 +414,8 @@ static void qxl_ram_set_dirty(PCIQXLDevice *qxl, void *ptr)
intptr_t offset;
offset = ptr - base;
- offset &= ~(TARGET_PAGE_SIZE-1);
assert(offset < qxl->vga.vram_size);
- qxl_set_dirty(&qxl->vga.vram, offset, offset + TARGET_PAGE_SIZE);
+ qxl_set_dirty(&qxl->vga.vram, offset, offset + 3);
}
/* can be called from spice server thread context */