[libvirt] [PATCH RFC 11/22] qemu_process: Collect monitor code in single function