From patchwork Tue Nov 23 23:03:02 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Juan Quintela X-Patchwork-Id: 72773 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id BAA25B6EDF for ; Wed, 24 Nov 2010 10:10:28 +1100 (EST) Received: from localhost ([127.0.0.1]:39829 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PL20H-0004SK-DR for incoming@patchwork.ozlabs.org; Tue, 23 Nov 2010 18:10:25 -0500 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 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id oANN3M91013737 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Tue, 23 Nov 2010 18:03:22 -0500 Received: from trasno.mitica (ovpn-113-23.phx2.redhat.com [10.3.113.23]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id oANN3D5Z025161; Tue, 23 Nov 2010 18:03:21 -0500 From: Juan Quintela To: qemu-devel@nongnu.org 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: X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. Cc: Juan Quintela Subject: [Qemu-devel] [PATCH 05/10] KVM don't care about TLB handling X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org 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);