VT-d: don't needlessly look up DID
authorJan Beulich <jbeulich@suse.com>
Fri, 8 Apr 2022 12:55:55 +0000 (14:55 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 8 Apr 2022 12:55:55 +0000 (14:55 +0200)
commitab6f4a11629bd06b860c036f8ec604f7cd9fba68
tree5acbd53f79823ba858a5d5b388cefc36cabe2349
parent2c026fe1f159494b3ec05f19ddfb3d39ff901296
VT-d: don't needlessly look up DID

If get_iommu_domid() in domain_context_unmap_one() fails, we better
wouldn't clear the context entry in the first place, as we're then unable
to issue the corresponding flush. However, we have no need to look up the
DID in the first place: What needs flushing is very specifically the DID
that was in the context entry before our clearing of it.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
master commit: 445ab9852d69d8957467f0036098ebec75fec092
master date: 2022-04-07 12:29:03 +0200
xen/drivers/passthrough/vtd/iommu.c