[libvirt] [PATCH v2 24/27] qemu: Replace checking for vcpu<->pid mapping availability with a helper