diff options
author | Alex Williamson <[email protected]> | 2024-03-08 16:05:23 -0700 |
---|---|---|
committer | Alex Williamson <[email protected]> | 2024-03-11 13:08:52 -0600 |
commit | 810cd4bb53456d0503cc4e7934e063835152c1b7 (patch) | |
tree | 601d43a123dbd4de01fd0a1abe91ecf9df77b4ec /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | fe9a7082684eb059b925c535682e68c34d487d43 (diff) |
vfio/pci: Lock external INTx masking ops
Mask operations through config space changes to DisINTx may race INTx
configuration changes via ioctl. Create wrappers that add locking for
paths outside of the core interrupt code.
In particular, irq_type is updated holding igate, therefore testing
is_intx() requires holding igate. For example clearing DisINTx from
config space can otherwise race changes of the interrupt configuration.
This aligns interfaces which may trigger the INTx eventfd into two
camps, one side serialized by igate and the other only enabled while
INTx is configured. A subsequent patch introduces synchronization for
the latter flows.
Cc: <[email protected]>
Fixes: 89e1f7d4c66d ("vfio: Add PCI device driver")
Reported-by: Reinette Chatre <[email protected]>
Reviewed-by: Kevin Tian <[email protected]>
Reviewed-by: Reinette Chatre <[email protected]>
Reviewed-by: Eric Auger <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alex Williamson <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions