OSDN Git Service

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)
commit30ab5901da57f16b919edfc4c5f8edf9311ba9c3
treeab6391f192e84706130b80087d86f357a4a88397
parente0c378684b6545ad2d4403bb701d0ac4932b4e95
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