VT-d: don't needlessly look up DID
authorJan Beulich <jbeulich@suse.com>
Thu, 7 Apr 2022 10:29:03 +0000 (12:29 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 7 Apr 2022 10:29:03 +0000 (12:29 +0200)
commit445ab9852d69d8957467f0036098ebec75fec092
treea4d4f4bf4917aa73fb7cdc6560da5d21ed56bee5
parent72919c762fccfc1467eec7edb0737b6d548b00a7
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>
xen/drivers/passthrough/vtd/iommu.c