aboutsummaryrefslogtreecommitdiff
path: root/hw/framebuffer.c
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2009-05-02 00:29:37 +0200
committerAnthony Liguori <aliguori@us.ibm.com>2009-05-22 10:50:33 -0500
commit93102fd6010c68320bc9a008c8cf70cb4a36d4b9 (patch)
treec6c0c6a1390ff8febe3079d5235f921c79dddcde /hw/framebuffer.c
parentb0a46a333acfd78da56cf6aebb95f4a5dfb3a4f2 (diff)
downloadqemu-93102fd6010c68320bc9a008c8cf70cb4a36d4b9.zip
qemu-93102fd6010c68320bc9a008c8cf70cb4a36d4b9.tar.gz
qemu-93102fd6010c68320bc9a008c8cf70cb4a36d4b9.tar.bz2
kvm: Fix framebuffer dirty log sync
kvm_physical_sync_dirty_bitmap() takes the end address as second argument, not the region size. Moverover, the kvm API should not be used directly here, but cpu_physical_sync_dirty_bitmap(). Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
Diffstat (limited to 'hw/framebuffer.c')
-rw-r--r--hw/framebuffer.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/hw/framebuffer.c b/hw/framebuffer.c
index 1086ba9..24cdf25 100644
--- a/hw/framebuffer.c
+++ b/hw/framebuffer.c
@@ -17,7 +17,6 @@
#include "hw.h"
#include "console.h"
#include "framebuffer.h"
-#include "kvm.h"
/* Render an image from a shared memory framebuffer. */
@@ -50,9 +49,7 @@ void framebuffer_update_display(
*first_row = -1;
src_len = src_width * rows;
- if (kvm_enabled()) {
- kvm_physical_sync_dirty_bitmap(base, src_len);
- }
+ cpu_physical_sync_dirty_bitmap(base, base + src_len);
pd = cpu_get_physical_page_desc(base);
pd2 = cpu_get_physical_page_desc(base + src_len - 1);
/* We should reall check that this is a continuous ram region.