OSDN Git Service

KVM: x86/mmu: Tweak auditing WARN for A/D bits to !PRESENT (was MMIO)
authorSean Christopherson <seanjc@google.com>
Thu, 25 Feb 2021 20:47:46 +0000 (12:47 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 15 Mar 2021 08:43:52 +0000 (04:43 -0400)
commit8f366ae6d8c5eaaae086016934802954abb8959e
tree03ea1c4e6de0a3d2ddf2bf377a124bb2e510c926
parentedea7c4fc215c7ee1cc98363b016ad505cbac9f7
KVM: x86/mmu: Tweak auditing WARN for A/D bits to !PRESENT (was MMIO)

Tweak the MMU_WARN that guards against weirdness when querying A/D status
to fire on a !MMU_PRESENT SPTE, as opposed to a MMIO SPTE.  Attempting to
query A/D status on any kind of !MMU_PRESENT SPTE, MMIO or otherwise,
indicates a KVM bug.  Case in point, several now-fixed bugs were
identified by enabling this new WARN.

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