• Fred Gao's avatar
    vfio/pci: Bypass IGD init in case of -ENODEV · e4eccb85
    Fred Gao authored
    Bypass the IGD initialization when -ENODEV returns,
    that should be the case if opregion is not available for IGD
    or within discrete graphics device's option ROM,
    or host/lpc bridge is not found.
    
    Then use of -ENODEV here means no special device resources found
    which needs special care for VFIO, but we still allow other normal
    device resource access.
    
    Cc: Zhenyu Wang <zhenyuw@linux.intel.com>
    Cc: Xiong Zhang <xiong.y.zhang@intel.com>
    Cc: Hang Yuan <hang.yuan@linux.intel.com>
    Cc: Stuart Summers <stuart.summers@intel.com>
    Signed-off-by: default avatarFred Gao <fred.gao@intel.com>
    Signed-off-by: default avatarAlex Williamson <alex.williamson@redhat.com>
    e4eccb85
vfio_pci.c 60.8 KB