OSDN Git Service

xen: Set platform PCI device INTX affinity to CPU0
authorDavid Woodhouse <dwmw@amazon.co.uk>
Wed, 6 Jan 2021 15:39:55 +0000 (15:39 +0000)
committerJuergen Gross <jgross@suse.com>
Wed, 13 Jan 2021 15:12:03 +0000 (16:12 +0100)
commit8f4fd86aa5d6aa122619623910065d236592e37c
tree5e297925c38d026b2f6a35c863bbc2c6688959e9
parent3499ba8198cad47b731792e5e56b9ec2a78a83a2
xen: Set platform PCI device INTX affinity to CPU0

With INTX or GSI delivery, Xen uses the event channel structures of CPU0.

If the interrupt gets handled by Linux on a different CPU, then no events
are seen as pending. Rather than introducing locking to allow other CPUs
to process CPU0's events, just ensure that the PCI interrupts happens
only on CPU0.

Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Link: https://lore.kernel.org/r/20210106153958.584169-3-dwmw2@infradead.org
Signed-off-by: Juergen Gross <jgross@suse.com>
drivers/xen/platform-pci.c