]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Revert "KVM: x86/mmu: Remove is_obsolete() call"
authorSean Christopherson <sean.j.christopherson@intel.com>
Fri, 13 Sep 2019 02:46:10 +0000 (19:46 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 24 Sep 2019 12:35:53 +0000 (14:35 +0200)
commit7834aa35915cc4851b3ba3ed0e8711a30bd53b68
tree2c7113231a3f298ef7b782b5259fea1a70327101
parent85e65af5791a5db3acd2cb654a1fb3b11f217a7b
KVM: x86/mmu: Revert "KVM: x86/mmu: Remove is_obsolete() call"

Now that the fast invalidate mechanism has been reintroduced, restore
the performance tweaks for fast invalidation that existed prior to its
removal.

Paraphrasing the original changelog (commit 9d26cfba880db was itself a
partial revert):

  Don't force reloading the remote mmu when zapping an obsolete page, as
  a MMU_RELOAD request has already been issued by kvm_mmu_zap_all_fast()
  immediately after incrementing mmu_valid_gen, i.e. after marking pages
  obsolete.

This reverts commit 9d26cfba880db3e83a4b7325a854e0052133cf04.

Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu.c
arch/x86/kvm/x86.c