mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-03 07:43:54 -06:00
oslib-posix: initialize backend memory objects in parallel
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 to ensure optimal thread placement, asynchronous initialization requires prealloc context threads to be in use. Signed-off-by: Mark Kanda <mark.kanda@oracle.com> Message-ID: <20240131165327.3154970-2-mark.kanda@oracle.com> Tested-by: Mario Casquero <mcasquer@redhat.com> Signed-off-by: David Hildenbrand <david@redhat.com>
This commit is contained in:
parent
540a1abbf0
commit
04accf43df
7 changed files with 145 additions and 37 deletions
|
@ -1083,6 +1083,11 @@ typedef enum MachineInitPhase {
|
|||
*/
|
||||
PHASE_ACCEL_CREATED,
|
||||
|
||||
/*
|
||||
* Late backend objects have been created and initialized.
|
||||
*/
|
||||
PHASE_LATE_BACKENDS_CREATED,
|
||||
|
||||
/*
|
||||
* machine_class->init has been called, thus creating any embedded
|
||||
* devices and validating machine properties. Devices created at
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue