aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 69d40a6e1e68..d3cd102aee26 100644
--- a/arch/x86/kvm/mmu.c
+++ b/arch/x86/kvm/mmu.c
@@ -1378,7 +1378,7 @@ static struct kvm_mmu_page *kvm_mmu_get_page(struct kvm_vcpu *vcpu,
1378 if (role.direct) 1378 if (role.direct)
1379 role.cr4_pae = 0; 1379 role.cr4_pae = 0;
1380 role.access = access; 1380 role.access = access;
1381 if (vcpu->arch.mmu.root_level <= PT32_ROOT_LEVEL) { 1381 if (!tdp_enabled && vcpu->arch.mmu.root_level <= PT32_ROOT_LEVEL) {
1382 quadrant = gaddr >> (PAGE_SHIFT + (PT64_PT_BITS * level)); 1382 quadrant = gaddr >> (PAGE_SHIFT + (PT64_PT_BITS * level));
1383 quadrant &= (1 << ((PT32_PT_BITS - PT64_PT_BITS) * level)) - 1; 1383 quadrant &= (1 << ((PT32_PT_BITS - PT64_PT_BITS) * level)) - 1;
1384 role.quadrant = quadrant; 1384 role.quadrant = quadrant;