]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Move fast_page_fault() call above mmu_topup_memory_caches()
authorSean Christopherson <sean.j.christopherson@intel.com>
Fri, 3 Jul 2020 02:35:30 +0000 (19:35 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 9 Jul 2020 17:29:39 +0000 (13:29 -0400)
commit633ab42c016f6b9481733a3b8e56104d8396ea9b
tree632781264329f68a128fd02325d371a5d1bb0a95
parent34e75f509ce395159a76283a07fd1c9fe91e017c
KVM: x86/mmu: Move fast_page_fault() call above mmu_topup_memory_caches()

Avoid refilling the memory caches and potentially slow reclaim/swap when
handling a fast page fault, which does not need to allocate any new
objects.

Reviewed-by: Ben Gardon <bgardon@google.com>
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Message-Id: <20200703023545.8771-7-sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/mmu.c