From mboxrd@z Thu Jan 1 00:00:00 1970 From: Catalin Marinas Subject: Re: [PATCH v6 02/15] ARM: Section based HYP idmap Date: Thu, 24 Jan 2013 14:32:24 +0000 Message-ID: <20130124143224.GC18233@arm.com> References: <20130116175716.29147.15348.stgit@ubuntu> <20130116175734.29147.19552.stgit@ubuntu> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: "kvm@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , "kvmarm@lists.cs.columbia.edu" , Marc Zyngier , Marcelo Tosatti , Will Deacon To: Christoffer Dall Return-path: Received: from fw-tnat.cambridge.arm.com ([217.140.96.21]:55989 "EHLO cam-smtp0.cambridge.arm.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1753055Ab3AXOct (ORCPT ); Thu, 24 Jan 2013 09:32:49 -0500 Content-Disposition: inline In-Reply-To: <20130116175734.29147.19552.stgit@ubuntu> Sender: kvm-owner@vger.kernel.org List-ID: On Wed, Jan 16, 2013 at 05:57:34PM +0000, Christoffer Dall wrote: > --- a/arch/arm/mm/idmap.c > +++ b/arch/arm/mm/idmap.c > @@ -1,4 +1,6 @@ > +#include Minor thing - do you need to include linux/module.h here? > + identity_mapping_add(hyp_pgd, __hyp_idmap_text_start, > + __hyp_idmap_text_end, PMD_SECT_AP1); It would be more consistent if you define PMD_SECT_HYP or something like that. I think you have a L_PTE_HYP bit as well. -- Catalin