VT-d: centralize mapping of QI entries
authorJan Beulich <jbeulich@suse.com>
Thu, 24 Jun 2021 14:30:32 +0000 (16:30 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 24 Jun 2021 14:30:32 +0000 (16:30 +0200)
commita0eb19723d9a6006bf465f0af60e229206d39333
tree00f8c5796f4767431faca61ac3679c8fd7bdb0f8
parente7059776f9755b989a992d229c68c3d7778412be
VT-d: centralize mapping of QI entries

Introduce a helper function to reduce redundancy. Take the opportunity
to express the logic without using the somewhat odd QINVAL_ENTRY_ORDER.
Also take the opportunity to uniformly unmap after updating queue tail
and dropping the lock (like was done so far only by
queue_invalidate_context_sync()).

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