Re: [PATCH v3 1/1] oslib-posix: initialize backend memory objects in parallel

2024-01-31 Thread Mark Kanda
On 1/31/24 8:57 AM, David Hildenbrand wrote: On 31.01.24 15:48, Mark Kanda wrote: On 1/31/24 8:30 AM, David Hildenbrand wrote: OK. I'll call it 'PHASE_LATE_BACKENDS_CREATED' (to make it consistent with code comments/function name). But then, you should set it at the very end of the functi

Re: [PATCH v3 1/1] oslib-posix: initialize backend memory objects in parallel

2024-01-31 Thread David Hildenbrand
On 31.01.24 15:48, Mark Kanda wrote: On 1/31/24 8:30 AM, David Hildenbrand wrote: OK. I'll call it 'PHASE_LATE_BACKENDS_CREATED' (to make it consistent with code comments/function name). But then, you should set it at the very end of the function (not sure if that would be a problem with the

Re: [PATCH v3 1/1] oslib-posix: initialize backend memory objects in parallel

2024-01-31 Thread Mark Kanda
On 1/31/24 8:30 AM, David Hildenbrand wrote: OK. I'll call it 'PHASE_LATE_BACKENDS_CREATED' (to make it consistent with code comments/function name). But then, you should set it at the very end of the function (not sure if that would be a problem with the other devices that are getting creat

Re: [PATCH v3 1/1] oslib-posix: initialize backend memory objects in parallel

2024-01-31 Thread David Hildenbrand
OK. I'll call it 'PHASE_LATE_BACKENDS_CREATED' (to make it consistent with code comments/function name). But then, you should set it at the very end of the function (not sure if that would be a problem with the other devices that are getting created in between -- if they would be using one of

Re: [PATCH v3 1/1] oslib-posix: initialize backend memory objects in parallel

2024-01-31 Thread Mark Kanda
On 1/31/24 8:04 AM, David Hildenbrand wrote: On 31.01.24 14:48, Mark Kanda wrote: QEMU initializes preallocated backend memory as the objects are parsed from the command line. This is not optimal in some cases (e.g. memory spanning multiple NUMA nodes) because the memory objects are initialized

Re: [PATCH v3 1/1] oslib-posix: initialize backend memory objects in parallel

2024-01-31 Thread David Hildenbrand
On 31.01.24 14:48, Mark Kanda wrote: QEMU initializes preallocated backend memory as the objects are parsed from the command line. This is not optimal in some cases (e.g. memory spanning multiple NUMA nodes) because the memory objects are initialized in series. Allow the initialization to occur

[PATCH v3 1/1] oslib-posix: initialize backend memory objects in parallel

2024-01-31 Thread Mark Kanda
QEMU initializes preallocated backend memory as the objects are parsed from the command line. This is not optimal in some cases (e.g. memory spanning multiple NUMA nodes) because the memory objects are initialized in series. Allow the initialization to occur in parallel (asynchronously). In order