]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Drop level optimization from fast_page_fault()
authorSean Christopherson <sean.j.christopherson@intel.com>
Wed, 8 Jan 2020 20:24:42 +0000 (12:24 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 27 Jan 2020 19:00:05 +0000 (20:00 +0100)
commit03ca4a9e893ea90f7d53b23dce28383f0172fada
tree5e759ad20182945c2498ee3259eddd415f81bf02
parent282546b5fff0f000b2f88afe8781198cadd05446
KVM: x86/mmu: Drop level optimization from fast_page_fault()

Remove fast_page_fault()'s optimization to stop the shadow walk if the
iterator level drops below the intended map level.  The intended map
level is only acccurate for HugeTLB mappings (THP mappings are detected
after fast_page_fault()), i.e. it's not required for correctness, and
a future patch will also move HugeTLB mapping detection to after
fast_page_fault().

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