[PATCH 01/14] virnuma: Move virNumaNodesetToCPUset() our of WITH_NUMACTL

Kristina Hanicova khanicov at redhat.com
Mon Mar 13 13:13:59 UTC 2023


On Wed, Mar 8, 2023 at 12:16 PM Michal Privoznik <mprivozn at redhat.com>
wrote:

> Technically, there's nothing libnuma specific about
> virNumaNodesetToCPUset(). It just implements a generic algorithm
> over virNumaGetNodeCPUs() (which is then libnuma dependant).
> Nevertheless, there's no need to have this function living inside
> WITH_NUMACTL block. Any error returned from virNumaGetNodeCPUs()
> (including the one that !WITH_NUMACTL stub returns) is propagated
> properly.
>
> Move the function out of the block into a generic one and drop
> the !WITH_NUMACTL stub.
>
> Signed-off-by: Michal Privoznik <mprivozn at redhat.com>
> ---
>  src/util/virnuma.c | 115 +++++++++++++++++++++------------------------
>  1 file changed, 53 insertions(+), 62 deletions(-)
>


Reviewed-by: Kristina Hanicova <khanicov at redhat.com>

Kristina
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20230313/a280b4b6/attachment.htm>


More information about the libvir-list mailing list