From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marc Zyngier Subject: Re: [PATCH v3 03/32] arm64: KVM: HYP mode idmap support Date: Wed, 24 Apr 2013 10:36:18 +0100 Message-ID: <5177A792.9030001@arm.com> References: <1365437854-30214-1-git-send-email-marc.zyngier@arm.com> <1365437854-30214-4-git-send-email-marc.zyngier@arm.com> <20130423225733.GA20569@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=WINDOWS-1252 Content-Transfer-Encoding: 8BIT Cc: linux-arm-kernel , "kvmarm@lists.cs.columbia.edu" , KVM General , Catalin Marinas , Will Deacon To: Christoffer Dall Return-path: Received: from service87.mimecast.com ([91.220.42.44]:58201 "EHLO service87.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757638Ab3DXJgX convert rfc822-to-8bit (ORCPT ); Wed, 24 Apr 2013 05:36:23 -0400 In-Reply-To: <20130423225733.GA20569@gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: On 23/04/13 23:57, Christoffer Dall wrote: > > > On Mon, Apr 8, 2013 at 9:17 AM, 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 >> --- >> arch/arm64/kernel/vmlinux.lds.S | 16 ++++++++++++++++ >> 1 file changed, 16 insertions(+) >> >> diff --git a/arch/arm64/kernel/vmlinux.lds.S b/arch/arm64/kernel/vmlinux.lds.S >> index 3fae2be..855d43d 100644 >> --- a/arch/arm64/kernel/vmlinux.lds.S >> +++ b/arch/arm64/kernel/vmlinux.lds.S >> @@ -17,6 +17,15 @@ ENTRY(stext) >> >> jiffies = jiffies_64; >> >> +#define HYPERVISOR_TEXT \ >> + . = ALIGN(2048); \ > > why align to 2048? Comment? Vectors require a 2kB alignment. I'll add a comment to that effect. > are you changing this to the same idea as for the 32-bit code to reduce the kernel size? The mechanism is exactly the same indeed. Only the alignment requirements are (massively) different. Thanks, M. -- Jazz is not dead. It just smells funny...