KVM: x86/mmu: Disable MMIO caching if MMIO value collides with L1TF
authorSean Christopherson <seanjc@google.com>
Thu, 25 Feb 2021 20:47:29 +0000 (12:47 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 15 Mar 2021 08:43:36 +0000 (04:43 -0400)
commit44aaa0150bfd576dc5043094fd1a23699cf280e8
tree42eb2da38e7b76cc1c78310dff96976aa78ed9e8
parentec89e643867148ab4a2a856a38717d2e89692be7
KVM: x86/mmu: Disable MMIO caching if MMIO value collides with L1TF

Disable MMIO caching if the MMIO value collides with the L1TF mitigation
that usurps high PFN bits.  In practice this should never happen as only
CPUs with SME support can generate such a collision (because the MMIO
value can theoretically get adjusted into legal memory), and no CPUs
exist that support SME and are susceptible to L1TF.  But, closing the
hole is trivial.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210225204749.1512652-5-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/mmu/spte.c