diff options
Diffstat (limited to 'arch/x86/kvm/mmu.c')
-rw-r--r-- | arch/x86/kvm/mmu.c | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/arch/x86/kvm/mmu.c b/arch/x86/kvm/mmu.c index 9628091c574d..baa6503894d3 100644 --- a/arch/x86/kvm/mmu.c +++ b/arch/x86/kvm/mmu.c | |||
@@ -1581,11 +1581,13 @@ static void mmu_pte_write_new_pte(struct kvm_vcpu *vcpu, | |||
1581 | u64 *spte, | 1581 | u64 *spte, |
1582 | const void *new) | 1582 | const void *new) |
1583 | { | 1583 | { |
1584 | if ((sp->role.level != PT_PAGE_TABLE_LEVEL) | 1584 | if (sp->role.level != PT_PAGE_TABLE_LEVEL) { |
1585 | && !vcpu->arch.update_pte.largepage) { | 1585 | if (!vcpu->arch.update_pte.largepage || |
1586 | ++vcpu->kvm->stat.mmu_pde_zapped; | 1586 | sp->role.glevels == PT32_ROOT_LEVEL) { |
1587 | return; | 1587 | ++vcpu->kvm->stat.mmu_pde_zapped; |
1588 | } | 1588 | return; |
1589 | } | ||
1590 | } | ||
1589 | 1591 | ||
1590 | ++vcpu->kvm->stat.mmu_pte_updated; | 1592 | ++vcpu->kvm->stat.mmu_pte_updated; |
1591 | if (sp->role.glevels == PT32_ROOT_LEVEL) | 1593 | if (sp->role.glevels == PT32_ROOT_LEVEL) |