Re: [PATCH v3 17/19] xen/arm64: mm: Add memory to the boot allocator first

2022-04-05 Thread Stefano Stabellini
On Tue, 5 Apr 2022, Julien Grall wrote: > On 05/04/2022 22:50, Stefano Stabellini wrote: > > > +static void __init setup_mm(void) > > > +{ > > > +const struct meminfo *banks = &bootinfo.mem; > > > +paddr_t ram_start = ~0; > > > +paddr_t ram_end = 0; > > > +paddr_t ram_size = 0; > >

Re: [PATCH v3 17/19] xen/arm64: mm: Add memory to the boot allocator first

2022-04-05 Thread Julien Grall
Hi Stefano, On 05/04/2022 22:50, Stefano Stabellini wrote: +static void __init setup_mm(void) +{ +const struct meminfo *banks = &bootinfo.mem; +paddr_t ram_start = ~0; +paddr_t ram_end = 0; +paddr_t ram_size = 0; +unsigned int i; + +init_pdx(); + +/* + * We need s

Re: [PATCH v3 17/19] xen/arm64: mm: Add memory to the boot allocator first

2022-04-05 Thread Stefano Stabellini
On Mon, 21 Feb 2022, Julien Grall wrote: > From: Julien Grall > > Currently, memory is added to the boot allocator after the xenheap > mappings are done. This will break if the first mapping is more than > 512GB of RAM. > > In addition to that, a follow-up patch will rework setup_xenheap_mapping