[libvirt] [PATCH v2 6/9] qemu: command: Refactor logic when formatting -drive