]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit40eacb7f4407cc70909d188b56b27a459e55e425
tree03ea1c4e6de0a3d2ddf2bf377a124bb2e510c926
parente4183d53c8a15f35738de962e10949b4afa1c8e1
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