]> xenbits.xensource.com Git - xen.git/commit
VT-d: use DMA_TLB_IVA_ADDR()
authorJan Beulich <jbeulich@suse.com>
Tue, 4 Jan 2022 09:18:18 +0000 (10:18 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 4 Jan 2022 09:18:18 +0000 (10:18 +0100)
commit635de3c928c63b5b5c6f31349856547c81c03c8e
treedd8a62accdce2897f37a02069da2da771a5f1ca7
parent7762b7a1ec63b5ef0d5eceb1725de2a50b33ab20
VT-d: use DMA_TLB_IVA_ADDR()

Let's use the macro in the one place it's supposed to be used, and in
favor of then unnecessary manipulations of the address in
iommu_flush_iotlb_psi(): All leaf functions then already deal correctly
with the supplied address.

There also has never been a need to require (i.e. assert for) the
passing in of 4k-aligned addresses - it'll always be the order-sized
range containing the address which gets flushed.

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