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