]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
KVM: x86/mmu: Always update A/D-disabled SPTEs atomically
authorSean Christopherson <seanjc@google.com>
Wed, 12 Feb 2025 20:58:39 +0000 (12:58 -0800)
committerSean Christopherson <seanjc@google.com>
Fri, 14 Feb 2025 15:16:51 +0000 (07:16 -0800)
commit928c54b1c4caf981afbf060a1417d4255f758513
tree66348b0aa5ab06e7d7b274df756ac269aa726b47
parent61d65f2dc766c70673d45a4b787f49317384642c
KVM: x86/mmu: Always update A/D-disabled SPTEs atomically

In anticipation of aging SPTEs outside of mmu_lock, force A/D-disabled
SPTEs to be updated atomically, as aging A/D-disabled SPTEs will mark them
for access-tracking outside of mmu_lock.  Coupled with restoring access-
tracked SPTEs in the fast page fault handler, the end result is that
A/D-disable SPTEs will be volatile at all times.

Reviewed-by: James Houghton <jthoughton@google.com>
Link: https://lore.kernel.org/all/Z60bhK96JnKIgqZQ@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/mmu/spte.c