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 | 06211b40ce6b63903fe03831fd075a25630dc856 (patch) | |
tree | e2b486e429ab95e7813d052ad321933057282880 /drivers/vfio/platform/vfio_platform_private.h | |
parent | 57f972e2b341dd6a73533f9293ec55d584a5d833 (diff) | |
download | linux-06211b40ce6b63903fe03831fd075a25630dc856.tar.xz |
vfio/platform: support for level sensitive interrupts
Level sensitive interrupts are exposed as maskable and automasked
interrupts and are masked and disabled automatically when they fire.
Signed-off-by: Antonios Motakis <a.motakis@virtualopensystems.com>
[Baptiste Reynal: Move masked interrupt initialization from "vfio/platform:
trigger an interrupt via eventfd"]
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 aa01cc36af53..ff2db1d20a26 100644 --- a/drivers/vfio/platform/vfio_platform_private.h +++ b/drivers/vfio/platform/vfio_platform_private.h @@ -33,6 +33,8 @@ struct vfio_platform_irq { int hwirq; char *name; struct eventfd_ctx *trigger; + bool masked; + spinlock_t lock; }; struct vfio_platform_region { |