intel-iommu: Only avoid flushing device IOTLB for domain ID 0 in caching mode
authorYu Zhao <yu.zhao@intel.com>
Mon, 29 Jun 2009 03:31:45 +0000 (11:31 +0800)
committerDavid Woodhouse <David.Woodhouse@intel.com>
Mon, 29 Jun 2009 11:34:11 +0000 (12:34 +0100)
commitbf92df30df909710c498d05620e2df1be1ef779b
tree9d1e330524fac88a95b6787e0b754e02e62df039
parenta679128d30d0303bbf5cac839c8f6f45793ea775
intel-iommu: Only avoid flushing device IOTLB for domain ID 0 in caching mode

In caching mode, domain ID 0 is reserved for non-present to present
mapping flush. Device IOTLB doesn't need to be flushed in this case.

Previously we were avoiding the flush for domain zero, even if the IOMMU
wasn't in caching mode and domain zero wasn't special.

Signed-off-by: Yu Zhao <yu.zhao@intel.com>
Signed-off-by: David Woodhouse <David.Woodhouse@intel.com>
drivers/pci/intel-iommu.c