]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: x86/mmu: Set shadow_accessed_mask for EPT even if A/D bits disabled
authorSean Christopherson <seanjc@google.com>
Fri, 11 Oct 2024 02:10:42 +0000 (19:10 -0700)
committerSean Christopherson <seanjc@google.com>
Wed, 30 Oct 2024 21:46:46 +0000 (14:46 -0700)
commit3835819fb1b37bc736ef78c83f1ef275bc9e6565
treeb6873a6f943c23994513acf0f7c0302e71b29150
parenta5da5dde4ba475512dffc3c118fcb2aba9233fa4
KVM: x86/mmu: Set shadow_accessed_mask for EPT even if A/D bits disabled

Now that KVM doesn't use shadow_accessed_mask to detect if hardware A/D
bits are enabled, set shadow_accessed_mask for EPT even when A/D bits
are disabled in hardware.  This will allow using shadow_accessed_mask for
software purposes, e.g. to preserve accessed status in a non-present SPTE
acros NUMA balancing, if something like that is ever desirable.

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