From patchwork Fri Apr 24 11:58:46 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joerg Roedel X-Patchwork-Id: 19800 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n3OC0gaP025179 for ; Fri, 24 Apr 2009 12:00:43 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757057AbZDXL7e (ORCPT ); Fri, 24 Apr 2009 07:59:34 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757007AbZDXL7e (ORCPT ); Fri, 24 Apr 2009 07:59:34 -0400 Received: from tx2ehsobe005.messaging.microsoft.com ([65.55.88.15]:5286 "EHLO TX2EHSOBE010.bigfish.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1756921AbZDXL7c (ORCPT ); Fri, 24 Apr 2009 07:59:32 -0400 Received: from mail119-tx2-R.bigfish.com (10.9.14.250) by TX2EHSOBE010.bigfish.com (10.9.40.30) with Microsoft SMTP Server id 8.1.340.0; Fri, 24 Apr 2009 11:59:31 +0000 Received: from mail119-tx2 (localhost.localdomain [127.0.0.1]) by mail119-tx2-R.bigfish.com (Postfix) with ESMTP id 3BF79B902B4; Fri, 24 Apr 2009 11:59:31 +0000 (UTC) X-BigFish: VPS3(zzzz1202hzzz32i43j) Received: by mail119-tx2 (MessageSwitch) id 1240574367750200_6381; Fri, 24 Apr 2009 11:59:27 +0000 (UCT) Received: from ausb3extmailp01.amd.com (unknown [163.181.251.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail119-tx2.bigfish.com (Postfix) with ESMTP id 5AB021150067; Fri, 24 Apr 2009 11:59:00 +0000 (UTC) Received: from ausb3twp02.amd.com ([163.181.250.38]) by ausb3extmailp01.amd.com (Switch-3.2.7/Switch-3.2.7) with ESMTP id n3OBwoZt007007; Fri, 24 Apr 2009 06:58:54 -0500 X-WSS-ID: 0KILTA4-02-NGX-01 Received: from sausexbh2.amd.com (SAUSEXBH2.amd.com [163.181.22.102]) by ausb3twp02.amd.com (Tumbleweed MailGate 3.5.1) with ESMTP id 2A54D16A03F4; Fri, 24 Apr 2009 06:58:51 -0500 (CDT) Received: from sausexmb2.amd.com ([163.181.3.157]) by sausexbh2.amd.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 24 Apr 2009 06:58:57 -0500 Received: from SDRSEXMB1.amd.com ([172.20.3.116]) by sausexmb2.amd.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 24 Apr 2009 06:58:57 -0500 Received: from seurexmb1.amd.com ([165.204.82.130]) by SDRSEXMB1.amd.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 24 Apr 2009 13:58:49 +0200 Received: from lemmy.amd.com ([165.204.15.93]) by seurexmb1.amd.com with Microsoft SMTPSVC(6.0.3790.3959); Fri, 24 Apr 2009 13:58:48 +0200 Received: by lemmy.amd.com (Postfix, from userid 41430) id E419CCA3A5; Fri, 24 Apr 2009 13:58:47 +0200 (CEST) From: Joerg Roedel To: Avi Kivity , Marcelo Tosatti CC: , , Joerg Roedel Subject: [PATCH 6/7] kvm/mmu: enable gbpages by increasing nr of pagesizes Date: Fri, 24 Apr 2009 13:58:46 +0200 Message-ID: <1240574327-21575-7-git-send-email-joerg.roedel@amd.com> X-Mailer: git-send-email 1.6.2.3 In-Reply-To: <1240574327-21575-1-git-send-email-joerg.roedel@amd.com> References: <1240574327-21575-1-git-send-email-joerg.roedel@amd.com> X-OriginalArrivalTime: 24 Apr 2009 11:58:48.0409 (UTC) FILETIME=[06DDF490:01C9C4D4] MIME-Version: 1.0 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Signed-off-by: Joerg Roedel --- arch/x86/include/asm/kvm_host.h | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index 5795177..6215d10 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h @@ -52,7 +52,7 @@ #define UNMAPPED_GVA (~(gpa_t)0) /* KVM Hugepage definitions for x86 */ -#define KVM_NR_PAGE_SIZES 2 +#define KVM_NR_PAGE_SIZES 3 #define KVM_HPAGE_SHIFT(x) (PAGE_SHIFT + (((x) - 1) * 9)) #define KVM_HPAGE_SIZE(x) (1UL << KVM_HPAGE_SHIFT(x)) #define KVM_HPAGE_MASK(x) (~(KVM_HPAGE_SIZE(x) - 1))