VT-d: drop ownership checking from domain_context_mapping_one()
authorJan Beulich <jbeulich@suse.com>
Tue, 5 Apr 2022 12:46:03 +0000 (14:46 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 5 Apr 2022 12:46:03 +0000 (14:46 +0200)
commit840920147f5a32bf329bfcfb4f205154cf43964f
tree2c18de80ad67024a90b7c3dc9ffe2294906ea32a
parente0bd36c36ae1088b6687da7351a035b6d9a02940
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>
master commit: a680b8134b2d1828bbbf443a97feea66e8a85c75
master date: 2022-04-05 14:17:21 +0200
xen/drivers/passthrough/vtd/iommu.c