projects
/
sdk
/
emulator
/
qemu.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
60b3b2a
)
qxl: simplify page dirtying
author
Gerd Hoffmann
<kraxel@redhat.com>
Wed, 11 Sep 2013 11:15:48 +0000
(13:15 +0200)
committer
Gerd Hoffmann
<kraxel@redhat.com>
Wed, 18 Sep 2013 09:13:29 +0000
(11:13 +0200)
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>
hw/display/qxl.c
patch
|
blob
|
history
diff --git
a/hw/display/qxl.c
b/hw/display/qxl.c
index bcbf97acebcafae9f4748a4861728ca76559e131..ee2db0da1a07c44b07b44cfd30b2517ccf570ff9 100644
(file)
--- 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 */