]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Move cpuset preference evaluation into a separate function
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 7 Mar 2023 11:27:05 +0000 (12:27 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 15 Mar 2023 11:46:40 +0000 (12:46 +0100)
commitb4ccb0dc412bcdb09863b2fa1ee65d09808a2c08
tree751b2b6e0cc3ad3596e7451ebd75c89946d73114
parent95ae91fdd4da33323ead8f916824b48f8506383c
qemu: Move cpuset preference evaluation into a separate function

The set of if()-s that determines the preference in cpumask used
for setting things like emulatorpin, vcpupin, etc. is going to be
re-used. Separate it out into a function.

You may think that this changes behaviour, but
qemuProcessPrepareDomainNUMAPlacement() ensures that
priv->autoCpuset is set for VIR_DOMAIN_CPU_PLACEMENT_MODE_AUTO.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Kristina Hanicova <khanicov@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
src/qemu/qemu_domain.c
src/qemu/qemu_domain.h
src/qemu/qemu_process.c