]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Refactor handling of forced 4k pages in page faults
authorSean Christopherson <sean.j.christopherson@intel.com>
Fri, 6 Dec 2019 23:57:20 +0000 (15:57 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Jan 2020 17:16:05 +0000 (18:16 +0100)
commit41564f74ddb3be2f13a20a549a417198e9c4dcf5
tree00bee61425fe3efee029dfb95c1370fe0e180c1e
parentaa44ac3819bf3e782c43c23ad66ebef10ad66d93
KVM: x86/mmu: Refactor handling of forced 4k pages in page faults

Refactor the page fault handlers and mapping_level() to track the max
allowed page level instead of only tracking if a 4k page is mandatory
due to one restriction or another.  This paves the way for cleanly
consolidating tdp_page_fault() and nonpaging_page_fault(), and for
eliminating a redundant check on mmu_gfn_lpage_is_disallowed().

No functional change intended.

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