diff options
| -rw-r--r-- | arch/x86/kvm/mmu.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 7f57da663826..b0e4ddca6c18 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c | |||
| @@ -1189,9 +1189,10 @@ static int __direct_map(struct kvm_vcpu *vcpu, gpa_t v, int write, | |||
| 1189 | return -ENOMEM; | 1189 | return -ENOMEM; |
| 1190 | } | 1190 | } |
| 1191 | 1191 | ||
| 1192 | table[index] = __pa(new_table->spt) | 1192 | set_shadow_pte(&table[index], |
| 1193 | | PT_PRESENT_MASK | PT_WRITABLE_MASK | 1193 | __pa(new_table->spt) |
| 1194 | | shadow_user_mask | shadow_x_mask; | 1194 | | PT_PRESENT_MASK | PT_WRITABLE_MASK |
| 1195 | | shadow_user_mask | shadow_x_mask); | ||
| 1195 | } | 1196 | } |
| 1196 | table_addr = table[index] & PT64_BASE_ADDR_MASK; | 1197 | table_addr = table[index] & PT64_BASE_ADDR_MASK; |
| 1197 | } | 1198 | } |
