aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/kvm_host.h
diff options
context:
space:
mode:
authorJoerg Roedel <joerg.roedel@amd.com>2009-07-27 10:30:47 -0400
committerAvi Kivity <avi@redhat.com>2009-09-10 01:33:19 -0400
commit04326caacff2b162d359c15a2edf634448897d1a (patch)
tree74dfe8a84d074a17dde7d5337ae5463e616525a1 /arch/x86/include/asm/kvm_host.h
parent7e4e4056f72da51c5dede48515df0ecd20eaf8ca (diff)
KVM: MMU: enable gbpages by increasing nr of pagesizes
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/include/asm/kvm_host.h')
-rw-r--r--arch/x86/include/asm/kvm_host.h2
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 c9fb2bc13a81..3315efaacf9e 100644
--- a/arch/x86/include/asm/kvm_host.h
+++ b/arch/x86/include/asm/kvm_host.h
@@ -55,7 +55,7 @@
55#define UNMAPPED_GVA (~(gpa_t)0) 55#define UNMAPPED_GVA (~(gpa_t)0)
56 56
57/* KVM Hugepage definitions for x86 */ 57/* KVM Hugepage definitions for x86 */
58#define KVM_NR_PAGE_SIZES 2 58#define KVM_NR_PAGE_SIZES 3
59#define KVM_HPAGE_SHIFT(x) (PAGE_SHIFT + (((x) - 1) * 9)) 59#define KVM_HPAGE_SHIFT(x) (PAGE_SHIFT + (((x) - 1) * 9))
60#define KVM_HPAGE_SIZE(x) (1UL << KVM_HPAGE_SHIFT(x)) 60#define KVM_HPAGE_SIZE(x) (1UL << KVM_HPAGE_SHIFT(x))
61#define KVM_HPAGE_MASK(x) (~(KVM_HPAGE_SIZE(x) - 1)) 61#define KVM_HPAGE_MASK(x) (~(KVM_HPAGE_SIZE(x) - 1))