Skip to content
  • Alex Williamson's avatar
    vfio/type1: Add conditional rescheduling · c5e66887
    Alex Williamson authored
    
    
    IOMMU operations can be expensive and it's not very difficult for a
    user to give us a lot of work to do for a map or unmap operation.
    Killing a large VM will vfio assigned devices can result in soft
    lockups and IOMMU tracing shows that we can easily spend 80% of our
    time with need-resched set.  A sprinkling of conf_resched() calls
    after map and unmap calls has a very tiny affect on performance
    while resulting in traces with <1% of calls overflowing into needs-
    resched.
    
    Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
    c5e66887