From mboxrd@z Thu Jan 1 00:00:00 1970 From: Geoff Levand Subject: Re: [PATCH 05/29] arm64: KVM: Basic ESR_EL2 helpers and vcpu register access Date: Fri, 15 Mar 2013 17:55:56 -0700 Message-ID: <1363395356.3155.84.camel@smoke> References: <1362455265-24165-1-git-send-email-marc.zyngier@arm.com> <1362455265-24165-6-git-send-email-marc.zyngier@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Cc: linux-arm-kernel@lists.infradead.org, kvm@vger.kernel.org, kvmarm@lists.cs.columbia.edu, catalin.marinas@arm.com To: Marc Zyngier Return-path: Received: from 173-166-109-252-newengland.hfc.comcastbusiness.net ([173.166.109.252]:37677 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753802Ab3CPA4B (ORCPT ); Fri, 15 Mar 2013 20:56:01 -0400 In-Reply-To: <1362455265-24165-6-git-send-email-marc.zyngier@arm.com> Sender: kvm-owner@vger.kernel.org List-ID: Hi Marc, On Tue, 2013-03-05 at 03:47 +0000, Marc Zyngier wrote: > --- /dev/null > +++ b/arch/arm64/include/asm/kvm_emulate.h ... > +static inline bool vcpu_mode_is_32bit(struct kvm_vcpu *vcpu) > +{ > + return false; /* 32bit? Bahhh... */ > +} > + > +static inline bool kvm_condition_valid(struct kvm_vcpu *vcpu) > +{ > + return true; /* No conditionals on arm64 */ > +} Does it make sense to have these routines take a const object? static inline bool vcpu_mode_is_32bit(struct kvm_vcpu const *vcpu) -Geoff