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>
This commit is contained in:
Anitha Chrisanthus 2019-06-05 16:56:45 +08:00 committed by Zhao Yakui
parent dcf8704af2
commit 4752ce0a1e

View File

@ -253,12 +253,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;