]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Add shadow mask for effective host MTRR memtype
authorSean Christopherson <seanjc@google.com>
Fri, 15 Jul 2022 23:00:15 +0000 (23:00 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 28 Jul 2022 17:22:21 +0000 (13:22 -0400)
commit8dfb7ac2d15e37f3a239cc87f4931c0e11808b97
treedd4b07988900c60d8455c5c777c1e6e9124c182a
parent2b0044372f3fddc918657c2f762165ac0674ca1d
KVM: x86/mmu: Add shadow mask for effective host MTRR memtype

Add shadow_memtype_mask to capture that EPT needs a non-zero memtype mask
instead of relying on TDP being enabled, as NPT doesn't need a non-zero
mask.  This is a glorified nop as kvm_x86_ops.get_mt_mask() returns zero
for NPT anyways.

No functional change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20220715230016.3762909-4-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/spte.c
arch/x86/kvm/mmu/spte.h