From: Ian Campbell Subject: Re: [PATCH v5 11/21] xen/arm: prefix byte_read and byte_write functions with vgic Date: Tue, 17 Jun 2014 13:28:40 +0100 Message-ID: <1403008120.16844.83.camel@kazak.uk.xensource.com> References: <1402580192-13937-1-git-send-email-vijay.kilari@gmail.com> <1402580192-13937-12-git-send-email-vijay.kilari@gmail.com> <539DCB15.2060303@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <539DCB15.2060303@linaro.org> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Julien Grall Cc: vijay.kilari@gmail.com, stefano.stabellini@eu.citrix.com, Prasun.Kapoor@caviumnetworks.com, vijaya.kumar@caviumnetworks.com, tim@xen.org, xen-devel@lists.xen.org, stefano.stabellini@citrix.com List-Id: xen-devel@lists.xenproject.org On Sun, 2014-06-15 at 17:34 +0100, Julien Grall wrote: > Hi Vijay, > > On 12/06/14 14:36, vijay.kilari@gmail.com wrote: > > @@ -557,7 +557,7 @@ static int vgic_distr_mmio_write(struct vcpu *v, mmio_info_t *info) > > if ( dabt.size == 2 ) > > rank->itargets[REG_RANK_INDEX(8, gicd_reg - GICD_ITARGETSR)] = *r; > > else > > - byte_write(&rank->itargets[REG_RANK_INDEX(8, gicd_reg - GICD_ITARGETSR)], > > + vgic_byte_write(&rank->itargets[REG_RANK_INDEX(8, gicd_reg - GICD_ITARGETSR)], > > *r, offset); > > Please correctly realign the second line. Yes, please. Other than that (and the other one): Acked-by: Ian Campbell > > > vgic_unlock_rank(v, rank); > > return 1; > > @@ -570,7 +570,7 @@ static int vgic_distr_mmio_write(struct vcpu *v, mmio_info_t *info) > > if ( dabt.size == 2 ) > > rank->ipriority[REG_RANK_INDEX(8, gicd_reg - GICD_IPRIORITYR)] = *r; > > else > > - byte_write(&rank->ipriority[REG_RANK_INDEX(8, gicd_reg - GICD_IPRIORITYR)], > > + vgic_byte_write(&rank->ipriority[REG_RANK_INDEX(8, gicd_reg - GICD_IPRIORITYR)], > > *r, offset); > > Same here. > > Regards, >