]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Refactor handling of cache consistency with TDP
authorSean Christopherson <sean.j.christopherson@intel.com>
Fri, 6 Dec 2019 23:57:18 +0000 (15:57 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Jan 2020 17:16:03 +0000 (18:16 +0100)
commit987854d69ae61615b4b31198ff09775271e2417d
tree0e5d853ff3ad6ee85d80e3272b8ad2ad143e1a71
parent4d9cbf44c9e40a9ca5d8abca09546a99f8fdd326
KVM: x86/mmu: Refactor handling of cache consistency with TDP

Pre-calculate the max level for a TDP page with respect to MTRR cache
consistency in preparation of replacing force_pt_level with max_level,
and eventually combining the bulk of nonpaging_page_fault() and
tdp_page_fault() into a common helper.

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