• Eli Cohen's avatar
    vdpa/mlx5: Support interrupt bypassing · bc9a2b3e
    Eli Cohen authored
    Add support for generation of interrupts from the device directly to the
    VM to the VCPU thus avoiding the overhead on the host CPU.
    
    When supported, the driver will attempt to allocate vectors for each
    data virtqueue. If a vector for a virtqueue cannot be provided it will
    use the QP mode where notifications go through the driver.
    
    In addition, we add a shutdown callback to make sure allocated
    interrupts are released in case of shutdown to allow clean shutdown.
    Signed-off-by: default avatarEli Cohen <elic@nvidia.com>
    Signed-off-by: default avatarSaeed Mahameed <saeedm@nvidia.com>
    Message-Id: <20230607190007.290505-1-dtatulea@nvidia.com>
    Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
    bc9a2b3e
mlx5_vnet.c 94.3 KB