]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Add qemuProcessSetupPid() and use it in qemuProcessSetupIOThread()
authorMartin Kletzander <mkletzan@redhat.com>
Tue, 21 Jun 2016 15:33:06 +0000 (17:33 +0200)
committerMartin Kletzander <mkletzan@redhat.com>
Mon, 11 Jul 2016 09:36:19 +0000 (11:36 +0200)
commit71e419bbeb7d7bf6f9be0c2516c320cfb7492ef3
tree59ae0d6f833033d88d2f474f28b707cc24c73290
parented1fbd7c5ba90ce10cb9a7e35f32a4b4354988aa
qemu: Add qemuProcessSetupPid() and use it in qemuProcessSetupIOThread()

Setting up cgroups and other things for all kinds of threads (the
emulator thread, vCPU threads, I/O threads) was copy-pasted every time
new thing was added.  Over time each one of those functions changed a
bit differently.  So create one function that does all that setup and
start using it, starting with I/O thread setup.  That will shave some
duplicated code and maybe fix some bugs as well.

Signed-off-by: Martin Kletzander <mkletzan@redhat.com>
src/qemu/qemu_process.c