]> git.proxmox.com Git - mirror_qemu.git/commit
hostmem: introduce "prealloc-threads" property
authorIgor Mammedov <imammedo@redhat.com>
Wed, 19 Feb 2020 16:09:50 +0000 (11:09 -0500)
committerPatchew Importer <importer@patchew.org>
Wed, 19 Feb 2020 16:50:02 +0000 (16:50 +0000)
commitffac16fab33bb42f17e47624985220c1fd864e9d
treebdf0d5089bbfed0c3f042c6c7af9d0afdf4a5e90
parent8b38de9f62cfc3d8d6f946c47e8afb6138539517
hostmem: introduce "prealloc-threads" property

the property will allow user to specify number of threads to use
in pre-allocation stage. It also will allow to reduce implicit
hostmem dependency on current_machine.
On object creation it will default to 1, but via machine
compat property it will be updated to MachineState::smp::cpus
to keep current behavior for hostmem and main RAM (which is
now also hostmem based).

Signed-off-by: Igor Mammedov <imammedo@redhat.com>
Message-Id: <20200219160953.13771-77-imammedo@redhat.com>
backends/hostmem.c
include/sysemu/hostmem.h
vl.c