[Libvir] A few bug fix patches