]> xenbits.xensource.com Git - people/liuw/libxenctrl-split/libvirt.git/commit
virNodeParseSocket: Take ARM into account
authorMichal Privoznik <miso.privoznik@gmail.com>
Tue, 17 Jun 2014 09:22:05 +0000 (11:22 +0200)
committerMichal Privoznik <mprivozn@redhat.com>
Fri, 20 Jun 2014 13:59:08 +0000 (15:59 +0200)
commitf4dc812c9e76a774f54bafd0230cedc74609d887
treea02892fa5146d2dc980fe281681c8361d8d357b2
parent1ad78434c7fd5ad06b599ab6a345732d9a1dfcb7
virNodeParseSocket: Take ARM into account

The virNodeParseSocket() function tries to get socked ID from
'topology/physical_package_id' file. However, on some architectures
the file contains the -1 constant which makes in turn libvirt think
the info extraction was unsuccessful. If that's the case, we need to
overwrite the obtained integer with zero like we are doing for other
architectures.

Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
18 files changed:
cfg.mk
src/nodeinfo.c
tests/nodeinfodata/linux-armv6l-raspberrypi.cpuinfo [new file with mode: 0644]
tests/nodeinfodata/linux-armv6l-raspberrypi.expected [new file with mode: 0644]
tests/nodeinfodata/linux-raspberrypi/cpu/cpu0/topology/core_id [new file with mode: 0644]
tests/nodeinfodata/linux-raspberrypi/cpu/cpu0/topology/core_siblings [new file with mode: 0644]
tests/nodeinfodata/linux-raspberrypi/cpu/cpu0/topology/core_siblings_list [new file with mode: 0644]
tests/nodeinfodata/linux-raspberrypi/cpu/cpu0/topology/physical_package_id [new file with mode: 0644]
tests/nodeinfodata/linux-raspberrypi/cpu/cpu0/topology/thread_siblings [new file with mode: 0644]
tests/nodeinfodata/linux-raspberrypi/cpu/cpu0/topology/thread_siblings_list [new file with mode: 0644]
tests/nodeinfodata/linux-raspberrypi/cpu/cpuidle/current_driver [new file with mode: 0644]
tests/nodeinfodata/linux-raspberrypi/cpu/cpuidle/current_governor_ro [new file with mode: 0644]
tests/nodeinfodata/linux-raspberrypi/cpu/kernel_max [new file with mode: 0644]
tests/nodeinfodata/linux-raspberrypi/cpu/offline [new file with mode: 0644]
tests/nodeinfodata/linux-raspberrypi/cpu/online [new file with mode: 0644]
tests/nodeinfodata/linux-raspberrypi/cpu/possible [new file with mode: 0644]
tests/nodeinfodata/linux-raspberrypi/cpu/present [new file with mode: 0644]
tests/nodeinfotest.c