Re: [PATCH v4 02/14] ARM: Section based HYP idmap

2012-11-30 Thread Christoffer Dall
On Fri, Nov 30, 2012 at 5:58 AM, Will Deacon wrote: > On Thu, Nov 29, 2012 at 06:59:07PM +, Christoffer Dall wrote: >> On Mon, Nov 19, 2012 at 9:16 AM, Will Deacon wrote: >> > >> > I also think it might be cleaner to declare the hyp_pgd next to the >> > idmap_pgd then add the hyp_idmap_setup

Re: [PATCH v4 02/14] ARM: Section based HYP idmap

2012-11-30 Thread Will Deacon
On Thu, Nov 29, 2012 at 06:59:07PM +, Christoffer Dall wrote: > On Mon, Nov 19, 2012 at 9:16 AM, Will Deacon wrote: > > > > I also think it might be cleaner to declare the hyp_pgd next to the > > idmap_pgd then add the hyp_idmap_setup code to init_static_idmap, so > > that we don't add new ent

Re: [PATCH v4 02/14] ARM: Section based HYP idmap

2012-11-29 Thread Christoffer Dall
On Mon, Nov 19, 2012 at 9:16 AM, Will Deacon wrote: > On Sat, Nov 10, 2012 at 03:42:24PM +, Christoffer Dall wrote: >> Add a method (hyp_idmap_setup) to populate a hyp pgd with an >> identity mapping of the code contained in the .hyp.idmap.text >> section. >> >> Offer a method to drop this ide

Re: [PATCH v4 02/14] ARM: Section based HYP idmap

2012-11-19 Thread Rob Herring
On 11/10/2012 09:42 AM, Christoffer Dall wrote: > Add a method (hyp_idmap_setup) to populate a hyp pgd with an > identity mapping of the code contained in the .hyp.idmap.text > section. > > Offer a method to drop this identity mapping through > hyp_idmap_teardown. > > Make all the above depend on

Re: [PATCH v4 02/14] ARM: Section based HYP idmap

2012-11-19 Thread Will Deacon
On Sat, Nov 10, 2012 at 03:42:24PM +, Christoffer Dall wrote: > Add a method (hyp_idmap_setup) to populate a hyp pgd with an > identity mapping of the code contained in the .hyp.idmap.text > section. > > Offer a method to drop this identity mapping through > hyp_idmap_teardown. > > Make all t

[PATCH v4 02/14] ARM: Section based HYP idmap

2012-11-10 Thread Christoffer Dall
Add a method (hyp_idmap_setup) to populate a hyp pgd with an identity mapping of the code contained in the .hyp.idmap.text section. Offer a method to drop this identity mapping through hyp_idmap_teardown. Make all the above depend on CONFIG_ARM_VIRT_EXT and CONFIG_ARM_LPAE. Cc: Will Deacon Revi