Skip to content

Commit

Permalink
interrupt: fix request notifier interrupt processing
Browse files Browse the repository at this point in the history
[ upstream commit aeed570 ]

We should call read() on RTE_INTR_HANDLE_VFIO_REQ event
to confirm that event.

Fixes: 0eb8a1c ("vfio: add request notifier interrupt")

Signed-off-by: Maciej Szwed <maciej.szwed@intel.com>
  • Loading branch information
Maciej-Szwed authored and cpaelzer committed Nov 30, 2021
1 parent 4c105c7 commit ced22e5
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions lib/librte_eal/linux/eal/eal_interrupts.c
Expand Up @@ -877,17 +877,14 @@ eal_intr_process_interrupts(struct epoll_event *events, int nfds)
bytes_read = sizeof(buf.timerfd_num);
break;
#ifdef VFIO_PRESENT
#ifdef HAVE_VFIO_DEV_REQ_INTERFACE
case RTE_INTR_HANDLE_VFIO_REQ:
#endif
case RTE_INTR_HANDLE_VFIO_MSIX:
case RTE_INTR_HANDLE_VFIO_MSI:
case RTE_INTR_HANDLE_VFIO_LEGACY:
bytes_read = sizeof(buf.vfio_intr_count);
break;
#ifdef HAVE_VFIO_DEV_REQ_INTERFACE
case RTE_INTR_HANDLE_VFIO_REQ:
bytes_read = 0;
call = true;
break;
#endif
#endif
case RTE_INTR_HANDLE_VDEV:
case RTE_INTR_HANDLE_EXT:
Expand Down

0 comments on commit ced22e5

Please sign in to comment.