VT-d: shorten vtd_flush_{context,iotlb}_reg()
authorJan Beulich <jbeulich@suse.com>
Tue, 4 Jan 2022 09:19:32 +0000 (10:19 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 4 Jan 2022 09:19:32 +0000 (10:19 +0100)
commit7cd0a787bba5b9c0073cceb1884064393ab719b9
tree24a773503b12787e2b86c4192703a4f87d0571a5
parent635de3c928c63b5b5c6f31349856547c81c03c8e
VT-d: shorten vtd_flush_{context,iotlb}_reg()

Their calculations of the value to write to the respective command
register can be partly folded, resulting in almost 100 bytes less code
for these two relatively short functions.

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