From mboxrd@z Thu Jan 1 00:00:00 1970 From: Catalin Marinas Subject: Re: [PATCH v4 05/32] arm64: KVM: Basic ESR_EL2 helpers and vcpu register access Date: Mon, 20 May 2013 16:41:43 +0100 Message-ID: <20130520154142.GD3639@MacBook-Pro.local> References: <1368540840-26750-1-git-send-email-marc.zyngier@arm.com> <1368540840-26750-6-git-send-email-marc.zyngier@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: "kvm@vger.kernel.org" , "gleb@redhat.com" , Will Deacon , Christopher Covington , "pbonzini@redhat.com" , "kvmarm@lists.cs.columbia.edu" , "linux-arm-kernel@lists.infradead.org" To: Marc Zyngier Return-path: Content-Disposition: inline In-Reply-To: <1368540840-26750-6-git-send-email-marc.zyngier@arm.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org List-Id: kvm.vger.kernel.org On Tue, May 14, 2013 at 03:13:33PM +0100, Marc Zyngier wrote: > Implements helpers for dealing with the EL2 syndrome register as > well as accessing the vcpu registers. > > Reviewed-by: Christopher Covington > Signed-off-by: Marc Zyngier ... > +static inline bool kvm_vcpu_dabt_isvalid(const struct kvm_vcpu *vcpu) > +{ > + return !!(kvm_vcpu_get_hsr(vcpu) & ESR_EL2_ISV); > +} You kept these '!!' ;). BTW, would the compiler handle the conversion between the integer and bool here? Either way is fine by me: Reviewed-by: Catalin Marinas