diff options
author | Antonios Motakis <a.motakis@virtualopensystems.com> | 2015-03-16 23:08:50 +0300 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2015-03-16 23:08:50 +0300 |
commit | 57f972e2b341dd6a73533f9293ec55d584a5d833 (patch) | |
tree | a9ff1aa6e1770af3f07e16f84de211015d68790b /drivers/vfio/platform/vfio_platform_private.h | |
parent | 9a36321c8d3350c4f7befa02adf3ce4583287ad9 (diff) | |
download | linux-57f972e2b341dd6a73533f9293ec55d584a5d833.tar.xz |
vfio/platform: trigger an interrupt via eventfd
This patch allows to set an eventfd for a platform device's interrupt,
and also to trigger the interrupt eventfd from userspace for testing.
Level sensitive interrupts are marked as maskable and are handled in
a later patch. Edge triggered interrupts are not advertised as maskable
and are implemented here using a simple and efficient IRQ handler.
Signed-off-by: Antonios Motakis <a.motakis@virtualopensystems.com>
[Baptiste Reynal: fix masked interrupt initialization]
Signed-off-by: Baptiste Reynal <b.reynal@virtualopensystems.com>
Reviewed-by: Eric Auger <eric.auger@linaro.org>
Tested-by: Eric Auger <eric.auger@linaro.org>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'drivers/vfio/platform/vfio_platform_private.h')
-rw-r--r-- | drivers/vfio/platform/vfio_platform_private.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/vfio/platform/vfio_platform_private.h b/drivers/vfio/platform/vfio_platform_private.h index b119a6c5ac23..aa01cc36af53 100644 --- a/drivers/vfio/platform/vfio_platform_private.h +++ b/drivers/vfio/platform/vfio_platform_private.h @@ -31,6 +31,8 @@ struct vfio_platform_irq { u32 flags; u32 count; int hwirq; + char *name; + struct eventfd_ctx *trigger; }; struct vfio_platform_region { |