]> xenbits.xensource.com Git - xen.git/commit
VT-d: don't lose errors when flushing TLBs on multiple IOMMUs
authorJan Beulich <jbeulich@suse.com>
Thu, 15 Jul 2021 07:43:11 +0000 (09:43 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 15 Jul 2021 07:43:11 +0000 (09:43 +0200)
commit3f3ebda3ccbea1e8a5663693247017015fc79b68
tree0f284e0f4168da60f3cccce745027ad30ff4edd6
parent7907ab8a4f63d7f1d20ede8c91125976496f4f92
VT-d: don't lose errors when flushing TLBs on multiple IOMMUs

While no longer an immediate problem with flushes no longer timing out,
errors (if any) get properly reported by iommu_flush_iotlb_{dsi,psi}().
Overwriting such an error with, perhaps, a success indicator received
from another IOMMU will misguide callers. Record the first error, but
don't bail from the loop (such that further necessary invalidation gets
carried out on a best effort basis).

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
master commit: e7059776f9755b989a992d229c68c3d7778412be
master date: 2021-06-24 16:30:06 +0200
xen/drivers/passthrough/vtd/iommu.c