VT-d: drop ownership checking from domain_context_mapping_one()
authorJan Beulich <jbeulich@suse.com>
Tue, 5 Apr 2022 12:17:21 +0000 (14:17 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 5 Apr 2022 12:17:21 +0000 (14:17 +0200)
commita680b8134b2d1828bbbf443a97feea66e8a85c75
tree5770df5450c03a0ba3fcb85a5685b1a90821abbb
parenteba09b9dd78f9e8cbaa78ef0edb301b32def2c7a
VT-d: drop ownership checking from domain_context_mapping_one()

Despite putting in quite a bit of effort it was not possible to
establish why exactly this code exists (beyond possibly sanity
checking). Instead of a subsequent change further complicating this
logic, simply get rid of it.

Take the opportunity and move the respective unmap_vtd_domain_page() out
of the locked region.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Paul Durrant <paul@xen.org>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
xen/drivers/passthrough/vtd/iommu.c