[libvirt] [PATCH v1 3/7] qemu: Move device alias assignment to separate functions