[libvirt] [PATCH] Fix handling of stream EOF