Commit 93102fd6010c68320bc9a008c8cf70cb4a36d4b9

Authored by Jan Kiszka
Committed by Anthony Liguori
1 parent b0a46a33

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>
Showing 1 changed file with 1 additions and 4 deletions
hw/framebuffer.c
... ... @@ -17,7 +17,6 @@
17 17 #include "hw.h"
18 18 #include "console.h"
19 19 #include "framebuffer.h"
20   -#include "kvm.h"
21 20  
22 21 /* Render an image from a shared memory framebuffer. */
23 22  
... ... @@ -50,9 +49,7 @@ void framebuffer_update_display(
50 49 *first_row = -1;
51 50 src_len = src_width * rows;
52 51  
53   - if (kvm_enabled()) {
54   - kvm_physical_sync_dirty_bitmap(base, src_len);
55   - }
  52 + cpu_physical_sync_dirty_bitmap(base, base + src_len);
56 53 pd = cpu_get_physical_page_desc(base);
57 54 pd2 = cpu_get_physical_page_desc(base + src_len - 1);
58 55 /* We should reall check that this is a continuous ram region.
... ...