From: Marco Crivellari Date: Fri, 5 Sep 2025 09:11:39 +0000 (+0200) Subject: KVM: Explicitly allocate/setup irqfd cleanup as per-CPU workqueue X-Git-Tag: v6.19-rc1~103^2~11^2~1 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9259607ec7100118cc5c608d97c9d406501e861e;p=thirdparty%2Flinux.git KVM: Explicitly allocate/setup irqfd cleanup as per-CPU workqueue Explicitly request the use of per-CPU queues for the irqfd cleanup workqueue in preparation for changing the default behavior of alloc_workqueue() from per-CPU to unbound, which will in turn allow for the removal of WQ_UNBOUND. See commit 930c2ea566af ("workqueue: Add new WQ_PERCPU flag") for details. No functional change intended. Suggested-by: Tejun Heo Signed-off-by: Marco Crivellari Link: https://lore.kernel.org/r/20250905091139.110677-2-marco.crivellari@suse.com [sean: rewrite changelog to tailor it to the KVM] Signed-off-by: Sean Christopherson --- diff --git a/virt/kvm/eventfd.c b/virt/kvm/eventfd.c index a7794ffdb9761..0e8b5277be3bf 100644 --- a/virt/kvm/eventfd.c +++ b/virt/kvm/eventfd.c @@ -707,7 +707,7 @@ bool kvm_notify_irqfd_resampler(struct kvm *kvm, */ int kvm_irqfd_init(void) { - irqfd_cleanup_wq = alloc_workqueue("kvm-irqfd-cleanup", 0, 0); + irqfd_cleanup_wq = alloc_workqueue("kvm-irqfd-cleanup", WQ_PERCPU, 0); if (!irqfd_cleanup_wq) return -ENOMEM;