-
Bug
-
Resolution: Not a Bug
-
Undefined
-
None
-
rhel-9.6
-
No
-
Moderate
-
rhel-sst-virt-tools
-
ssg_virtualization
-
None
-
False
-
-
None
-
Red Hat Enterprise Linux
-
None
-
None
-
None
-
-
aarch64
-
None
What were you trying to do that didn't work?
On fujitsu's aarch64 host like "hpe-apollo80-01-n01.xxxx" the cpu cluster id from sys file is -1 like:
# cat /sys/devices/system/cpu/cpu0/topology/cluster_id -1
But libvirt (virsh capabilities) will handle these minus value to 0
# virsh capabilities <capabilities> <host> <uuid>8cdb9098-d03f-11e9-8001-2cd444ce8ca5</uuid> <cpu> ... <cpus num='12'> <cpu id='0' socket_id='0' die_id='0' cluster_id='0' core_id='0' siblings='0'/> ....
This may confuse the user.
Please provide the package NVR for which the bug is seen:
# rpm -q libvirt libvirt-10.10.0-6.el9.aarch64
How reproducible is this bug?:100%
Steps to reproduce
1. On fujitsu's aarch64 host like "hpe-apollo80-01-n01.xxxx" check cluster id of cpu 0
# cat /sys/devices/system/cpu/cpu0/topology/cluster_id -1
2. virsh capabilities cmd get different cluster id from sys file
# virsh capabilities <capabilities> <host> <uuid>8cdb9098-d03f-11e9-8001-2cd444ce8ca5</uuid> <cpu> ... <cpus num='12'> <cpu id='0' socket_id='0' die_id='0' cluster_id='0' core_id='0' siblings='0'/> ....
Expected results
virsh capabilities cmd get same cluster id with sys file
Actual results
virsh capabilities cmd get different cluster id from sys file
Additional info
Since the aarch64 host doesn't have die id for cpu in sys file, and virsh capabilites also assign default value 0 to it
# ll /sys/devices/system/cpu/cpu0/topology/die_id
ls: cannot access '/sys/devices/system/cpu/cpu0/topology/die_id': No such file or directory
# virsh capabilities <capabilities> <host> <uuid>8cdb9098-d03f-11e9-8001-2cd444ce8ca5</uuid> <cpu> ... <cpus num='12'> <cpu id='0' socket_id='0' die_id='0' cluster_id='0' core_id='0' siblings='0'/> ....