From mboxrd@z Thu Jan 1 00:00:00 1970 From: Catalin Marinas Subject: Re: [PATCH v4 02/32] arm64: KVM: HYP mode idmap support Date: Mon, 20 May 2013 16:31:43 +0100 Message-ID: <20130520153142.GA3639@MacBook-Pro.local> References: <1368540840-26750-1-git-send-email-marc.zyngier@arm.com> <1368540840-26750-3-git-send-email-marc.zyngier@arm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "linux-arm-kernel@lists.infradead.org" , "kvmarm@lists.cs.columbia.edu" , "kvm@vger.kernel.org" , Will Deacon , "pbonzini@redhat.com" , "gleb@redhat.com" To: Marc Zyngier Return-path: Received: from cam-admin0.cambridge.arm.com ([217.140.96.50]:50567 "EHLO cam-admin0.cambridge.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756008Ab3ETPcX (ORCPT ); Mon, 20 May 2013 11:32:23 -0400 Content-Disposition: inline In-Reply-To: <1368540840-26750-3-git-send-email-marc.zyngier@arm.com> Sender: kvm-owner@vger.kernel.org List-ID: On Tue, May 14, 2013 at 03:13:30PM +0100, Marc Zyngier wrote: > Add the necessary infrastructure for identity-mapped HYP page > tables. Idmap-ed code must be in the ".hyp.idmap.text" linker > section. > > The rest of the HYP ends up in ".hyp.text". > > Signed-off-by: Marc Zyngier ... > +/* > + * The HYP init code can't be more than a page long. > + */ > +ASSERT(((__hyp_idmap_text_start + PAGE_SIZE) >= __hyp_idmap_text_end), > + "HYP init code too big") Is __hyp_idmap_text_end inclusive or exclusive? I think the latter and you can use greater than (without equal). Otherwise: Reviewed-by: Catalin Marinas