KVM: x86/mmu: Zap SPTEs when CR0.CD is toggled iff guest MTRRs are honored
authorYan Zhao <yan.y.zhao@intel.com>
Fri, 14 Jul 2023 06:51:22 +0000 (14:51 +0800)
committerSean Christopherson <seanjc@google.com>
Mon, 9 Oct 2023 21:35:13 +0000 (14:35 -0700)
commit7a18c7c2b69a2e47e95e2a381f9b01b9aae36747
tree4fdf316b059b6df0f887730711fca690bbfd0f88
parent1affe455d66de4e1743514afdeb99cb598a25aa2
KVM: x86/mmu: Zap SPTEs when CR0.CD is toggled iff guest MTRRs are honored

Zap SPTEs when CR0.CD is toggled if and only if KVM's MMU is honoring
guest MTRRs, which is the only time that KVM incorporates the guest's
CR0.CD into the final memtype.

Suggested-by: Chao Gao <chao.gao@intel.com>
Signed-off-by: Yan Zhao <yan.y.zhao@intel.com>
Link: https://lore.kernel.org/r/20230714065122.20315-1-yan.y.zhao@intel.com
[sean: rephrase shortlog]
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/x86.c