mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 17:23:56 -06:00
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 <alevy@redhat.com> Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
This commit is contained in:
parent
0a530548a1
commit
0f7bfd8198
1 changed files with 2 additions and 0 deletions
2
hw/qxl.c
2
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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue