mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
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>
This commit is contained in:
committed by
Michal Privoznik
parent
1ad78434c7
commit
f4dc812c9e
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
1
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
-1
|
||||
@@ -0,0 +1 @@
|
||||
1
|
||||
@@ -0,0 +1 @@
|
||||
0
|
||||
@@ -0,0 +1 @@
|
||||
none
|
||||
@@ -0,0 +1 @@
|
||||
menu
|
||||
1
tests/nodeinfodata/linux-raspberrypi/cpu/kernel_max
Normal file
1
tests/nodeinfodata/linux-raspberrypi/cpu/kernel_max
Normal file
@@ -0,0 +1 @@
|
||||
0
|
||||
1
tests/nodeinfodata/linux-raspberrypi/cpu/offline
Normal file
1
tests/nodeinfodata/linux-raspberrypi/cpu/offline
Normal file
@@ -0,0 +1 @@
|
||||
|
||||
1
tests/nodeinfodata/linux-raspberrypi/cpu/online
Normal file
1
tests/nodeinfodata/linux-raspberrypi/cpu/online
Normal file
@@ -0,0 +1 @@
|
||||
0
|
||||
1
tests/nodeinfodata/linux-raspberrypi/cpu/possible
Normal file
1
tests/nodeinfodata/linux-raspberrypi/cpu/possible
Normal file
@@ -0,0 +1 @@
|
||||
0
|
||||
1
tests/nodeinfodata/linux-raspberrypi/cpu/present
Normal file
1
tests/nodeinfodata/linux-raspberrypi/cpu/present
Normal file
@@ -0,0 +1 @@
|
||||
0
|
||||
Reference in New Issue
Block a user