From 4752ce0a1e49eb71252509306d9b05627255acd6 Mon Sep 17 00:00:00 2001 From: Anitha Chrisanthus Date: Wed, 5 Jun 2019 16:56:45 +0800 Subject: [PATCH] hv: More changes to enable GPU passthru Allow the IOMMU for GPU PCI device. Signed-off-by: Anitha Chrisanthus Signed-off-by: Zhao Yakui --- hypervisor/acpi_parser/dmar_parse.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hypervisor/acpi_parser/dmar_parse.c b/hypervisor/acpi_parser/dmar_parse.c index d84e5e249..50457b2fd 100644 --- a/hypervisor/acpi_parser/dmar_parse.c +++ b/hypervisor/acpi_parser/dmar_parse.c @@ -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;