From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ian Campbell Subject: Re: [PATCH 02/12] xen: arm: handle accesses to CNTP_CVAL_EL0 Date: Thu, 26 Mar 2015 10:59:47 +0000 Message-ID: <1427367587.13935.14.camel@citrix.com> References: <1427293339.10784.83.camel@citrix.com> <1427293356-5714-2-git-send-email-ian.campbell@citrix.com> <5512FF3C.2070109@linaro.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <5512FF3C.2070109@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: stefano.stabellini@eu.citrix.com, tim@xen.org, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Wed, 2015-03-25 at 18:32 +0000, Julien Grall wrote: > On 25/03/15 14:22, Ian Campbell wrote: > > +static int vtimer_cntp_cval(struct cpu_user_regs *regs, uint64_t *r, int read) > > +{ > > + struct vcpu *v = current; > > + > > + if ( psr_mode_is_user(regs) && > > + !(READ_SYSREG(CNTKCTL_EL1) & CNTKCTL_EL1_EL0PTEN) ) > > Sorry, I didn't notice it on my previous review. > > CNTKCTL_EL1_EL0PTEN and psr_mode_is_user are only defined in > respectively patch #6 and #4. Well spotted. > Can you invert the patches to avoid build breakage during bisection? I was hoping to be able to backport this, so I think I will move the definitions of CNTKCTL_* here and either decide to backport the psr_mdoe refactoring or see if I can avoid using it in this patch. Ian.