]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virnuma: Introduce virNumaCPUSetToNodeset()
authorMichal Privoznik <mprivozn@redhat.com>
Tue, 7 Mar 2023 13:05:27 +0000 (14:05 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Wed, 15 Mar 2023 11:46:16 +0000 (12:46 +0100)
commitb6cfd348e9fd1c748481416b1ef42b482db4b4cb
tree4c9d9f3fa12fab134d4d83960bf35508b0c5e1c8
parent01e5111c3cfee2358961c47f9edaa1eb421d2e03
virnuma: Introduce virNumaCPUSetToNodeset()

So far, we have a function that expands given list of NUMA nodes
into list of CPUs. But soon, we are going to need the inverse -
expand list of CPUs into list of NUMA nodes. Introduce
virNumaCPUSetToNodeset() for that.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Kristina Hanicova <khanicov@redhat.com>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
src/libvirt_private.syms
src/util/virnuma.c
src/util/virnuma.h