hv: More changes to enable GPU passthru

Allow the IOMMU for GPU PCI device.

Signed-off-by: Anitha Chrisanthus <anitha.chrisanthus@intel.com>
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Signed-off-by: Junming Liu <junming.liu@intel.com>

Tracked-On: #4360
This commit is contained in:
Junming Liu 2019-11-14 22:48:01 +00:00 committed by wenlingz
parent 9dd6ef600d
commit e13c6dec92

View File

@ -204,12 +204,14 @@ handle_one_drhd(struct acpi_dmar_hardware_unit *acpi_drhd,
consumed = handle_dmar_devscope(dev_scope, cp, remaining);
/*
if (((drhd->segment << 16U) |
(dev_scope->bus << 8U) |
dev_scope->devfun) == CONFIG_GPU_SBDF) {
ASSERT(dev_count == 1, "no dedicated iommu for gpu");
drhd->ignore = true;
}
*/
if (consumed <= 0)
break;