diff options
author | Reinette Chatre <[email protected]> | 2023-05-11 08:44:28 -0700 |
---|---|---|
committer | Alex Williamson <[email protected]> | 2023-05-23 15:49:03 -0600 |
commit | a65f35cfd504e5135540939cffd4323083190b36 (patch) | |
tree | fe3903876a45ea2065bf28279e0422ae5bb5925f /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | 912b625b4dcf23f6c16a950227715c75ef027e7b (diff) |
vfio/pci: Consolidate irq cleanup on MSI/MSI-X disable
vfio_msi_disable() releases all previously allocated state
associated with each interrupt before disabling MSI/MSI-X.
vfio_msi_disable() iterates twice over the interrupt state:
first directly with a for loop to do virqfd cleanup, followed
by another for loop within vfio_msi_set_block() that removes
the interrupt handler and its associated state using
vfio_msi_set_vector_signal().
Simplify interrupt cleanup by iterating over allocated interrupts
once.
Signed-off-by: Reinette Chatre <[email protected]>
Reviewed-by: Kevin Tian <[email protected]>
Acked-by: Thomas Gleixner <[email protected]>
Reviewed-by: Jason Gunthorpe <[email protected]>
Link: https://lore.kernel.org/r/837acb8cbe86a258a50da05e56a1f17c1a19abbe.1683740667.git.reinette.chatre@intel.com
Signed-off-by: Alex Williamson <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions