From patchwork Fri Feb 19 06:43:24 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jes Sorensen X-Patchwork-Id: 45841 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 601E6B7CEC for ; Fri, 19 Feb 2010 17:52:25 +1100 (EST) Received: from localhost ([127.0.0.1]:33276 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NiMcY-0003V2-BQ for incoming@patchwork.ozlabs.org; Fri, 19 Feb 2010 01:45:50 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NiMaM-0003P4-L8 for qemu-devel@nongnu.org; Fri, 19 Feb 2010 01:43:34 -0500 Received: from [199.232.76.173] (port=44900 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NiMaL-0003Ob-QP for qemu-devel@nongnu.org; Fri, 19 Feb 2010 01:43:33 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NiMaL-0003cO-7S for qemu-devel@nongnu.org; Fri, 19 Feb 2010 01:43:33 -0500 Received: from mx1.redhat.com ([209.132.183.28]:64411) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NiMaK-0003cC-Sg for qemu-devel@nongnu.org; Fri, 19 Feb 2010 01:43:33 -0500 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o1J6hUao002402 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Fri, 19 Feb 2010 01:43:31 -0500 Received: from [172.17.68.6] (ovpn01.gateway.prod.ext.phx2.redhat.com [10.5.9.1]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o1J6hPBK029156; Fri, 19 Feb 2010 01:43:27 -0500 Message-ID: <4B7E330C.4090302@redhat.com> Date: Fri, 19 Feb 2010 07:43:24 +0100 From: Jes Sorensen User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.7) Gecko/20100120 Fedora/3.0.1-1.fc12 Lightning/1.0b2pre Thunderbird/3.0.1 MIME-Version: 1.0 To: Anthony Liguori X-Scanned-By: MIMEDefang 2.67 on 10.5.11.21 X-detected-operating-system: by monty-python.gnu.org: Genre and OS details not recognized. Cc: Marcelo Tosatti , QEMU Developers , KVM General Subject: [Qemu-devel] [PATCH] QEMU kill CR3_CACHE references 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 Hi, The CR3 caching was never implemented in QEMU and is obsoleted by NPT/EPT. This patch removes the unused references to it from target-i386/kvm.c. Cheers, Jes commit 5ed16687929511d015dd3542c4359cabe170401a Author: Jes Sorensen Date: Fri Feb 19 07:39:56 2010 +0100 Remove all references to KVM_CR3_CACHE as it was never implemented. Signed-off-by: Jes Sorensen diff --git a/target-i386/kvm.c b/target-i386/kvm.c index 0d08cd5..5d9aecc 100644 --- a/target-i386/kvm.c +++ b/target-i386/kvm.c @@ -158,9 +158,6 @@ struct kvm_para_features { #ifdef KVM_CAP_PV_MMU { KVM_CAP_PV_MMU, KVM_FEATURE_MMU_OP }, #endif -#ifdef KVM_CAP_CR3_CACHE - { KVM_CAP_CR3_CACHE, KVM_FEATURE_CR3_CACHE }, -#endif { -1, -1 } };