]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Delete thread-context objects at domain startup
authorMichal Privoznik <mprivozn@redhat.com>
Fri, 4 Nov 2022 12:52:43 +0000 (13:52 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 15 Nov 2022 10:54:56 +0000 (11:54 +0100)
commitba92b86b4f664f983fabebdc993f8c1e5ba9aa22
tree12e2946cc32874f2b2a800bb24fcfefa5c8150c8
parentb03386d14862e1e1632dbedd5d1a5f0db80b0d98
qemu: Delete thread-context objects at domain startup

While technically thread-context objects can be reused, we only
use them (well, will use them) to pin memory allocation threads.
Therefore, once we connect to QEMU monitor, all memory (with
prealloc=yes) was allocated and thus these objects are no longer
needed and can be removed. For on demand allocation the TC object
is left behind.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/qemu/qemu_command.c
src/qemu/qemu_domain.c
src/qemu/qemu_domain.h
src/qemu/qemu_process.c
src/qemu/qemu_process.h