[libvirt] [PATCH 3/6] node_memory: Implement the internal APIs