]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: Allow lockless walk of SPTEs when handing aging mmu_notifier event
authorJames Houghton <jthoughton@google.com>
Tue, 4 Feb 2025 00:40:29 +0000 (00:40 +0000)
committerSean Christopherson <seanjc@google.com>
Fri, 14 Feb 2025 15:16:35 +0000 (07:16 -0800)
commitaa34b811650ce87a82d1bff027eeb15e2856f7bb
tree726f5e1cfeac59a9b3c042e079a1709dc4f90ccd
parent374ccd63600bc98453e7ab33fd457b57f6faacbc
KVM: Allow lockless walk of SPTEs when handing aging mmu_notifier event

It is possible to correctly do aging without taking the KVM MMU lock,
or while taking it for read; add a Kconfig to let architectures do so.
Architectures that select KVM_MMU_LOCKLESS_AGING are responsible for
correctness.

Suggested-by: Yu Zhao <yuzhao@google.com>
Signed-off-by: James Houghton <jthoughton@google.com>
Reviewed-by: David Matlack <dmatlack@google.com>
Link: https://lore.kernel.org/r/20250204004038.1680123-3-jthoughton@google.com
[sean: massage shortlog+changelog, fix Kconfig goof and shorten name]
Signed-off-by: Sean Christopherson <seanjc@google.com>
include/linux/kvm_host.h
virt/kvm/Kconfig
virt/kvm/kvm_main.c