VT-d: consider hidden devices when unmapping
authorJan Beulich <jbeulich@suse.com>
Fri, 15 Oct 2021 09:17:32 +0000 (11:17 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 15 Oct 2021 09:17:32 +0000 (11:17 +0200)
commitd8c60e68fb699bb0aa56f511367bc7f733353813
treee132e3c08411c1bcd8afd6fdb69c55d4ac54f2bd
parentb4926b6c40bb635788a4987c8176c94826d193bd
VT-d: consider hidden devices when unmapping

Whether to clear an IOMMU's bit in the domain's bitmap should depend on
all devices the domain can control. For the hardware domain this
includes hidden devices, which are associated with DomXEN.

While touching related logic
- convert the "current device" exclusion check to a simple pointer
  comparison,
- convert "found" to "bool",
- adjust style and correct a typo in an existing comment.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
master commit: 75bfe6ec4844f83b300b9807bceaed1e2fe23270
master date: 2021-09-20 10:24:27 +0200
xen/drivers/passthrough/vtd/iommu.c