From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=57152 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PL1tg-0001Hw-SR for qemu-devel@nongnu.org; Tue, 23 Nov 2010 18:03:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PL1tT-0000sP-Kp for qemu-devel@nongnu.org; Tue, 23 Nov 2010 18:03:36 -0500 Received: from mx1.redhat.com ([209.132.183.28]:23197) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PL1tT-0000sC-67 for qemu-devel@nongnu.org; Tue, 23 Nov 2010 18:03:23 -0500 From: Juan Quintela Date: Wed, 24 Nov 2010 00:03:02 +0100 Message-Id: <8975f5409c231fba23ddc866248f33718cc50e22.1290552026.git.quintela@redhat.com> In-Reply-To: References: In-Reply-To: References: Subject: [Qemu-devel] [PATCH 05/10] KVM don't care about TLB handling List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Juan Quintela From: Juan Quintela 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 Signed-off-by: Juan Quintela --- 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