Revert "hv: More changes to enable GPU passthru"

This reverts commit 8d50d40ff8.
This commit is contained in:
Jason Chen CJ
2018-07-05 09:04:08 +08:00
committed by lijinxia
parent cfb2828585
commit 6ca99713dd
6 changed files with 12 additions and 11 deletions

View File

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