]> xenbits.xensource.com Git - libvirt.git/commit
qemu: Enable SCHED_CORE for vCPUs
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 11 Aug 2022 13:25:24 +0000 (15:25 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 20 Oct 2022 07:00:45 +0000 (09:00 +0200)
commitd94242248232c8c47bf96d1b7a480f36332ae0db
tree03b4eb168e961da698af902fb0b265759f917030
parent000477115ed41c1f6b2655e7946fbeac966f5202
qemu: Enable SCHED_CORE for vCPUs

For QEMU_SCHED_CORE_VCPUS case, the vCPU threads should be placed
all into one scheduling group, but not the emulator or any of its
threads. Therefore, as soon as vCPU TIDs are detected, fork off a
child which then creates a separate scheduling group and adds all
vCPU threads into it.

Please note, this commit only handles the cold boot case. Hotplug
is going to be implemented in the next commit.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/qemu/qemu_process.c