We set just one affinity of the emulator and the virConnectPtr isn't
needed for that function.
---
src/qemu/qemu_process.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/src/qemu/qemu_process.c b/src/qemu/qemu_process.c
index 52d9052..fe8fd2a 100644
--- a/src/qemu/qemu_process.c
+++ b/src/qemu/qemu_process.c
@@ -2258,8 +2258,7 @@ qemuProcessSetVcpuAffinities(virDomainObjPtr vm)
/* Set CPU affinities for emulator threads. */
static int
-qemuProcessSetEmulatorAffinities(virConnectPtr conn ATTRIBUTE_UNUSED,
- virDomainObjPtr vm)
+qemuProcessSetEmulatorAffinity(virDomainObjPtr vm)
{
virBitmapPtr cpumask;
virDomainDefPtr def = vm->def;
@@ -4263,7 +4262,7 @@ int qemuProcessStart(virConnectPtr conn,
goto cleanup;
VIR_DEBUG("Setting affinity of emulator threads");
- if (qemuProcessSetEmulatorAffinities(conn, vm) < 0)
+ if (qemuProcessSetEmulatorAffinity(vm) < 0)
goto cleanup;
VIR_DEBUG("Setting any required VM passwords");
--
2.0.2