[libvirt] [PATCH 3/9] qemu: Move functions around