summaryrefslogtreecommitdiffstats
path: root/include/asm-x86
diff options
context:
space:
mode:
authorDong, Eddie <eddie.dong@intel.com>2008-01-07 13:20:25 +0200
committerAvi Kivity <avi@qumranet.com>2008-04-27 11:53:14 +0300
commit1ae0a13def678876b9acfb5ac1e2cf7d5d45a60d (patch)
tree6127e3b33d325cf88053f38a9c9d5cea1be3b65d /include/asm-x86
parent489f1d6526ab68ca1842398fa3ae95c597fe3d32 (diff)
downloadblackbird-op-linux-1ae0a13def678876b9acfb5ac1e2cf7d5d45a60d.tar.gz
blackbird-op-linux-1ae0a13def678876b9acfb5ac1e2cf7d5d45a60d.zip
KVM: MMU: Simplify hash table indexing
Signed-off-by: Yaozu (Eddie) Dong <eddie.dong@intel.com> Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'include/asm-x86')
-rw-r--r--include/asm-x86/kvm_host.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/asm-x86/kvm_host.h b/include/asm-x86/kvm_host.h
index 68ee390b2844..e076790ee794 100644
--- a/include/asm-x86/kvm_host.h
+++ b/include/asm-x86/kvm_host.h
@@ -58,7 +58,8 @@
#define KVM_PERMILLE_MMU_PAGES 20
#define KVM_MIN_ALLOC_MMU_PAGES 64
-#define KVM_NUM_MMU_PAGES 1024
+#define KVM_MMU_HASH_SHIFT 10
+#define KVM_NUM_MMU_PAGES (1 << KVM_MMU_HASH_SHIFT)
#define KVM_MIN_FREE_MMU_PAGES 5
#define KVM_REFILL_PAGES 25
#define KVM_MAX_CPUID_ENTRIES 40
OpenPOWER on IntegriCloud