Messages in this thread | | | From | "Tian, Kevin" <> | Subject | RE: [PATCH V4 01/11] vfio/pci: Consolidate irq cleanup on MSI/MSI-X disable | Date | Fri, 28 Apr 2023 06:28:36 +0000 |
| |
> From: Chatre, Reinette <reinette.chatre@intel.com> > Sent: Friday, April 28, 2023 1:36 AM > > 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 <reinette.chatre@intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
| |