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>
This commit is contained in:
parent
60b3b2a55f
commit
b0297b4a82
|
@ -414,9 +414,8 @@ static void qxl_ram_set_dirty(PCIQXLDevice *qxl, void *ptr)
|
||||||
intptr_t offset;
|
intptr_t offset;
|
||||||
|
|
||||||
offset = ptr - base;
|
offset = ptr - base;
|
||||||
offset &= ~(TARGET_PAGE_SIZE-1);
|
|
||||||
assert(offset < qxl->vga.vram_size);
|
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 */
|
/* can be called from spice server thread context */
|
||||||
|
|
Loading…
Reference in a new issue