]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu_process: Separate VIR_PERF_EVENT_* setting into a function
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 7 Sep 2020 14:44:50 +0000 (16:44 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 8 Sep 2020 08:57:24 +0000 (10:57 +0200)
commitec46e6d44b1ac7297231193b793dd86f76885f1c
tree466221a7f19c34258a15a6c583f1a35f89570137
parentde79fad40fb6a970fab9dd566ed83ecf56877ea2
qemu_process: Separate VIR_PERF_EVENT_* setting into a function

When starting a domain, qemuProcessLaunch() iterates over all
VIR_PERF_EVENT_* values and (possibly) enables them. While there
is nothing wrong with the code, the for loop where it's done makes
it harder to jump onto next block of code.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/qemu/qemu_process.c