qxl: stop dirty loging when not in vga mode
PATCH 1/1 qxl: stop dirty loging when not in vga mode
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]>
--- hw/qxl.c | 2 ++ 1 file changed, 2 insertions(+)
hw/qxl.c +2 -0
@@ -933,6 +933,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)
@@ -941,6 +942,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 ); }
Signature · 1 line
1.7.10.1