From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Vrabel Subject: [PATCHv2 0/3] grant-table: optimize grant copies when crossing page boundaries Date: Tue, 20 Jan 2015 18:19:46 +0000 Message-ID: <1421777990-1122-1-git-send-email-david.vrabel@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1YDdxG-00068W-24 for xen-devel@lists.xenproject.org; Tue, 20 Jan 2015 18:55:10 +0000 List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xenproject.org Cc: Keir Fraser , Tim Deegan , David Vrabel , Jan Beulich , Ian Campbell List-Id: xen-devel@lists.xenproject.org Netback tries (where possible) to minimize the number of copy ops in the to-guest direction (since acquiring a page is expensive) this reduces the number acquire operations at the expensive of more Rx slots and more frags in the guests. By deferring the release of the pages we can optimize the case where the grant copier splits a copy into two operations to cross a page boundary (either to split a source GFN into two granted pages, or a two source into the same granted page). Changes in v2: - Split refactor into separate patch. - Use in struct grant_copy_ptr in struct grant_copy_buf. - Various style fixes. David