[libvirt] [PATCH 4/4] util: consolidate QEMU and LXC memory related duplicate code