[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH RFC v1 5/6] xen-swiotlb: convert variables to arrays
- To: Dongli Zhang <dongli.zhang@xxxxxxxxxx>
- From: Christoph Hellwig <hch@xxxxxx>
- Date: Thu, 4 Feb 2021 09:40:23 +0100
- Cc: dri-devel@xxxxxxxxxxxxxxxxxxxxx, intel-gfx@xxxxxxxxxxxxxxxxxxxxx, iommu@xxxxxxxxxxxxxxxxxxxxxxxxxx, linux-mips@xxxxxxxxxxxxxxx, linux-mmc@xxxxxxxxxxxxxxx, linux-pci@xxxxxxxxxxxxxxx, linuxppc-dev@xxxxxxxxxxxxxxxx, nouveau@xxxxxxxxxxxxxxxxxxxxx, x86@xxxxxxxxxx, xen-devel@xxxxxxxxxxxxxxxxxxxx, linux-kernel@xxxxxxxxxxxxxxx, adrian.hunter@xxxxxxxxx, akpm@xxxxxxxxxxxxxxxxxxxx, benh@xxxxxxxxxxxxxxxxxxx, bskeggs@xxxxxxxxxx, bhelgaas@xxxxxxxxxx, bp@xxxxxxxxx, boris.ostrovsky@xxxxxxxxxx, hch@xxxxxx, chris@xxxxxxxxxxxxxxxxxx, daniel@xxxxxxxx, airlied@xxxxxxxx, hpa@xxxxxxxxx, mingo@xxxxxxxxxx, mingo@xxxxxxxxxx, jani.nikula@xxxxxxxxxxxxxxx, joonas.lahtinen@xxxxxxxxxxxxxxx, jgross@xxxxxxxx, konrad.wilk@xxxxxxxxxx, m.szyprowski@xxxxxxxxxxx, matthew.auld@xxxxxxxxx, mpe@xxxxxxxxxxxxxx, rppt@xxxxxxxxxx, paulus@xxxxxxxxx, peterz@xxxxxxxxxxxxx, robin.murphy@xxxxxxx, rodrigo.vivi@xxxxxxxxx, sstabellini@xxxxxxxxxx, bauerman@xxxxxxxxxxxxx, tsbogend@xxxxxxxxxxxxxxxx, tglx@xxxxxxxxxxxxx, ulf.hansson@xxxxxxxxxx, joe.jin@xxxxxxxxxx, thomas.lendacky@xxxxxxx
- Delivery-date: Thu, 04 Feb 2021 08:40:37 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
So one thing that has been on my mind for a while: I'd really like
to kill the separate dma ops in Xen swiotlb. If we compare xen-swiotlb
to swiotlb the main difference seems to be:
- additional reasons to bounce I/O vs the plain DMA capable
- the possibility to do a hypercall on arm/arm64
- an extra translation layer before doing the phys_to_dma and vice
versa
- an special memory allocator
I wonder if inbetween a few jump labels or other no overhead enablement
options and possibly better use of the dma_range_map we could kill
off most of swiotlb-xen instead of maintaining all this code duplication?
|