]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virhostmem: Let caller pass max NUMA node to virHostMemAllocPages
authorMichal Privoznik <mprivozn@redhat.com>
Thu, 19 Aug 2021 13:55:19 +0000 (15:55 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Mon, 23 Aug 2021 12:00:15 +0000 (14:00 +0200)
commitebec3de97d4c849a61168e43755c4ae341dbb975
treed0e9bfd7bf91481cc6e7ad0975897d434afe0115
parent59e3584f716429796f4cc43b14be79f3dd381d20
virhostmem: Let caller pass max NUMA node to virHostMemAllocPages

In all three cases (LXC, QEMU and VBox drivers) the caller has
access to host capabilities and thus know the maximum NUMA node.
This means, that virHostMemAllocPages() doesn't have to query
it. Querying may fail if libvirt was compiled without numactl
support.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/lxc/lxc_driver.c
src/qemu/qemu_driver.c
src/util/virhostmem.c
src/util/virhostmem.h
src/vbox/vbox_common.c