Received: from eggs.gnu.org ([2001:4830:134:3::10]:43042) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhgHw-0003CZ-Oo for qemu-devel@nongnu.org; Wed, 07 Sep 2016 13:05:29 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bhgHs-0000Nb-AI for qemu-devel@nongnu.org; Wed, 07 Sep 2016 13:05:27 -0400 Received: from smtp.citrix.com ([66.165.176.89]:55743) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bhgHs-0000Mh-63 for qemu-devel@nongnu.org; Wed, 07 Sep 2016 13:05:24 -0400 Date: Wed, 7 Sep 2016 18:05:17 +0100 From: Anthony PERARD Message-ID: <20160907170517.GQ1847@perard.uk.xensource.com> References: <1473244860-6072-1-git-send-email-paulinaszubarczyk@gmail.com> <1473244860-6072-3-git-send-email-paulinaszubarczyk@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Disposition: inline In-Reply-To: <1473244860-6072-3-git-send-email-paulinaszubarczyk@gmail.com> Subject: Re: [Qemu-devel] [PATCH v6 2/2] qdisk - hw/block/xen_disk: grant copy implementation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paulina Szubarczyk Cc: xen-devel@lists.xenproject.org, roger.pau@citrix.com, wei.liu2@citrix.com, ian.jackson@eu.citrix.com, david.vrabel@citrix.com, sstabellini@kernel.org, qemu-devel@nongnu.org On Wed, Sep 07, 2016 at 12:41:00PM +0200, 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 qemu device invokes the read operation on local buffers > and on the completion grant copy is called and buffers are freed. > For the 'write' operation grant copy is performed before invoking > write by qemu device. > > A new value 'feature_grant_copy' is added to recognize when the > grant copy operation is supported by a guest. > > Signed-off-by: Paulina Szubarczyk Acked-by: Anthony PERARD Thanks, -- Anthony PERARD