[Libvir] [PATCH] write(2) may write less than the total requested