[Libvir] [PATCH] Move common buffer code to lib/ directory