KVM: x86/mmu: Plumb a @can_yield parameter into __walk_slot_rmaps()
authorSean Christopherson <seanjc@google.com>
Fri, 9 Aug 2024 19:43:23 +0000 (12:43 -0700)
committerSean Christopherson <seanjc@google.com>
Tue, 10 Sep 2024 03:22:02 +0000 (20:22 -0700)
commit5b1fb116e1a636701627a6eb202d17be93e8f7a8
tree0c9a1868172fb59ef9301ac89fd11b8b152e3c82
parent0a37fffda14538036f5402a29920285284fe5d5b
KVM: x86/mmu: Plumb a @can_yield parameter into __walk_slot_rmaps()

Add a @can_yield param to __walk_slot_rmaps() to control whether or not
dropping mmu_lock and conditionally rescheduling is allowed.  This will
allow using __walk_slot_rmaps() and thus cond_resched() to handle
mmu_notifier invalidations, which usually allow blocking/yielding, but not
when invoked by the OOM killer.

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