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:
Andrea Bolognani 2024-01-05 15:07:06 +01:00
parent 9139cf44d4
commit fb81a56f32
85 changed files with 194 additions and 0 deletions

View File

@ -0,0 +1 @@
../../../virhostcpudata/linux-with-clusters/cpu

View File

@ -0,0 +1 @@
../../../virhostcpudata/linux-with-clusters/node

View 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>

View File

@ -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);

View 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

View File

@ -0,0 +1 @@
CPUs: 8/8, MHz: 0, Nodes: 2, Sockets: 1, Cores: 2, Threads: 2

View File

@ -0,0 +1 @@
256

View File

@ -0,0 +1 @@
256

View File

@ -0,0 +1 @@
257

View File

@ -0,0 +1 @@
257

View File

@ -0,0 +1 @@
0-223

View File

@ -0,0 +1 @@
0-223

View File

@ -0,0 +1 @@
../../cpu/cpu0

View File

@ -0,0 +1 @@
../../cpu/cpu1

View File

@ -0,0 +1 @@
../../cpu/cpu2

View File

@ -0,0 +1 @@
../../cpu/cpu3

View File

@ -0,0 +1 @@
0-3

View File

@ -0,0 +1 @@
../../cpu/cpu4

View File

@ -0,0 +1 @@
../../cpu/cpu5

View File

@ -0,0 +1 @@
../../cpu/cpu6

View File

@ -0,0 +1 @@
../../cpu/cpu7

View File

@ -0,0 +1 @@
4-7

View File

@ -0,0 +1 @@
0-1

View File

@ -0,0 +1 @@
0-1

View File

@ -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)