[libvirt] [PATCH V1] qemu-attach: Calculate index value if not already specified