Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

genirq/chip: Invoke add_interrupt_randomness() in handle_percpu_devid_irq()

handle_percpu_devid_irq() is a version of handle_percpu_irq() but with the
addition of a pointer to a per-CPU devid.

However, handle_percpu_irq() invokes add_interrupt_randomness(), while
handle_percpu_devid_irq() currently does not.

Add the missing add_interrupt_randomness(), as it is needed when per-CPU
interrupts with devid's are used in VMs for interrupts from the hypervisor.

Signed-off-by: Michael Kelley <mhklinux@outlook.com>
Signed-off-by: Thomas Gleixner <tglx@kernel.org>
Link: https://patch.msgid.link/20260402202400.1707-2-mhklkml@zohomail.com

authored by

Michael Kelley and committed by
Thomas Gleixner
fd7400cf 34d85ad4

+3
+3
kernel/irq/chip.c
··· 14 14 #include <linux/interrupt.h> 15 15 #include <linux/kernel_stat.h> 16 16 #include <linux/irqdomain.h> 17 + #include <linux/random.h> 17 18 18 19 #include <trace/events/irq.h> 19 20 ··· 929 928 pr_err_once("Spurious%s percpu IRQ%u on CPU%u\n", 930 929 enabled ? " and unmasked" : "", irq, cpu); 931 930 } 931 + 932 + add_interrupt_randomness(irq); 932 933 933 934 if (chip->irq_eoi) 934 935 chip->irq_eoi(&desc->irq_data);