[Libvir] [PATCH] 2/2: Use safewrite in place of write, in many cases.