[libvirt] [PATCH v6 12/33] qemu_process: Collect monitor code in single function