aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/xen
diff options
context:
space:
mode:
authorClaire Chang <tientzu@chromium.org>2021-03-18 17:14:22 +0100
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>2021-03-19 04:58:25 +0000
commit73f620951b2b594bdc38722c0d647c3b3312af7a (patch)
tree7b2ef5d861b29f300ee54abe48a4a31d0a559e6a /drivers/xen
parentxen-swiotlb: remove the unused size argument from xen_swiotlb_fixup (diff)
downloadlinux-dev-73f620951b2b594bdc38722c0d647c3b3312af7a.tar.xz
linux-dev-73f620951b2b594bdc38722c0d647c3b3312af7a.zip
swiotlb: move global variables into a new io_tlb_mem structure
Added a new struct, io_tlb_mem, as the IO TLB memory pool descriptor and moved relevant global variables into that struct. This will be useful later to allow for restricted DMA pool. Signed-off-by: Claire Chang <tientzu@chromium.org> [hch: rebased] Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Diffstat (limited to 'drivers/xen')
-rw-r--r--drivers/xen/swiotlb-xen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/xen/swiotlb-xen.c b/drivers/xen/swiotlb-xen.c
index 4ecfce2c6f72..5329ad54a5f3 100644
--- a/drivers/xen/swiotlb-xen.c
+++ b/drivers/xen/swiotlb-xen.c
@@ -548,7 +548,7 @@ xen_swiotlb_sync_sg_for_device(struct device *dev, struct scatterlist *sgl,
static int
xen_swiotlb_dma_supported(struct device *hwdev, u64 mask)
{
- return xen_phys_to_dma(hwdev, io_tlb_end - 1) <= mask;
+ return xen_phys_to_dma(hwdev, io_tlb_default_mem.end - 1) <= mask;
}
const struct dma_map_ops xen_swiotlb_dma_ops = {