|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] PV drivers and zero copying
Hi, On 01/08/17 20:07, Stefano Stabellini wrote: On Tue, 1 Aug 2017, Oleksandr Andrushchenko wrote:Hi, Stefano! On 07/31/2017 11:28 PM, Stefano Stabellini wrote:On Mon, 31 Jul 2017, Oleksandr Andrushchenko wrote:3 Sharing with page exchange (XENMEM_exchange) ============================================== This API was pointed to me by Stefano Stabellini as one of the possible ways to achieve zero copying and share physically contiguous buffers. It is used by x86 SWIOTLB code (xen_create_contiguous_region, [5]), but as per my understanding this API cannot be used on ARM as of now [6]. Conclusion: not an option for ARM at the momentLet me elaborate on this. The purpose of XENMEM_exchange is to exchange a number of memory pages with an equal number of contiguous memory pages, possibly even under 4G. The original purpose of the hypercall was to get DMA-able memory.this is good to knowSo far, it has only been used by Dom0 on x86. Dom0 on ARM doesn't need it because it is mapped 1:1 by default and device assignment is not allowed without an IOMMU. However it should work on ARM too, as the implementation is all common code in Xen. I looked at the series and AFAICT Jan was pushing towards M2P.I've already made my arguments in another thread (see [1]) why I don't think M2P is a solution for ARM. I really want to kill the use of M2P on ARM because I think this using too much memory for the benefits it brings. I don't have much time to investigate more on XENMEM_exchange, so I would be grateful if someone pick up that task. Cheers,[1] https://lists.xenproject.org/archives/html/xen-devel/2017-05/msg01370.html -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx https://lists.xen.org/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |