Re: [Xen-devel] [PATCH v2 2/2] qdisk - hw/block/xen_disk: grant copy implementation

2016-06-15 Thread Paulina Szubarczyk
On Mon, 2016-06-13 at 11:58 +0100, David Vrabel wrote: > On 13/06/16 11:44, Paulina Szubarczyk wrote: > > On Mon, 2016-06-13 at 11:15 +0100, David Vrabel wrote: > >> On 13/06/16 10:43, Paulina Szubarczyk wrote: > >>> Copy data operated on during request from/to local buffers to/from > >>> the gran

Re: [Xen-devel] [PATCH v2 2/2] qdisk - hw/block/xen_disk: grant copy implementation

2016-06-13 Thread David Vrabel
On 13/06/16 11:44, Paulina Szubarczyk wrote: > On Mon, 2016-06-13 at 11:15 +0100, David Vrabel wrote: >> On 13/06/16 10:43, Paulina Szubarczyk wrote: >>> Copy data operated on during request from/to local buffers to/from >>> the grant references. >>> >>> Before grant copy operation local buffers

Re: [Xen-devel] [PATCH v2 2/2] qdisk - hw/block/xen_disk: grant copy implementation

2016-06-13 Thread Paulina Szubarczyk
On Mon, 2016-06-13 at 11:15 +0100, David Vrabel wrote: > On 13/06/16 10:43, Paulina Szubarczyk wrote: > > Copy data operated on during request from/to local buffers to/from > > the grant references. > > > > Before grant copy operation local buffers must be allocated what is > > done by calling

Re: [Xen-devel] [PATCH v2 2/2] qdisk - hw/block/xen_disk: grant copy implementation

2016-06-13 Thread David Vrabel
On 13/06/16 10:43, Paulina Szubarczyk wrote: > Copy data operated on during request from/to local buffers to/from > the grant references. > > Before grant copy operation local buffers must be allocated what is > done by calling ioreq_init_copy_buffers. For the 'read' operation, > first, the qe

[Xen-devel] [PATCH v2 2/2] qdisk - hw/block/xen_disk: grant copy implementation

2016-06-13 Thread Paulina Szubarczyk
Copy data operated on during request from/to local buffers to/from the grant references. Before grant copy operation local buffers must be allocated what is done by calling ioreq_init_copy_buffers. For the 'read' operation, first, the qemu device invokes the read operation on local buffers an