diff options
author | Xiao Guangrong <guangrong.xiao@linux.intel.com> | 2015-05-13 14:42:21 +0800 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2015-05-19 20:52:39 +0200 |
commit | 8a3d08f16fc63400f637dfa69aa5c7ea016ee18a (patch) | |
tree | 99df53e5952f9a4ed0998cb4404d76762a3abba4 /arch/x86/kvm/mmu.h | |
parent | 0d5367900a319ab8971817b0ca15a8b9f7c47e6f (diff) | |
download | linux-8a3d08f16fc63400f637dfa69aa5c7ea016ee18a.tar.bz2 |
KVM: MMU: introduce PT_MAX_HUGEPAGE_LEVEL
Suggested-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Xiao Guangrong <guangrong.xiao@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/mmu.h')
-rw-r--r-- | arch/x86/kvm/mmu.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kvm/mmu.h b/arch/x86/kvm/mmu.h index 0ada65ecddcf..72bb33f70c16 100644 --- a/arch/x86/kvm/mmu.h +++ b/arch/x86/kvm/mmu.h @@ -43,6 +43,7 @@ #define PT_PDPE_LEVEL 3 #define PT_DIRECTORY_LEVEL 2 #define PT_PAGE_TABLE_LEVEL 1 +#define PT_MAX_HUGEPAGE_LEVEL (PT_PAGE_TABLE_LEVEL + KVM_NR_PAGE_SIZES - 1) static inline u64 rsvd_bits(int s, int e) { |