aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/mmu.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86/kvm/mmu.c')
-rw-r--r--arch/x86/kvm/mmu.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c
index 3dbedf169730..d9344be36442 100644
--- a/arch/x86/kvm/mmu.c
+++ b/arch/x86/kvm/mmu.c
@@ -1177,8 +1177,9 @@ static int __direct_map(struct kvm_vcpu *vcpu, gpa_t v, int write,
1177 return -ENOMEM; 1177 return -ENOMEM;
1178 } 1178 }
1179 1179
1180 table[index] = __pa(new_table->spt) | PT_PRESENT_MASK 1180 table[index] = __pa(new_table->spt)
1181 | PT_WRITABLE_MASK | shadow_user_mask; 1181 | PT_PRESENT_MASK | PT_WRITABLE_MASK
1182 | shadow_user_mask | shadow_x_mask;
1182 } 1183 }
1183 table_addr = table[index] & PT64_BASE_ADDR_MASK; 1184 table_addr = table[index] & PT64_BASE_ADDR_MASK;
1184 } 1185 }