qemu-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-commits] [COMMIT 93102fd] kvm: Fix framebuffer dirty log sync


From: Anthony Liguori
Subject: [Qemu-commits] [COMMIT 93102fd] kvm: Fix framebuffer dirty log sync
Date: Fri, 22 May 2009 15:52:50 -0000

From: Jan Kiszka <address@hidden>

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 <address@hidden>
Signed-off-by: Anthony Liguori <address@hidden>

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.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]