• Yishai Hadas's avatar
    vfio: Introduce the DMA logging feature support · 80c4b92a
    Yishai Hadas authored
    Introduce the DMA logging feature support in the vfio core layer.
    
    It includes the processing of the device start/stop/report DMA logging
    UAPIs and calling the relevant driver 'op' to do the work.
    
    Specifically,
    Upon start, the core translates the given input ranges into an interval
    tree, checks for unexpected overlapping, non aligned ranges and then
    pass the translated input to the driver for start tracking the given
    ranges.
    
    Upon report, the core translates the given input user space bitmap and
    page size into an IOVA kernel bitmap iterator. Then it iterates it and
    call the driver to set the corresponding bits for the dirtied pages in a
    specific IOVA range.
    
    Upon stop, the driver is called to stop the previous started tracking.
    
    The next patches from the series will introduce the mlx5 driver
    implementation for the logging ops.
    Signed-off-by: default avatarYishai Hadas <yishaih@nvidia.com>
    Link: https://lore.kernel.org/r/20220908183448.195262-6-yishaih@nvidia.comSigned-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
    80c4b92a
Kconfig 1.47 KB