VT-d: defer "no DRHD" check when (un)mapping devices
authorJan Beulich <jbeulich@suse.com>
Thu, 16 Sep 2021 09:02:08 +0000 (11:02 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 16 Sep 2021 09:02:08 +0000 (11:02 +0200)
commit418b4d57416428c5bb5a3e796214367cbdcd9423
tree4d4ebdd852737e082952a5925ac963cd63c3a7d9
parent737190abb174422b3a49c9ef2de7cd5bfb1bc991
VT-d: defer "no DRHD" check when (un)mapping devices

If devices are to be skipped anyway (which is the case in particular for
host bridges), there's no point complaining about a missing DRHD (and
hence a missing association with an IOMMU).

While there convert assignments to initializers and constify "drhd"
local variables.

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