Re: [Xen-devel] [PATCH V3 2/2] xen/arm: mm: clean up code in setup_pagetables

2016-05-16 Thread Stefano Stabellini
On Mon, 16 May 2016, Julien Grall wrote: > Hi Peng, > > On 12/05/16 12:48, Peng Fan wrote: > > The base of address for the relocated xen needs to be mapped > > at the same virtual address (BOOT_RELOC_VIRT_START) in both > > the boot and runtime page tables. So we can merge the two pieces > > of

Re: [Xen-devel] [PATCH V3 2/2] xen/arm: mm: clean up code in setup_pagetables

2016-05-16 Thread Julien Grall
Hi Peng, On 12/05/16 12:48, Peng Fan wrote: The base of address for the relocated xen needs to be mapped at the same virtual address (BOOT_RELOC_VIRT_START) in both the boot and runtime page tables. So we can merge the two pieces of code into on code block s/on/one/ and missing full stop.

[Xen-devel] [PATCH V3 2/2] xen/arm: mm: clean up code in setup_pagetables

2016-05-12 Thread Peng Fan
The base of address for the relocated xen needs to be mapped at the same virtual address (BOOT_RELOC_VIRT_START) in both the boot and runtime page tables. So we can merge the two pieces of code into on code block Also no need to use write_pte when mapping BOOT_RELOC_VIRT_START in xen_second,