]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: x86/mmu: Add a dedicated flag to track if A/D bits are globally enabled
authorSean Christopherson <seanjc@google.com>
Fri, 11 Oct 2024 02:10:41 +0000 (19:10 -0700)
committerSean Christopherson <seanjc@google.com>
Wed, 30 Oct 2024 21:46:46 +0000 (14:46 -0700)
commita5da5dde4ba475512dffc3c118fcb2aba9233fa4
tree0a7d0b71a29004084e1845e04980f643d45c77d6
parent1a175082b190190d9d05a0a5927b72cbb657fd1d
KVM: x86/mmu: Add a dedicated flag to track if A/D bits are globally enabled

Add a dedicated flag to track if KVM has enabled A/D bits at the module
level, instead of inferring the state based on whether or not the MMU's
shadow_accessed_mask is non-zero.  This will allow defining and using
shadow_accessed_mask even when A/D bits aren't used by hardware.

Link: https://lore.kernel.org/r/20241011021051.1557902-10-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/mmu/mmu.c
arch/x86/kvm/mmu/spte.c
arch/x86/kvm/mmu/spte.h
arch/x86/kvm/mmu/tdp_mmu.c