VT-d: skip IOMMU bitmap cleanup for phantom devices
authorJan Beulich <jbeulich@suse.com>
Thu, 16 Sep 2021 09:02:48 +0000 (11:02 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 16 Sep 2021 09:02:48 +0000 (11:02 +0200)
commit9d92140d0255e14d8c3eaba7edc931327eb96fd0
treeddd014ec8609a12b4dfd8e4286638edc74927293
parent418b4d57416428c5bb5a3e796214367cbdcd9423
VT-d: skip IOMMU bitmap cleanup for phantom devices

Doing the cleanup also for phantom devices is at best redundant with
doing it for the corresponding real device. I couldn't force myself into
checking all the code paths whether it really is: It seems better to
explicitly skip this step in such cases.

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