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

@@ -489,7 +489,7 @@ int ept_mmap(struct vm *vm, uint64_t hpa,
* to force snooping of PCIe devices if the page
* is cachable
*/
if ((prot & IA32E_EPT_MT_MASK) != IA32E_EPT_UNCACHED && iommu_snoop)
if ((prot & IA32E_EPT_MT_MASK) != IA32E_EPT_UNCACHED)
prot |= IA32E_EPT_SNOOP_CTRL;
map_mem(&map_params, (void *)hpa,
(void *)gpa, size, prot);