From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: [PATCH v6 02/16] x86/hvm: remove multiple open coded 'chunking' loops Date: Fri, 3 Jul 2015 18:17:34 +0100 Message-ID: <5596C3AE.7030805@citrix.com> References: <1435940733-20856-1-git-send-email-paul.durrant@citrix.com> <1435940733-20856-3-git-send-email-paul.durrant@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZB4b9-0004Lf-Vo for xen-devel@lists.xenproject.org; Fri, 03 Jul 2015 17:18:00 +0000 In-Reply-To: <1435940733-20856-3-git-send-email-paul.durrant@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Paul Durrant , xen-devel@lists.xenproject.org Cc: Keir Fraser , Jan Beulich List-Id: xen-devel@lists.xenproject.org On 03/07/15 17:25, Paul Durrant wrote: > ...in hvmemul_read/write() > > Add hvmemul_phys_mmio_access() and hvmemul_linear_mmio_access() functions > to reduce code duplication. > > NOTE: This patch also introduces a change in 'chunking' around a page > boundary. Previously (for example) an 8 byte access at the last > byte of a page would get carried out as 8 single-byte accesses. > It will now be carried out as a single-byte access, followed by > a 4-byte access, a 2-byte access and then another single-byte > access. > > Signed-off-by: Paul Durrant > Cc: Keir Fraser > Cc: Jan Beulich > Cc: Andrew Cooper Reviewed-by: Andrew Cooper