[libvirt] [PATCH v4 16/37] qemu_process: Collect monitor code in single function