• Diana Craciun's avatar
    vfio/fsl-mc: trigger an interrupt via eventfd · cc0ee20b
    Diana Craciun authored
    This patch allows to set an eventfd for fsl-mc device interrupts
    and also to trigger the interrupt eventfd from userspace for testing.
    
    All fsl-mc device interrupts are MSIs. The MSIs are allocated from
    the MSI domain only once per DPRC and used by all the DPAA2 objects.
    The interrupts are managed by the DPRC in a pool of interrupts. Each
    device requests interrupts from this pool. The pool is allocated
    when the first virtual device is setting the interrupts.
    The pool of interrupts is protected by a lock.
    
    The DPRC has an interrupt of its own which indicates if the DPRC
    contents have changed. However, currently, the contents of a DPRC
    assigned to the guest cannot be changed at runtime, so this interrupt
    is not configured.
    Signed-off-by: default avatarBharat Bhushan <Bharat.Bhushan@nxp.com>
    Signed-off-by: default avatarDiana Craciun <diana.craciun@oss.nxp.com>
    Reviewed-by: default avatarEric Auger <eric.auger@redhat.com>
    Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
    cc0ee20b
vfio_fsl_mc_private.h 1.3 KB