qemu_process: Separate VIR_PERF_EVENT_* setting into a function
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 <83d82aaba2eed257f4814b0c239c260c4caaadf0@redhat.com>
Reviewed-by: Ján Tomko <4cab11cfb98d3c937327354a78eb07dbb6ee2bc6@redhat.com>

crobinso/libvirt,jfehlig/libvirt,libvirt/libvirt,jardasgit/libvirt,olafhering/libvirt,olafhering/libvirt,zippy2/libvirt,libvirt/libvirt,jardasgit/libvirt,nertpinx/libvirt,libvirt/libvirt,jardasgit/libvirt,nertpinx/libvirt,crobinso/libvirt,crobinso/libvirt,jardasgit/libvirt,olafhering/libvirt,nertpinx/libvirt,zippy2/libvirt,jfehlig/libvirt,nertpinx/libvirt,zippy2/libvirt,crobinso/libvirt,jardasgit/libvirt,libvirt/libvirt,nertpinx/libvirt,jfehlig/libvirt,zippy2/libvirt,jfehlig/libvirt,olafhering/libvirt