Skip to content

Commit 9aef71c

Browse files
committed
KVM: Explicitly mark KVM_GUEST_MEMFD as depending on KVM_GENERIC_MMU_NOTIFIER
Add KVM_GENERIC_MMU_NOTIFIER as a dependency for selecting KVM_GUEST_MEMFD, as guest_memfd relies on kvm_mmu_invalidate_{begin,end}(), which are defined if and only if the generic mmu_notifier implementation is enabled. The missing dependency is currently benign as s390 is the only KVM arch that doesn't utilize the generic mmu_notifier infrastructure, and s390 doesn't currently support guest_memfd. Fixes: a7800aa ("KVM: Add KVM_CREATE_GUEST_MEMFD ioctl() for guest-specific backing memory") Reviewed-by: David Hildenbrand <david@redhat.com> Link: https://lore.kernel.org/r/20251003232606.4070510-5-seanjc@google.com Signed-off-by: Sean Christopherson <seanjc@google.com>
1 parent 5d3341d commit 9aef71c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

virt/kvm/Kconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ config KVM_GENERIC_MEMORY_ATTRIBUTES
113113
bool
114114

115115
config KVM_GUEST_MEMFD
116+
depends on KVM_GENERIC_MMU_NOTIFIER
116117
select XARRAY_MULTI
117118
bool
118119

0 commit comments

Comments
 (0)