]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
virNumaGetPages: Don't fail on huge page-less systems
authorMichal Privoznik <mprivozn@redhat.com>
Mon, 23 Jun 2014 13:46:31 +0000 (15:46 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Tue, 24 Jun 2014 09:50:32 +0000 (11:50 +0200)
commit2c78a270da9268dfc6e3af77c843acd3d70dd50b
treeba368ddddbfa880c0e9d0af809cca6f8304c3f79
parent3499eedd4bb6bb48db986e2404a05e2feeb3303a
virNumaGetPages: Don't fail on huge page-less systems

If we are running on a system that is not capable of huge pages (e.g.
because the kernel is not configured that way) we still try to open
"/sys/kernel/mm/hugepages/" which however does not exist. We should
be tolerant to this specific use case.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
src/util/virnuma.c