summaryrefslogtreecommitdiff
path: root/arch
diff options
context:
space:
mode:
authorXudong Hao <xudong.hao@intel.com>2012-06-07 10:26:07 (GMT)
committerMarcelo Tosatti <mtosatti@redhat.com>2012-06-13 23:28:21 (GMT)
commit00763e41138267a307531397f9745835aecb8c7b (patch)
tree91f2fb62e9184393cad8c70cce2c801436093895 /arch
parent80feb89a0a1381642f1cce9036ef3bb22f13b40a (diff)
downloadlinux-00763e41138267a307531397f9745835aecb8c7b.tar.xz
KVM: x86: change PT_FIRST_AVAIL_BITS_SHIFT to avoid conflict with EPT Dirty bit
EPT Dirty bit use bit 9 as Intel SDM definition, to avoid conflict, change PT_FIRST_AVAIL_BITS_SHIFT to 10. Signed-off-by: Xudong Hao <xudong.hao@intel.com> Signed-off-by: Xiantao Zhang <xiantao.zhang@intel.com> Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/x86/kvm/mmu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c
index b32a11d..3b53d9e 100644
--- a/arch/x86/kvm/mmu.c
+++ b/arch/x86/kvm/mmu.c
@@ -90,7 +90,7 @@ module_param(dbg, bool, 0644);
#define PTE_PREFETCH_NUM 8
-#define PT_FIRST_AVAIL_BITS_SHIFT 9
+#define PT_FIRST_AVAIL_BITS_SHIFT 10
#define PT64_SECOND_AVAIL_BITS_SHIFT 52
#define PT64_LEVEL_BITS 9