From mboxrd@z Thu Jan 1 00:00:00 1970 From: Julien Grall Subject: Re: [PATCH 02/12] xen: arm: handle accesses to CNTP_CVAL_EL0 Date: Wed, 25 Mar 2015 18:32:28 +0000 Message-ID: <5512FF3C.2070109@linaro.org> References: <1427293339.10784.83.camel@citrix.com> <1427293356-5714-2-git-send-email-ian.campbell@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1427293356-5714-2-git-send-email-ian.campbell@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: Ian Campbell , xen-devel@lists.xen.org Cc: tim@xen.org, stefano.stabellini@eu.citrix.com List-Id: xen-devel@lists.xenproject.org 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. Can you invert the patches to avoid build breakage during bisection? Regards, -- Julien Grall