From: Juan Quintela <quint...@trasno.org> TLB handling is only used in TCG mode. It is very costly for guests with lots of memory ad lots of CPU's.
Signed-off-by: Juan Quintela <quint...@redhat.com> Signed-off-by: Juan Quintela <quint...@trasno.org> --- exec.c | 3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/exec.c b/exec.c index db9ff55..f5b2386 100644 --- a/exec.c +++ b/exec.c @@ -2028,6 +2028,9 @@ void cpu_physical_memory_reset_dirty(ram_addr_t start, ram_addr_t end, return; cpu_physical_memory_mask_dirty_range(start, length, dirty_flags); + if (kvm_enabled()) + return; + /* we modify the TLB cache so that the dirty bit will be set again when accessing the range */ start1 = (unsigned long)qemu_get_ram_ptr(start); -- 1.7.3.2