[libvirt] [PATCH v1 04/14] qemu: Move device alias assignment to separate functions