[libvirt PATCH 3/6] qemu: refactor virQEMUCapsInit