mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-21 21:25:25 +00:00
tests: Add hostcpudata for machine with CPU clusters
The data is taken from an HPE Apollo 70 machine, which uses aarch64 CPUs. It is interesting for us because non-dummy information about CPU clusters is exposed through sysfs. In order to keep things reasonable, the data was manually modified so that only 8 of the original 224 CPUs are included. Care has been taken to ensure that the topology is otherwise unaltered. Signed-off-by: Andrea Bolognani <abologna@redhat.com> Reviewed-by: Peter Krempa <pkrempa@redhat.com>
This commit is contained in:
parent
9139cf44d4
commit
fb81a56f32
1
tests/vircaps2xmldata/linux-basic-clusters/system/cpu
Symbolic link
1
tests/vircaps2xmldata/linux-basic-clusters/system/cpu
Symbolic link
@ -0,0 +1 @@
|
||||
../../../virhostcpudata/linux-with-clusters/cpu
|
1
tests/vircaps2xmldata/linux-basic-clusters/system/node
Symbolic link
1
tests/vircaps2xmldata/linux-basic-clusters/system/node
Symbolic link
@ -0,0 +1 @@
|
||||
../../../virhostcpudata/linux-with-clusters/node
|
39
tests/vircaps2xmldata/vircaps-aarch64-basic-clusters.xml
Normal file
39
tests/vircaps2xmldata/vircaps-aarch64-basic-clusters.xml
Normal file
@ -0,0 +1,39 @@
|
||||
<capabilities>
|
||||
|
||||
<host>
|
||||
<cpu>
|
||||
<arch>aarch64</arch>
|
||||
</cpu>
|
||||
<power_management/>
|
||||
<iommu support='no'/>
|
||||
<topology>
|
||||
<cells num='2'>
|
||||
<cell id='0'>
|
||||
<memory unit='KiB'>1048576</memory>
|
||||
<pages unit='KiB' size='4'>2048</pages>
|
||||
<pages unit='KiB' size='2048'>4096</pages>
|
||||
<pages unit='KiB' size='1048576'>6144</pages>
|
||||
<cpus num='4'>
|
||||
<cpu id='0' socket_id='36' die_id='0' core_id='0' siblings='0-1'/>
|
||||
<cpu id='1' socket_id='36' die_id='0' core_id='0' siblings='0-1'/>
|
||||
<cpu id='2' socket_id='36' die_id='0' core_id='1' siblings='2-3'/>
|
||||
<cpu id='3' socket_id='36' die_id='0' core_id='1' siblings='2-3'/>
|
||||
</cpus>
|
||||
</cell>
|
||||
<cell id='1'>
|
||||
<memory unit='KiB'>2097152</memory>
|
||||
<pages unit='KiB' size='4'>4096</pages>
|
||||
<pages unit='KiB' size='2048'>6144</pages>
|
||||
<pages unit='KiB' size='1048576'>8192</pages>
|
||||
<cpus num='4'>
|
||||
<cpu id='4' socket_id='3180' die_id='0' core_id='256' siblings='4-5'/>
|
||||
<cpu id='5' socket_id='3180' die_id='0' core_id='256' siblings='4-5'/>
|
||||
<cpu id='6' socket_id='3180' die_id='0' core_id='257' siblings='6-7'/>
|
||||
<cpu id='7' socket_id='3180' die_id='0' core_id='257' siblings='6-7'/>
|
||||
</cpus>
|
||||
</cell>
|
||||
</cells>
|
||||
</topology>
|
||||
</host>
|
||||
|
||||
</capabilities>
|
@ -93,6 +93,7 @@ mymain(void)
|
||||
DO_TEST_FULL("basic", VIR_ARCH_X86_64, false, false);
|
||||
DO_TEST_FULL("basic", VIR_ARCH_AARCH64, true, false);
|
||||
DO_TEST_FULL("basic-dies", VIR_ARCH_X86_64, false, false);
|
||||
DO_TEST_FULL("basic-clusters", VIR_ARCH_AARCH64, false, false);
|
||||
|
||||
DO_TEST_FULL("caches", VIR_ARCH_X86_64, true, true);
|
||||
|
||||
|
72
tests/virhostcpudata/linux-aarch64-with-clusters.cpuinfo
Normal file
72
tests/virhostcpudata/linux-aarch64-with-clusters.cpuinfo
Normal file
@ -0,0 +1,72 @@
|
||||
processor : 0
|
||||
BogoMIPS : 400.00
|
||||
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics cpuid asimdrdm
|
||||
CPU implementer : 0x43
|
||||
CPU architecture: 8
|
||||
CPU variant : 0x1
|
||||
CPU part : 0x0af
|
||||
CPU revision : 1
|
||||
|
||||
processor : 1
|
||||
BogoMIPS : 400.00
|
||||
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics cpuid asimdrdm
|
||||
CPU implementer : 0x43
|
||||
CPU architecture: 8
|
||||
CPU variant : 0x1
|
||||
CPU part : 0x0af
|
||||
CPU revision : 1
|
||||
|
||||
processor : 2
|
||||
BogoMIPS : 400.00
|
||||
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics cpuid asimdrdm
|
||||
CPU implementer : 0x43
|
||||
CPU architecture: 8
|
||||
CPU variant : 0x1
|
||||
CPU part : 0x0af
|
||||
CPU revision : 1
|
||||
|
||||
processor : 3
|
||||
BogoMIPS : 400.00
|
||||
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics cpuid asimdrdm
|
||||
CPU implementer : 0x43
|
||||
CPU architecture: 8
|
||||
CPU variant : 0x1
|
||||
CPU part : 0x0af
|
||||
CPU revision : 1
|
||||
|
||||
processor : 4
|
||||
BogoMIPS : 400.00
|
||||
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics cpuid asimdrdm
|
||||
CPU implementer : 0x43
|
||||
CPU architecture: 8
|
||||
CPU variant : 0x1
|
||||
CPU part : 0x0af
|
||||
CPU revision : 1
|
||||
|
||||
processor : 5
|
||||
BogoMIPS : 400.00
|
||||
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics cpuid asimdrdm
|
||||
CPU implementer : 0x43
|
||||
CPU architecture: 8
|
||||
CPU variant : 0x1
|
||||
CPU part : 0x0af
|
||||
CPU revision : 1
|
||||
|
||||
processor : 6
|
||||
BogoMIPS : 400.00
|
||||
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics cpuid asimdrdm
|
||||
CPU implementer : 0x43
|
||||
CPU architecture: 8
|
||||
CPU variant : 0x1
|
||||
CPU part : 0x0af
|
||||
CPU revision : 1
|
||||
|
||||
processor : 7
|
||||
BogoMIPS : 400.00
|
||||
Features : fp asimd evtstrm aes pmull sha1 sha2 crc32 atomics cpuid asimdrdm
|
||||
CPU implementer : 0x43
|
||||
CPU architecture: 8
|
||||
CPU variant : 0x1
|
||||
CPU part : 0x0af
|
||||
CPU revision : 1
|
||||
|
@ -0,0 +1 @@
|
||||
CPUs: 8/8, MHz: 0, Nodes: 2, Sockets: 1, Cores: 2, Threads: 2
|
@ -0,0 +1 @@
|
||||
0-1
|
@ -0,0 +1 @@
|
||||
0
|
@ -0,0 +1 @@
|
||||
0-1
|
@ -0,0 +1 @@
|
||||
0
|
@ -0,0 +1 @@
|
||||
0-3
|
@ -0,0 +1 @@
|
||||
0-3
|
@ -0,0 +1 @@
|
||||
36
|
@ -0,0 +1 @@
|
||||
0-1
|
@ -0,0 +1 @@
|
||||
0-1
|
@ -0,0 +1 @@
|
||||
0
|
@ -0,0 +1 @@
|
||||
0-1
|
@ -0,0 +1 @@
|
||||
0
|
@ -0,0 +1 @@
|
||||
0-3
|
@ -0,0 +1 @@
|
||||
0-3
|
@ -0,0 +1 @@
|
||||
36
|
@ -0,0 +1 @@
|
||||
0-1
|
@ -0,0 +1 @@
|
||||
2-3
|
@ -0,0 +1 @@
|
||||
1
|
@ -0,0 +1 @@
|
||||
2-3
|
@ -0,0 +1 @@
|
||||
1
|
@ -0,0 +1 @@
|
||||
0-3
|
@ -0,0 +1 @@
|
||||
0-3
|
@ -0,0 +1 @@
|
||||
36
|
@ -0,0 +1 @@
|
||||
2-3
|
@ -0,0 +1 @@
|
||||
2-3
|
@ -0,0 +1 @@
|
||||
1
|
@ -0,0 +1 @@
|
||||
2-3
|
@ -0,0 +1 @@
|
||||
1
|
@ -0,0 +1 @@
|
||||
0-3
|
@ -0,0 +1 @@
|
||||
0-3
|
@ -0,0 +1 @@
|
||||
36
|
@ -0,0 +1 @@
|
||||
2-3
|
@ -0,0 +1 @@
|
||||
4-5
|
@ -0,0 +1 @@
|
||||
256
|
@ -0,0 +1 @@
|
||||
4-5
|
@ -0,0 +1 @@
|
||||
256
|
@ -0,0 +1 @@
|
||||
4-7
|
@ -0,0 +1 @@
|
||||
4-7
|
@ -0,0 +1 @@
|
||||
3180
|
@ -0,0 +1 @@
|
||||
4-5
|
@ -0,0 +1 @@
|
||||
4-5
|
@ -0,0 +1 @@
|
||||
256
|
@ -0,0 +1 @@
|
||||
4-5
|
@ -0,0 +1 @@
|
||||
256
|
@ -0,0 +1 @@
|
||||
4-7
|
@ -0,0 +1 @@
|
||||
4-7
|
@ -0,0 +1 @@
|
||||
3180
|
@ -0,0 +1 @@
|
||||
4-5
|
@ -0,0 +1 @@
|
||||
6-7
|
@ -0,0 +1 @@
|
||||
257
|
@ -0,0 +1 @@
|
||||
6-7
|
@ -0,0 +1 @@
|
||||
257
|
@ -0,0 +1 @@
|
||||
4-7
|
@ -0,0 +1 @@
|
||||
4-7
|
@ -0,0 +1 @@
|
||||
3180
|
@ -0,0 +1 @@
|
||||
6-7
|
@ -0,0 +1 @@
|
||||
6-7
|
@ -0,0 +1 @@
|
||||
257
|
@ -0,0 +1 @@
|
||||
6-7
|
@ -0,0 +1 @@
|
||||
257
|
@ -0,0 +1 @@
|
||||
4-7
|
@ -0,0 +1 @@
|
||||
4-7
|
@ -0,0 +1 @@
|
||||
3180
|
@ -0,0 +1 @@
|
||||
6-7
|
1
tests/virhostcpudata/linux-with-clusters/cpu/online
Normal file
1
tests/virhostcpudata/linux-with-clusters/cpu/online
Normal file
@ -0,0 +1 @@
|
||||
0-223
|
1
tests/virhostcpudata/linux-with-clusters/cpu/present
Normal file
1
tests/virhostcpudata/linux-with-clusters/cpu/present
Normal file
@ -0,0 +1 @@
|
||||
0-223
|
1
tests/virhostcpudata/linux-with-clusters/node/node0/cpu0
Symbolic link
1
tests/virhostcpudata/linux-with-clusters/node/node0/cpu0
Symbolic link
@ -0,0 +1 @@
|
||||
../../cpu/cpu0
|
1
tests/virhostcpudata/linux-with-clusters/node/node0/cpu1
Symbolic link
1
tests/virhostcpudata/linux-with-clusters/node/node0/cpu1
Symbolic link
@ -0,0 +1 @@
|
||||
../../cpu/cpu1
|
1
tests/virhostcpudata/linux-with-clusters/node/node0/cpu2
Symbolic link
1
tests/virhostcpudata/linux-with-clusters/node/node0/cpu2
Symbolic link
@ -0,0 +1 @@
|
||||
../../cpu/cpu2
|
1
tests/virhostcpudata/linux-with-clusters/node/node0/cpu3
Symbolic link
1
tests/virhostcpudata/linux-with-clusters/node/node0/cpu3
Symbolic link
@ -0,0 +1 @@
|
||||
../../cpu/cpu3
|
@ -0,0 +1 @@
|
||||
0-3
|
1
tests/virhostcpudata/linux-with-clusters/node/node1/cpu4
Symbolic link
1
tests/virhostcpudata/linux-with-clusters/node/node1/cpu4
Symbolic link
@ -0,0 +1 @@
|
||||
../../cpu/cpu4
|
1
tests/virhostcpudata/linux-with-clusters/node/node1/cpu5
Symbolic link
1
tests/virhostcpudata/linux-with-clusters/node/node1/cpu5
Symbolic link
@ -0,0 +1 @@
|
||||
../../cpu/cpu5
|
1
tests/virhostcpudata/linux-with-clusters/node/node1/cpu6
Symbolic link
1
tests/virhostcpudata/linux-with-clusters/node/node1/cpu6
Symbolic link
@ -0,0 +1 @@
|
||||
../../cpu/cpu6
|
1
tests/virhostcpudata/linux-with-clusters/node/node1/cpu7
Symbolic link
1
tests/virhostcpudata/linux-with-clusters/node/node1/cpu7
Symbolic link
@ -0,0 +1 @@
|
||||
../../cpu/cpu7
|
@ -0,0 +1 @@
|
||||
4-7
|
1
tests/virhostcpudata/linux-with-clusters/node/online
Normal file
1
tests/virhostcpudata/linux-with-clusters/node/online
Normal file
@ -0,0 +1 @@
|
||||
0-1
|
1
tests/virhostcpudata/linux-with-clusters/node/possible
Normal file
1
tests/virhostcpudata/linux-with-clusters/node/possible
Normal file
@ -0,0 +1 @@
|
||||
0-1
|
@ -273,6 +273,7 @@ mymain(void)
|
||||
{"subcores3", VIR_ARCH_PPC64},
|
||||
{"with-frequency", VIR_ARCH_S390X},
|
||||
{"with-die", VIR_ARCH_X86_64},
|
||||
{"with-clusters", VIR_ARCH_AARCH64},
|
||||
};
|
||||
|
||||
if (virInitialize() < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user