From patchwork Tue Jul 7 16:41:06 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Joerg Roedel X-Patchwork-Id: 34488 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 n67GfVMB012337 for ; Tue, 7 Jul 2009 16:41:31 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754721AbZGGQl1 (ORCPT ); Tue, 7 Jul 2009 12:41:27 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1754359AbZGGQl1 (ORCPT ); Tue, 7 Jul 2009 12:41:27 -0400 Received: from va3ehsobe001.messaging.microsoft.com ([216.32.180.11]:17038 "EHLO VA3EHSOBE001.bigfish.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753247AbZGGQl0 (ORCPT ); Tue, 7 Jul 2009 12:41:26 -0400 Received: from mail93-va3-R.bigfish.com (10.7.14.251) by VA3EHSOBE001.bigfish.com (10.7.40.21) with Microsoft SMTP Server id 8.1.340.0; Tue, 7 Jul 2009 16:41:25 +0000 Received: from mail93-va3 (localhost.localdomain [127.0.0.1]) by mail93-va3-R.bigfish.com (Postfix) with ESMTP id 8F7CBA10124; Tue, 7 Jul 2009 16:41:25 +0000 (UTC) X-SpamScore: 3 X-BigFish: VPS3(zzzz1202hzzz32i43j65h) X-Spam-TCS-SCL: 4:0 Received: by mail93-va3 (MessageSwitch) id 1246984884205526_11140; Tue, 7 Jul 2009 16:41:24 +0000 (UCT) Received: from svlb1extmailp02.amd.com (unknown [139.95.251.11]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mail93-va3.bigfish.com (Postfix) with ESMTP id 0CE3E1600056; Tue, 7 Jul 2009 16:41:23 +0000 (UTC) Received: from svlb1twp01.amd.com ([139.95.250.34]) by svlb1extmailp02.amd.com (Switch-3.2.7/Switch-3.2.7) with ESMTP id n67GfGoO021893; Tue, 7 Jul 2009 09:41:19 -0700 X-WSS-ID: 0KMF7OP-03-MPG-01 Received: from SSVLEXBH1.amd.com (ssvlexbh1.amd.com [139.95.53.182]) by svlb1twp01.amd.com (Tumbleweed MailGate 3.5.1) with ESMTP id 240A488493B; Tue, 7 Jul 2009 09:41:12 -0700 (PDT) Received: from SSVLEXMB1.amd.com ([139.95.53.181]) by SSVLEXBH1.amd.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 7 Jul 2009 09:41:19 -0700 Received: from SF30EXMB1.amd.com ([172.20.6.49]) by SSVLEXMB1.amd.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 7 Jul 2009 09:41:19 -0700 Received: from seurexmb1.amd.com ([165.204.9.130]) by SF30EXMB1.amd.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 7 Jul 2009 18:41:16 +0200 Received: from lemmy.amd.com ([165.204.15.93]) by seurexmb1.amd.com with Microsoft SMTPSVC(6.0.3790.3959); Tue, 7 Jul 2009 18:41:16 +0200 Received: by lemmy.amd.com (Postfix, from userid 41430) id DAEEFC9BB1; Tue, 7 Jul 2009 18:41:15 +0200 (CEST) From: Joerg Roedel To: Avi Kivity , Marcelo Tosatti CC: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Joerg Roedel Subject: [PATCH 5/6] kvm/mmu: enable gbpages by increasing nr of pagesizes Date: Tue, 7 Jul 2009 18:41:06 +0200 Message-ID: <1246984867-15952-6-git-send-email-joerg.roedel@amd.com> X-Mailer: git-send-email 1.6.3.3 In-Reply-To: <1246984867-15952-1-git-send-email-joerg.roedel@amd.com> References: <1246984867-15952-1-git-send-email-joerg.roedel@amd.com> X-OriginalArrivalTime: 07 Jul 2009 16:41:16.0162 (UTC) FILETIME=[BF155620:01C9FF21] 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 1fa1ff0..be2315b 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h @@ -55,7 +55,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))