-
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: support enable/disable specific irq
This patch added 'start' parameter to 'vfio_set_irq' API to specify start IRQ number to configure to vfio-pci kernel driver. This patch also converted previous 'vfio_disable_irq' to 'vfio_disable_irq_all' to disable all enabled irqs. 'vfio_disable_irq' has been updated to disable specific irqs from the given 'start' parameter. 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 also fixed 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
4 changed files
with
50 additions
and
12 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
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