]> xenbits.xensource.com Git - xen.git/commit
vt-d: fix the IOMMU flush issue
authorQuan Xu <quan.xu@intel.com>
Wed, 22 Jun 2016 10:01:29 +0000 (12:01 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 22 Jun 2016 10:01:29 +0000 (12:01 +0200)
commit27bf95e8b9d1c87eb3bc3bdb39e7bec26eed4eb7
tree68e4285f53f0438fac9b14dac05224aa9b7c6c36
parentc3a52bc6316a8b6f9f320e4848061328c67d0ed2
vt-d: fix the IOMMU flush issue

The propagation value from IOMMU flush interfaces may be positive, which
indicates callers need to flush cache, not one of faliures.

when the propagation value is positive, this patch fixes this flush issue
as follows:
  - call iommu_flush_write_buffer() to flush cache.
  - return zero.

Signed-off-by: Quan Xu <quan.xu@intel.com>
Acked-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/drivers/passthrough/vtd/iommu.c