Re: [Xen-devel] PV drivers and zero copying

2017-08-02 Thread Julien Grall
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) ==

Re: [Xen-devel] PV drivers and zero copying

2017-08-01 Thread Stefano Stabellini
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) > > > == > > > > > > Thi

Re: [Xen-devel] PV drivers and zero copying

2017-08-01 Thread Oleksandr Andrushchenko
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 achie

Re: [Xen-devel] PV drivers and zero copying

2017-07-31 Thread Stefano Stabellini
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

Re: [Xen-devel] PV drivers and zero copying

2017-07-31 Thread Oleksandr Andrushchenko
On 07/31/2017 02:58 PM, Joao Martins wrote: On 07/31/2017 12:41 PM, Oleksandr Andrushchenko wrote: Hi, Joao! On 07/31/2017 02:03 PM, Joao Martins wrote: Hey Oleksandr, On 07/31/2017 09:34 AM, Oleksandr Andrushchenko wrote: Hi, all! [snip] Comparison for display use-case ==

Re: [Xen-devel] PV drivers and zero copying

2017-07-31 Thread Joao Martins
On 07/31/2017 12:41 PM, Oleksandr Andrushchenko wrote: > Hi, Joao! > > On 07/31/2017 02:03 PM, Joao Martins wrote: >> Hey Oleksandr, >> >> On 07/31/2017 09:34 AM, Oleksandr Andrushchenko wrote: >>> Hi, all! >>> >> [snip] >>> Comparison for display use-case >>> === >>> >

Re: [Xen-devel] PV drivers and zero copying

2017-07-31 Thread Oleksandr Andrushchenko
Hi, Joao! On 07/31/2017 02:03 PM, Joao Martins wrote: Hey Oleksandr, On 07/31/2017 09:34 AM, Oleksandr Andrushchenko wrote: Hi, all! [snip] Comparison for display use-case === 1 Number of grant references used 1-1 grant references: nr_pages 1-2 GNTTABOP_transfer

Re: [Xen-devel] PV drivers and zero copying

2017-07-31 Thread Joao Martins
On 07/31/2017 11:37 AM, Oleksandr Andrushchenko wrote: > On 07/31/2017 01:04 PM, Julien Grall wrote: >> On 31/07/17 10:52, Oleksandr Andrushchenko wrote: >>> On 07/31/2017 12:47 PM, Julien Grall wrote: On 31/07/17 10:46, Oleksandr Andrushchenko wrote: Do you have any example of hardware?

Re: [Xen-devel] PV drivers and zero copying

2017-07-31 Thread Joao Martins
Hey Oleksandr, On 07/31/2017 09:34 AM, Oleksandr Andrushchenko wrote: > Hi, all! > [snip] > > Comparison for display use-case > === > > 1 Number of grant references used > 1-1 grant references: nr_pages > 1-2 GNTTABOP_transfer: nr_pages > 1-3 XENMEM_exchange: not an

Re: [Xen-devel] PV drivers and zero copying

2017-07-31 Thread Oleksandr Andrushchenko
On 07/31/2017 01:04 PM, Julien Grall wrote: On 31/07/17 10:52, Oleksandr Andrushchenko wrote: On 07/31/2017 12:47 PM, Julien Grall wrote: On 31/07/17 10:46, Oleksandr Andrushchenko wrote: Do you have any example of hardware? What are the performance you require with them? Currently our ta

Re: [Xen-devel] PV drivers and zero copying

2017-07-31 Thread Julien Grall
On 31/07/17 10:52, Oleksandr Andrushchenko wrote: On 07/31/2017 12:47 PM, Julien Grall wrote: On 31/07/17 10:46, Oleksandr Andrushchenko wrote: Do you have any example of hardware? What are the performance you require with them? Currently our target is Renesas R-Car Gen3 At the moment I don'

Re: [Xen-devel] PV drivers and zero copying

2017-07-31 Thread Oleksandr Andrushchenko
On 07/31/2017 12:47 PM, Julien Grall wrote: On 31/07/17 10:46, Oleksandr Andrushchenko wrote: Hi, Julien! On 07/31/2017 12:24 PM, Julien Grall wrote: (+ Joao) On 31/07/17 09:34, Oleksandr Andrushchenko wrote: Hi, all! Hi Oleksandr, The aim of this mail is to highlight and discuss possi

Re: [Xen-devel] PV drivers and zero copying

2017-07-31 Thread Julien Grall
On 31/07/17 10:46, Oleksandr Andrushchenko wrote: Hi, Julien! On 07/31/2017 12:24 PM, Julien Grall wrote: (+ Joao) On 31/07/17 09:34, Oleksandr Andrushchenko wrote: Hi, all! Hi Oleksandr, The aim of this mail is to highlight and discuss possible approaches to implementing zero copying

Re: [Xen-devel] PV drivers and zero copying

2017-07-31 Thread Oleksandr Andrushchenko
Hi, Julien! On 07/31/2017 12:24 PM, Julien Grall wrote: (+ Joao) On 31/07/17 09:34, Oleksandr Andrushchenko wrote: Hi, all! Hi Oleksandr, The aim of this mail is to highlight and discuss possible approaches to implementing zero copying for PV drivers. Rationale behind this is that there a

Re: [Xen-devel] PV drivers and zero copying

2017-07-31 Thread Oleksandr Andrushchenko
On 07/31/2017 12:31 PM, Andrew Cooper wrote: On 31/07/17 10:03, Paul Durrant wrote: -Original Message- [snip] Comparison for display use-case === 1 Number of grant references used 1-1 grant references: nr_pages 1-2 GNTTABOP_transfer: nr_pages 1-3 XENMEM_exc

Re: [Xen-devel] PV drivers and zero copying

2017-07-31 Thread Andrew Cooper
On 31/07/17 10:03, Paul Durrant wrote: >> -Original Message- > [snip] >> Comparison for display use-case >> === >> >> 1 Number of grant references used >> 1-1 grant references: nr_pages >> 1-2 GNTTABOP_transfer: nr_pages >> 1-3 XENMEM_exchange: not an option >> >

Re: [Xen-devel] PV drivers and zero copying

2017-07-31 Thread Julien Grall
(+ Joao) On 31/07/17 09:34, Oleksandr Andrushchenko wrote: Hi, all! Hi Oleksandr, The aim of this mail is to highlight and discuss possible approaches to implementing zero copying for PV drivers. Rationale behind this is that there are use-cases when drivers operate with big shared buffers,

Re: [Xen-devel] PV drivers and zero copying

2017-07-31 Thread Oleksandr Andrushchenko
Hi, Paul! On 07/31/2017 12:03 PM, Paul Durrant wrote: -Original Message- [snip] Comparison for display use-case === 1 Number of grant references used 1-1 grant references: nr_pages 1-2 GNTTABOP_transfer: nr_pages 1-3 XENMEM_exchange: not an option 2 Effec

Re: [Xen-devel] PV drivers and zero copying

2017-07-31 Thread Paul Durrant
> -Original Message- [snip] > Comparison for display use-case > === > > 1 Number of grant references used > 1-1 grant references: nr_pages > 1-2 GNTTABOP_transfer: nr_pages > 1-3 XENMEM_exchange: not an option > > 2 Effect of DomU crash on Dom0 (its mapped page

[Xen-devel] PV drivers and zero copying

2017-07-31 Thread Oleksandr Andrushchenko
Hi, all! The aim of this mail is to highlight and discuss possible approaches to implementing zero copying for PV drivers. Rationale behind this is that there are use-cases when drivers operate with big shared buffers, e.g. display, when memory copying from front’s buffer into back’s one may s