]> xenbits.xensource.com Git - libvirt.git/commit
lxc: Report supported huge pages
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 25 Jul 2018 12:12:09 +0000 (14:12 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 26 Jul 2018 12:15:22 +0000 (14:15 +0200)
commit008cdddd7ce29c8a55fc8da2a612ce7b51a1914e
tree7aba4b471c37600a2ebbccc9fa65a4801f595372
parent832d620ed3700fda6bbde58b9adec81fcc1460f3
lxc: Report supported huge pages

There are two places where we report supported sizes of huge pages:

  /capabilities/host/cpu/pages
  /capabilities/host/topology/cells/cell/pages

The former aggregates sizes over all NUMA nodes while the latter
reports supported sizes only for given node. While we are
reporting per NUMA node sizes we are not reporting the aggregated
sizes. I've noticed this when wondering why doesn't allocpages
completer work.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Erik Skultety <eskultet@redhat.com>
src/lxc/lxc_conf.c