]> www.infradead.org Git - users/dwmw2/linux.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>
Fri, 26 Feb 2021 13:36:17 +0000 (08:36 -0500)
commitcf5f3d306ec153b9920b205489ac7e6ab665ab4d
treedb97436403bfa3342245d4243ad5da79c6561ad5
parentb250808db51f3addfcc889616e25f6c0843962a1
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