Re: Virtio Xen (WAS: Re: [Linux] [ARM] Granting memory obtained from the DMA API)

2020-09-23 Thread Julien Grall
: [Linux] [ARM] Granting memory obtained from the DMA API) On 29/08/2020 11:38, Simon Leiner wrote: Hi Julien, Hi Simon, Apologies for the late answer. On 25.08.20 15:02, Julien Grall wrote: May I ask why did you create a new transport rather than using the existing one? We wanted a

RE: Virtio Xen (WAS: Re: [Linux] [ARM] Granting memory obtained from the DMA API)

2020-09-23 Thread Paul Durrant
Re: [Linux] [ARM] Granting memory obtained from > the DMA API) > > On 29/08/2020 11:38, Simon Leiner wrote: > > Hi Julien, > > Hi Simon, > > Apologies for the late answer. > > > On 25.08.20 15:02, Julien Grall wrote: > >> May I ask why did you create a ne

Re: Virtio Xen (WAS: Re: [Linux] [ARM] Granting memory obtained from the DMA API)

2020-09-23 Thread Julien Grall
On 29/08/2020 11:38, Simon Leiner wrote: Hi Julien, Hi Simon, Apologies for the late answer. On 25.08.20 15:02, Julien Grall wrote: May I ask why did you create a new transport rather than using the existing one? We wanted a mechanism for dynamically creating virtio devices at runtime. I

Re: Virtio Xen (WAS: Re: [Linux] [ARM] Granting memory obtained from the DMA API)

2020-08-29 Thread Simon Leiner
Hi Julien, On 25.08.20 15:02, Julien Grall wrote: > May I ask why did you create a new transport rather than using the > existing one? We wanted a mechanism for dynamically creating virtio devices at runtime. I looked at virtio-mmio briefly and it seemed to me that a lot of things would have to

Virtio Xen (WAS: Re: [Linux] [ARM] Granting memory obtained from the DMA API)

2020-08-25 Thread Julien Grall
On 20/08/2020 12:57, Simon Leiner wrote: Hi Julien, Hi Simon, On 20.08.20 13:17, Julien Grall wrote: There is a lot of interest to get Virtio working on Xen at the moment. Is this going to be a new transport layer for Virtio? It is designed that way, yes. The current implementation (b

Re: [Linux] [ARM] Granting memory obtained from the DMA API

2020-08-24 Thread Jürgen Groß
On 24.08.20 22:02, Stefano Stabellini wrote: On Fri, 21 Aug 2020, Simon Leiner wrote: On 20.08.20 20:35, Stefano Stabellini wrote: Thank for the well-written analysis of the problem. The following should work to translate the virtual address properly in xenbus_grant_ring: if (is_vmal

Re: [Linux] [ARM] Granting memory obtained from the DMA API

2020-08-24 Thread Stefano Stabellini
On Fri, 21 Aug 2020, Simon Leiner wrote: > On 20.08.20 20:35, Stefano Stabellini wrote: > > Thank for the well-written analysis of the problem. The following > should > > work to translate the virtual address properly in xenbus_grant_ring: > > > > if (is_vmalloc_addr(vaddr)) > > p

Re: [Linux] [ARM] Granting memory obtained from the DMA API

2020-08-21 Thread Simon Leiner
On 20.08.20 20:35, Stefano Stabellini wrote: > Thank for the well-written analysis of the problem. The following should > work to translate the virtual address properly in xenbus_grant_ring: > > if (is_vmalloc_addr(vaddr)) > page = vmalloc_to_page(vaddr); > else >

Re: [Linux] [ARM] Granting memory obtained from the DMA API

2020-08-20 Thread Stefano Stabellini
On Thu, 20 Aug 2020, Julien Grall wrote: > > Part of virtio is having shared memory. So naturally, I'm using Xen's > > grant system for that. Part of the Xenbus client API is the function > > xenbus_grant_ring which, by its documentation grants access to a block > > of memory starting at vaddr to a

Re: [Linux] [ARM] Granting memory obtained from the DMA API

2020-08-20 Thread Simon Leiner
Hi Julien, On 20.08.20 13:17, Julien Grall wrote: > There is a lot of interest to get Virtio working on Xen at the moment. > Is this going to be a new transport layer for Virtio? It is designed that way, yes. The current implementation (based on virtio_mmio.c) has a few limitations: - Only the

Re: [Linux] [ARM] Granting memory obtained from the DMA API

2020-08-20 Thread Julien Grall
On 19/08/2020 12:04, Simon Leiner wrote: Hi everyone, Hi Simon, I'm working on a virtio driver for the Linux kernel that supports the dynamic connection of devices via the Xenbus (as part of a research project at the Karlsruhe Institute of Technology). There is a lot of interest to get