[libvirt] [PATCH 07/12] qemu: command: Refactor logic when formatting -drive