[libvirt] PATCH: Centralize some duplicated NUMA code