[PATCH 08/14] qemu: Move cpuset preference evaluation into a separate function
Andrea Bolognani
abologna at redhat.com
Mon Mar 13 17:46:30 UTC 2023
On Wed, Mar 08, 2023 at 12:14:35PM +0100, Michal Privoznik wrote:
> 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 at redhat.com>
> ---
> src/qemu/qemu_domain.c | 18 ++++++++++++++++++
> src/qemu/qemu_domain.h | 5 +++++
> src/qemu/qemu_process.c | 9 ++-------
> 3 files changed, 25 insertions(+), 7 deletions(-)
Reviewed-by: Andrea Bolognani <abologna at redhat.com>
--
Andrea Bolognani / Red Hat / Virtualization
More information about the libvir-list
mailing list