[libvirt] [PATCH v5 11/36] qemu_process: Collect monitor code in single function