KVM: x86: change PT_FIRST_AVAIL_BITS_SHIFT to avoid conflict with EPT Dirty bit
authorXudong Hao <xudong.hao@intel.com>
Thu, 7 Jun 2012 10:26:07 +0000 (18:26 +0800)
committerMarcelo Tosatti <mtosatti@redhat.com>
Wed, 13 Jun 2012 23:28:21 +0000 (20:28 -0300)
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>
arch/x86/kvm/mmu.c

index b32a11dc884c09ead976ac3d3e93921d587f5062..3b53d9e08bfc3ae5eb8e2ff4efbd773d0efc5091 100644 (file)
@@ -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