From: Antonios Motakis Date: Mon, 16 Mar 2015 20:08:50 +0000 (-0600) Subject: vfio/platform: trigger an interrupt via eventfd X-Git-Tag: omap-for-v4.2/o2_dc~137^2~18 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=57f972e2b341dd6a73533f9293ec55d584a5d833;p=pandora-kernel.git 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 [Baptiste Reynal: fix masked interrupt initialization] Signed-off-by: Baptiste Reynal Reviewed-by: Eric Auger Tested-by: Eric Auger Signed-off-by: Alex Williamson --- Reading git-diff-tree failed