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)
commitcb9b88c669396e3e5f957fe909ff901b51321013
tree0e5d853ff3ad6ee85d80e3272b8ad2ad143e1a71
parent9f1a8526fbe3e82afae565fd008f2ca2035662e8
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