]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: x86/mmu: Don't install bogus MMIO SPTEs if MMIO caching is disabled
authorSean Christopherson <seanjc@google.com>
Thu, 25 Feb 2021 20:47:31 +0000 (12:47 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 15 Mar 2021 08:43:38 +0000 (04:43 -0400)
commit49056e0d55da3ea53115253345b0080f4ba3930c
treeab6391f192e84706130b80087d86f357a4a88397
parentc0eca47c6f5884d8a9c8b13a253151c1126073d7
KVM: x86/mmu: Don't install bogus MMIO SPTEs if MMIO caching is disabled

If MMIO caching is disabled, e.g. when using shadow paging on CPUs with
52 bits of PA space, go straight to MMIO emulation and don't install an
MMIO SPTE.  The SPTE will just generate a !PRESENT #PF, i.e. can't
actually accelerate future MMIO.

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