Re: [PATCH 05/12] xen: introduce reserve_heap_pages

2020-05-12 Thread Julien Grall
Hi, On 12/05/2020 02:10, Stefano Stabellini wrote: On Thu, 30 Apr 2020, Julien Grall wrote: On 30/04/2020 18:00, Stefano Stabellini wrote: On Thu, 30 Apr 2020, Julien Grall wrote: +pg = maddr_to_page(start); +node = phys_to_nid(start); +zone = page_to_zone(pg); +page_list_del(

Re: [PATCH 05/12] xen: introduce reserve_heap_pages

2020-05-11 Thread Stefano Stabellini
On Thu, 30 Apr 2020, Julien Grall wrote: > On 30/04/2020 18:00, Stefano Stabellini wrote: > > On Thu, 30 Apr 2020, Julien Grall wrote: > > > > > > +pg = maddr_to_page(start); > > > > > > +node = phys_to_nid(start); > > > > > > +zone = page_to_zone(pg); > > > > > > +page_list_del(pg,

Re: [PATCH 05/12] xen: introduce reserve_heap_pages

2020-05-04 Thread Jan Beulich
On 30.04.2020 18:21, Stefano Stabellini wrote: > On Thu, 30 Apr 2020, Jan Beulich wrote: >> On 30.04.2020 00:46, Stefano Stabellini wrote: >>> On Fri, 17 Apr 2020, Jan Beulich wrote: On 15.04.2020 03:02, Stefano Stabellini wrote: > Introduce a function named reserve_heap_pages (similar to

Re: [PATCH 05/12] xen: introduce reserve_heap_pages

2020-04-30 Thread Julien Grall
Hi, On 30/04/2020 18:00, Stefano Stabellini wrote: On Thu, 30 Apr 2020, Julien Grall wrote: +pg = maddr_to_page(start); +node = phys_to_nid(start); +zone = page_to_zone(pg); +page_list_del(pg, &heap(node, zone, order)); + +__alloc_heap_pages(pg, order, memflags, d); I agre

Re: [PATCH 05/12] xen: introduce reserve_heap_pages

2020-04-30 Thread Stefano Stabellini
On Thu, 30 Apr 2020, Julien Grall wrote: > > > > +pg = maddr_to_page(start); > > > > +node = phys_to_nid(start); > > > > +zone = page_to_zone(pg); > > > > +page_list_del(pg, &heap(node, zone, order)); > > > > + > > > > +__alloc_heap_pages(pg, order, memflags, d); > > > > > > I

Re: [PATCH 05/12] xen: introduce reserve_heap_pages

2020-04-30 Thread Stefano Stabellini
On Thu, 30 Apr 2020, Jan Beulich wrote: > On 30.04.2020 00:46, Stefano Stabellini wrote: > > On Fri, 17 Apr 2020, Jan Beulich wrote: > >> On 15.04.2020 03:02, Stefano Stabellini wrote: > >>> Introduce a function named reserve_heap_pages (similar to > >>> alloc_heap_pages) that allocates a requested

Re: [PATCH 05/12] xen: introduce reserve_heap_pages

2020-04-30 Thread Julien Grall
Hi, On 29/04/2020 23:46, Stefano Stabellini wrote: On Fri, 17 Apr 2020, Jan Beulich wrote: On 15.04.2020 03:02, Stefano Stabellini wrote: Introduce a function named reserve_heap_pages (similar to alloc_heap_pages) that allocates a requested memory range. Call __alloc_heap_pages for the impleme

Re: [PATCH 05/12] xen: introduce reserve_heap_pages

2020-04-29 Thread Jan Beulich
On 30.04.2020 00:46, Stefano Stabellini wrote: > On Fri, 17 Apr 2020, Jan Beulich wrote: >> On 15.04.2020 03:02, Stefano Stabellini wrote: >>> Introduce a function named reserve_heap_pages (similar to >>> alloc_heap_pages) that allocates a requested memory range. Call >>> __alloc_heap_pages for the

Re: [PATCH 05/12] xen: introduce reserve_heap_pages

2020-04-29 Thread Stefano Stabellini
On Fri, 17 Apr 2020, Jan Beulich wrote: > On 15.04.2020 03:02, Stefano Stabellini wrote: > > Introduce a function named reserve_heap_pages (similar to > > alloc_heap_pages) that allocates a requested memory range. Call > > __alloc_heap_pages for the implementation. > > > > Change __alloc_heap_page

Re: [PATCH 05/12] xen: introduce reserve_heap_pages

2020-04-17 Thread Jan Beulich
On 15.04.2020 03:02, Stefano Stabellini wrote: > Introduce a function named reserve_heap_pages (similar to > alloc_heap_pages) that allocates a requested memory range. Call > __alloc_heap_pages for the implementation. > > Change __alloc_heap_pages so that the original page doesn't get > modified,

Re: [PATCH 05/12] xen: introduce reserve_heap_pages

2020-04-15 Thread Julien Grall
On 15/04/2020 02:02, Stefano Stabellini wrote: Introduce a function named reserve_heap_pages (similar to alloc_heap_pages) that allocates a requested memory range. Call __alloc_heap_pages for the implementation. Change __alloc_heap_pages so that the original page doesn't get modified, giving bac

[PATCH 05/12] xen: introduce reserve_heap_pages

2020-04-14 Thread Stefano Stabellini
Introduce a function named reserve_heap_pages (similar to alloc_heap_pages) that allocates a requested memory range. Call __alloc_heap_pages for the implementation. Change __alloc_heap_pages so that the original page doesn't get modified, giving back unneeded memory top to bottom rather than botto