-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
vfio/device: add vfio_disable_irq_from_start
To disable (de-assign) one or more IRQs from vfio-pci kernel driver, irq_set data -1 should be passed to irq_set->data. uapi <linux/vfio.h> says that value -1 with DATA_EVENTFD|ACTION_TRIGGER) will de-assign interrupts if already assigned. This patch fixes de-assign behavior by replacing DATA_NONE to DATA_EVENTFD with data -1 along with adding a new API to disable specific interrupts with start and count. Signed-off-by: Minwoo Im <[email protected]>
- Loading branch information
Showing
2 changed files
with
43 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters