]> 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)
commitc6eb3ac41d439eb59d39bfa8416fd2697eed5cee
tree0e5d853ff3ad6ee85d80e3272b8ad2ad143e1a71
parentef039e4f924dad57ccb87847efd56258107baad5
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