diff --git a/src/qemu/qemu_cgroup.c b/src/qemu/qemu_cgroup.c index fad7003df849e098be25d78276b82c2b38511b3b..bd768ef057e5b860442ea818a4a6b998691c93af 100644 --- a/src/qemu/qemu_cgroup.c +++ b/src/qemu/qemu_cgroup.c @@ -958,21 +958,6 @@ qemuSetupCgroupVcpuPin(virCgroupPtr cgroup, return -1; } -int -qemuSetupCgroupIOThreadsPin(virCgroupPtr cgroup, - virDomainPinDefPtr *iothreadspin, - int niothreadspin, - int iothreadid) -{ - size_t i; - - for (i = 0; i < niothreadspin; i++) { - if (iothreadid == iothreadspin[i]->id) - return qemuSetupCgroupCpusetCpus(cgroup, iothreadspin[i]->cpumask); - } - - return -1; -} int qemuSetupCgroupCpusetCpus(virCgroupPtr cgroup, diff --git a/src/qemu/qemu_cgroup.h b/src/qemu/qemu_cgroup.h index 0f7be7e63d8787e6747bfa2156da6fa12fca1d78..cdeb307d282e8dada82a977f05da94fd915b0d88 100644 --- a/src/qemu/qemu_cgroup.h +++ b/src/qemu/qemu_cgroup.h @@ -57,10 +57,6 @@ int qemuSetupCgroupVcpuPin(virCgroupPtr cgroup, int nvcpupin, int vcpuid); int qemuSetupCgroupCpusetCpus(virCgroupPtr cgroup, virBitmapPtr cpumask); -int qemuSetupCgroupIOThreadsPin(virCgroupPtr cgroup, - virDomainPinDefPtr *iothreadspin, - int niothreadspin, - int iothreadid); int qemuSetupCgroupForVcpu(virDomainObjPtr vm); int qemuSetupCgroupForIOThreads(virDomainObjPtr vm); int qemuSetupCgroupForEmulator(virDomainObjPtr vm); diff --git a/src/qemu/qemu_driver.c b/src/qemu/qemu_driver.c index a6f4dfe84055eb94b34b856f761ef1feee114825..56e20d52b03423b9a078d279176b09bbb70449a5 100644 --- a/src/qemu/qemu_driver.c +++ b/src/qemu/qemu_driver.c @@ -6023,10 +6023,7 @@ qemuDomainPinIOThread(virDomainPtr dom, if (virCgroupNewIOThread(priv->cgroup, iothread_id, false, &cgroup_iothread) < 0) goto endjob; - if (qemuSetupCgroupIOThreadsPin(cgroup_iothread, - newIOThreadsPin, - newIOThreadsPinNum, - iothread_id) < 0) { + if (qemuSetupCgroupCpusetCpus(cgroup_iothread, pcpumap) < 0) { virReportError(VIR_ERR_OPERATION_INVALID, _("failed to set cpuset.cpus in cgroup" " for iothread %d"), iothread_id);