mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-16 14:28:56 +00:00
hv: More changes to enable GPU passthru
Snoop control is not supported in the graphics VT-d engine and so should be disabled in the PTEs. Also enabled iommu for graphics in the dmar_drhd array. v2: removed disable iommu in handle_one_drhd and combined if cond. v3: minor code review changes v4: moved the snoop control change to ept.c to accomodate upstream changes Signed-off-by: Anitha Chrisanthus <anitha.chrisanthus@intel.com> Reviewed-by: Gong Zhipeng <zhipeng.gong@intel.com>
This commit is contained in:
committed by
Xie, nanlin
parent
9d4cc5c11d
commit
8d50d40ff8
@@ -270,13 +270,6 @@ 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;
|
||||
|
||||
|
Reference in New Issue
Block a user