[Libvir] [PATCH] Enhance virBuffer code