]> Git Repo - qemu.git/commitdiff
qxl: stop dirty loging when not in vga mode
authorAlon Levy <[email protected]>
Thu, 24 May 2012 16:18:53 +0000 (19:18 +0300)
committerGerd Hoffmann <[email protected]>
Fri, 22 Jun 2012 08:46:12 +0000 (10:46 +0200)
Tested with linux guest. Not sure how to check actual performance affect
of this. Checked with the previously send traceevent that the kvm ioctl
to start/stop dirty logging is being called.
(KVM_SET_USER_MEMORY_REGION).

Signed-off-by: Alon Levy <[email protected]>
Signed-off-by: Gerd Hoffmann <[email protected]>
hw/qxl.c

index 8777ba9615c3838e1284faa8e2ddd4b73016d3ff..5a7be60668415bc22812b7b8e705597586817167 100644 (file)
--- a/hw/qxl.c
+++ b/hw/qxl.c
@@ -932,6 +932,7 @@ static void qxl_enter_vga_mode(PCIQXLDevice *d)
     qemu_spice_create_host_primary(&d->ssd);
     d->mode = QXL_MODE_VGA;
     memset(&d->ssd.dirty, 0, sizeof(d->ssd.dirty));
+    vga_dirty_log_start(&d->vga);
 }
 
 static void qxl_exit_vga_mode(PCIQXLDevice *d)
@@ -940,6 +941,7 @@ static void qxl_exit_vga_mode(PCIQXLDevice *d)
         return;
     }
     trace_qxl_exit_vga_mode(d->id);
+    vga_dirty_log_stop(&d->vga);
     qxl_destroy_primary(d, QXL_SYNC);
 }
 
This page took 0.028791 seconds and 4 git commands to generate.