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@xxxxxxxxxx> > --- > 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@xxxxxxxxxx> -- Andrea Bolognani / Red Hat / Virtualization