]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Handle non-sequential NUMA node numbers
authorPradipta Kr. Banerjee <pradipta.banerjee@gmail.com>
Tue, 11 Feb 2014 14:32:50 +0000 (14:32 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 11 Feb 2014 14:44:20 +0000 (14:44 +0000)
commitcd921cf07773411ad6c331fb42197d4ee2bcd5b6
treec28c173f2792c88550e073d27e32a4f5eb4729c6
parent037ffda3c7b8a7564ab9e567a3c8f4c4ae516ce5
Handle non-sequential NUMA node numbers

On some platforms like IBM PowerNV the NUMA node numbers can be
non-sequential. For eg. numactl --hardware o/p from such a machine looks
as given below

node distances:
   node   0   1  16  17
     0:  10  40  40  40
     1:  40  10  40  40
    16:  40  40  10  40
    17:  40  40  40  10

The NUMA nodes are 0,1,16,17

Libvirt uses sequential index as NUMA node numbers and this can
result in crash or incorrect results.

Signed-off-by: Shivaprasad G Bhat <sbhat@linux.vnet.ibm.com>
Signed-off-by: Pradipta Kr. Banerjee <bpradip@in.ibm.com>
src/conf/capabilities.c
src/qemu/qemu_driver.c
src/qemu/qemu_process.c