]> xenbits.xensource.com Git - xen.git/commit
VT-d: don't needlessly look up DID
authorJan Beulich <jbeulich@suse.com>
Fri, 8 Apr 2022 13:24:23 +0000 (15:24 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 8 Apr 2022 13:24:23 +0000 (15:24 +0200)
commit92e4beecd36e92d7a628738aa35a31e6781bb4cd
treed6f499016fb1b0ffed4b0f530ff514a259ca304e
parentc633ec9451e76015c409bd5119ffcb0f2e61fe8b
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