Re: [PATCH 17/22] x86/setup: vmap heap nodes when they are outside the direct map

2023-01-23 Thread Stefano Stabellini
On Mon, 23 Jan 2023, Julien Grall wrote: > On 23/01/2023 22:03, Stefano Stabellini wrote: > > On Fri, 16 Dec 2022, Julien Grall wrote: > > > From: Hongyan Xia > > > > > > When we do not have a direct map, archs_mfn_in_direct_map() will always > > > return false, thus init_node_heap() will allocat

Re: [PATCH 17/22] x86/setup: vmap heap nodes when they are outside the direct map

2023-01-23 Thread Julien Grall
Hi, On 23/01/2023 22:03, Stefano Stabellini wrote: On Fri, 16 Dec 2022, Julien Grall wrote: From: Hongyan Xia When we do not have a direct map, archs_mfn_in_direct_map() will always return false, thus init_node_heap() will allocate xenheap pages from an existing node for the metadata of a new

Re: [PATCH 17/22] x86/setup: vmap heap nodes when they are outside the direct map

2023-01-23 Thread Stefano Stabellini
On Fri, 16 Dec 2022, Julien Grall wrote: > From: Hongyan Xia > > When we do not have a direct map, archs_mfn_in_direct_map() will always > return false, thus init_node_heap() will allocate xenheap pages from an > existing node for the metadata of a new node. This means that the > metadata of a ne

Re: [PATCH 17/22] x86/setup: vmap heap nodes when they are outside the direct map

2023-01-11 Thread Jan Beulich
On 16.12.2022 12:48, Julien Grall wrote: > @@ -597,22 +598,43 @@ static unsigned long init_node_heap(int node, unsigned > long mfn, > needed = 0; > } > else if ( *use_tail && nr >= needed && > - arch_mfns_in_directmap(mfn + nr - needed, needed) && >(

[PATCH 17/22] x86/setup: vmap heap nodes when they are outside the direct map

2022-12-16 Thread Julien Grall
From: Hongyan Xia When we do not have a direct map, archs_mfn_in_direct_map() will always return false, thus init_node_heap() will allocate xenheap pages from an existing node for the metadata of a new node. This means that the metadata of a new node is in a different node, slowing down heap allo