]> git.ipfire.org Git - thirdparty/libvirt.git/commit
utils: Remove arbitrary limit on socket_id/core_id
authorAndrea Bolognani <abologna@redhat.com>
Fri, 3 Aug 2018 08:15:16 +0000 (10:15 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Tue, 14 Aug 2018 13:52:34 +0000 (15:52 +0200)
commitba35ac2ebbc7f94abc50ffbf1d681458e2406444
tree266454cc934defe5eb3eabb4089c5fe40231e03c
parent089849d3c43855f7daa0a1f1dfde814f0c4087a0
utils: Remove arbitrary limit on socket_id/core_id

While in most cases the values are going to be much
smaller than our arbitrary 4096 limit, there is really
no guarantee that would be the case: in fact, a few
aarch64 servers have been spotted in the wild with
core_id as high as 6216.

Take advantage of virBitmap's ability to automatically
alter its size at runtime to accomodate such values.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
src/util/virhostcpu.c