• Quan Xu's avatar
    IOMMU: add a timeout parameter for device IOTLB invalidation · dca07f30
    Quan Xu authored
    The parameter 'iommu_dev_iotlb_timeout' specifies the timeout
    of device IOTLB invalidation in milliseconds. By default, the
    timeout is 1000 milliseconds, which can be boot-time changed.
    We also confirmed with VT-d hardware team that 1 milliseconds
    is large enough for VT-d IOMMU internal invalidation.
    the existing panic() is eliminated and we bubble up the timeout
    of device IOTLB invalidation for further processing, as the
    PCI-e Address Translation Services (ATS) mandates a timeout of
    60 seconds for device IOTLB invalidation. Obviously we can't
    spin for 60 seconds or otherwise Xen hypervisor hangs.
    Signed-off-by: default avatarQuan Xu <quan.xu@intel.com>
    Acked-by: default avatarKevin Tian <kevin.tian@intel.com>
    Reviewed-by: default avatarJan Beulich <jbeulich@suse.com>
qinval.c 14.2 KB