]> git.baikalelectronics.ru Git - kernel.git/commit
Revert "KVM: x86: use the fast way to invalidate all pages"
authorSean Christopherson <sean.j.christopherson@intel.com>
Tue, 5 Feb 2019 21:01:31 +0000 (13:01 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 20 Feb 2019 21:48:45 +0000 (22:48 +0100)
commit7550b7a731d48e236b4e8155d5db6bb9bd283527
treeafbe21289a948edd4163ed2efe3d3b990e41fcc3
parent208ec3fd4af02fd17587e083c0fb671c78f4a7f2
Revert "KVM: x86: use the fast way to invalidate all pages"

Revert to a slow kvm_mmu_zap_all() for kvm_arch_flush_shadow_all().
Flushing all shadow entries is only done during VM teardown, i.e.
kvm_arch_flush_shadow_all() is only called when the associated MM struct
is being released or when the VM instance is being freed.

Although the performance of teardown itself isn't critical, KVM should
still voluntarily schedule to play nice with the rest of the kernel;
but that can be done without the fast invalidate mechanism in a future
patch.

This reverts commit a911c034a669d3c3e29ad0817b0030b85aa63375.

Cc: Xiao Guangrong <guangrong.xiao@gmail.com>
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