Re: [PATCH v2] hostmem: Honor multiple preferred nodes if possible

2022-12-19 Thread David Hildenbrand
On 19.12.22 12:10, Michal Prívozník wrote: On 12/19/22 10:58, David Hildenbrand wrote: I'll fixup. I just queued the fixed-up patch to https://github.com/davidhildenbrand/qemu.git mem-next Please double-check. Thanks! Looks good. Sorry for not doing it properly the first time. No worries

Re: [PATCH v2] hostmem: Honor multiple preferred nodes if possible

2022-12-19 Thread Michal Prívozník
On 12/19/22 10:58, David Hildenbrand wrote: > > I'll fixup. I just queued the fixed-up patch to > > https://github.com/davidhildenbrand/qemu.git mem-next > > Please double-check. Thanks! > Looks good. Sorry for not doing it properly the first time. Michal

Re: [PATCH v2] hostmem: Honor multiple preferred nodes if possible

2022-12-19 Thread David Hildenbrand
On 19.12.22 10:57, Michal Prívozník wrote: On 12/19/22 10:55, David Hildenbrand wrote: On 16.12.22 14:47, Michal Prívozník wrote: On 12/16/22 14:41, David Hildenbrand wrote: On 15.12.22 10:55, Michal Privoznik wrote: If a memory-backend is configured with mode HOST_MEM_POLICY_PREFERRED then h

Re: [PATCH v2] hostmem: Honor multiple preferred nodes if possible

2022-12-19 Thread Michal Prívozník
On 12/19/22 10:55, David Hildenbrand wrote: > On 16.12.22 14:47, Michal Prívozník wrote: >> On 12/16/22 14:41, David Hildenbrand wrote: >>> On 15.12.22 10:55, Michal Privoznik wrote: If a memory-backend is configured with mode HOST_MEM_POLICY_PREFERRED then host_memory_backend_memory

Re: [PATCH v2] hostmem: Honor multiple preferred nodes if possible

2022-12-19 Thread David Hildenbrand
On 16.12.22 14:47, Michal Prívozník wrote: On 12/16/22 14:41, David Hildenbrand wrote: On 15.12.22 10:55, Michal Privoznik wrote: If a memory-backend is configured with mode HOST_MEM_POLICY_PREFERRED then host_memory_backend_memory_complete() calls mbind() as:    mbind(..., MPOL_PREFERRED, no

Re: [PATCH v2] hostmem: Honor multiple preferred nodes if possible

2022-12-16 Thread Michal Prívozník
On 12/16/22 14:41, David Hildenbrand wrote: > On 15.12.22 10:55, Michal Privoznik wrote: >> If a memory-backend is configured with mode >> HOST_MEM_POLICY_PREFERRED then >> host_memory_backend_memory_complete() calls mbind() as: >> >>    mbind(..., MPOL_PREFERRED, nodemask, ...); >> >> Here, 'nodem

Re: [PATCH v2] hostmem: Honor multiple preferred nodes if possible

2022-12-16 Thread David Hildenbrand
On 15.12.22 10:55, Michal Privoznik wrote: If a memory-backend is configured with mode HOST_MEM_POLICY_PREFERRED then host_memory_backend_memory_complete() calls mbind() as: mbind(..., MPOL_PREFERRED, nodemask, ...); Here, 'nodemask' is a bitmap of host NUMA nodes and corresponds to the .hos

[PATCH v2] hostmem: Honor multiple preferred nodes if possible

2022-12-15 Thread Michal Privoznik
If a memory-backend is configured with mode HOST_MEM_POLICY_PREFERRED then host_memory_backend_memory_complete() calls mbind() as: mbind(..., MPOL_PREFERRED, nodemask, ...); Here, 'nodemask' is a bitmap of host NUMA nodes and corresponds to the .host-nodes attribute. Therefore, there can be mul