]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5a4e82e3764e925699d9c14d0c81b74b5b3c38fa
tree42eb2da38e7b76cc1c78310dff96976aa78ed9e8
parent87221d1f3e23d74dd5fa8fe12f4ade0df63defc2
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