[libvirt PATCH v4 4/6] qemu: add monitor functions for handling file descriptors