mirror of https://gitee.com/openkylin/libvirt.git
tests: add host CPU data files for validating die_id
Only Cascadelake-AP CPUs appear to report "die_id" values != 0 on Linux right now - AMD EPYC's don't report "die_id" (at least with Fedora 31 kernel). Lacking access to Cascadelake-AP CPUs, this test data was from a Fedora 31 QEMU guest launched with -cpu qemu64 -smp sockets=2,dies=3,cores=2,threads=1 Ideally we'd replace this data with some from a real machine reporting "die_id", to ensure we're not mislead by QEMU's impl. Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com> Reviewed-by: Jiri Denemark <jdenemar@redhat.com> Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
parent
7b79ee2f78
commit
0169f5ecde
|
@ -0,0 +1 @@
|
|||
../../../virhostcpudata/linux-with-die/cpu
|
|
@ -0,0 +1 @@
|
|||
../../../virhostcpudata/linux-with-die/node
|
|
@ -0,0 +1,35 @@
|
|||
<capabilities>
|
||||
|
||||
<host>
|
||||
<cpu>
|
||||
<arch>x86_64</arch>
|
||||
</cpu>
|
||||
<power_management/>
|
||||
<iommu support='no'/>
|
||||
<topology>
|
||||
<cells num='1'>
|
||||
<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='12'>
|
||||
<cpu id='0' socket_id='0' die_id='0' core_id='0' siblings='0'/>
|
||||
<cpu id='1' socket_id='0' die_id='0' core_id='1' siblings='1'/>
|
||||
<cpu id='2' socket_id='0' die_id='1' core_id='0' siblings='2'/>
|
||||
<cpu id='3' socket_id='0' die_id='1' core_id='1' siblings='3'/>
|
||||
<cpu id='4' socket_id='0' die_id='2' core_id='0' siblings='4'/>
|
||||
<cpu id='5' socket_id='0' die_id='2' core_id='1' siblings='5'/>
|
||||
<cpu id='6' socket_id='1' die_id='0' core_id='0' siblings='6'/>
|
||||
<cpu id='7' socket_id='1' die_id='0' core_id='1' siblings='7'/>
|
||||
<cpu id='8' socket_id='1' die_id='1' core_id='0' siblings='8'/>
|
||||
<cpu id='9' socket_id='1' die_id='1' core_id='1' siblings='9'/>
|
||||
<cpu id='10' socket_id='1' die_id='2' core_id='0' siblings='10'/>
|
||||
<cpu id='11' socket_id='1' die_id='2' core_id='1' siblings='11'/>
|
||||
</cpus>
|
||||
</cell>
|
||||
</cells>
|
||||
</topology>
|
||||
</host>
|
||||
|
||||
</capabilities>
|
|
@ -102,6 +102,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("caches", VIR_ARCH_X86_64, true, true);
|
||||
|
||||
|
|
|
@ -0,0 +1 @@
|
|||
001
|
|
@ -0,0 +1 @@
|
|||
0
|
|
@ -0,0 +1 @@
|
|||
0
|
|
@ -0,0 +1 @@
|
|||
03f
|
|
@ -0,0 +1 @@
|
|||
0-5
|
|
@ -0,0 +1 @@
|
|||
003
|
|
@ -0,0 +1 @@
|
|||
0-1
|
|
@ -0,0 +1 @@
|
|||
0
|
|
@ -0,0 +1 @@
|
|||
03f
|
|
@ -0,0 +1 @@
|
|||
0-5
|
|
@ -0,0 +1 @@
|
|||
0
|
|
@ -0,0 +1 @@
|
|||
001
|
|
@ -0,0 +1 @@
|
|||
0
|
|
@ -0,0 +1 @@
|
|||
1
|
|
@ -0,0 +1 @@
|
|||
002
|
|
@ -0,0 +1 @@
|
|||
1
|
|
@ -0,0 +1 @@
|
|||
1
|
|
@ -0,0 +1 @@
|
|||
03f
|
|
@ -0,0 +1 @@
|
|||
0-5
|
|
@ -0,0 +1 @@
|
|||
003
|
|
@ -0,0 +1 @@
|
|||
0-1
|
|
@ -0,0 +1 @@
|
|||
0
|
|
@ -0,0 +1 @@
|
|||
03f
|
|
@ -0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
|||
03f
|
|
@ -0,0 +1 @@
|
|||
0-5
|
|
@ -0,0 +1 @@
|
|||
0
|
|
@ -0,0 +1 @@
|
|||
004
|
|
@ -0,0 +1 @@
|
|||
2
|
|
@ -0,0 +1 @@
|
|||
1
|
|
@ -0,0 +1 @@
|
|||
008
|
|
@ -0,0 +1 @@
|
|||
3
|
|
@ -0,0 +1 @@
|
|||
1
|
|
@ -0,0 +1 @@
|
|||
03f
|
|
@ -0,0 +1 @@
|
|||
0-5
|
|
@ -0,0 +1 @@
|
|||
00c
|
|
@ -0,0 +1 @@
|
|||
2-3
|
|
@ -0,0 +1 @@
|
|||
1
|
|
@ -0,0 +1 @@
|
|||
03f
|
|
@ -0,0 +1 @@
|
|||
0-5
|
|
@ -0,0 +1 @@
|
|||
0
|
|
@ -0,0 +1 @@
|
|||
008
|
|
@ -0,0 +1 @@
|
|||
3
|
|
@ -0,0 +1 @@
|
|||
1
|
|
@ -0,0 +1 @@
|
|||
010
|
|
@ -0,0 +1 @@
|
|||
4
|
|
@ -0,0 +1 @@
|
|||
0
|
|
@ -0,0 +1 @@
|
|||
03f
|
|
@ -0,0 +1 @@
|
|||
0-5
|
|
@ -0,0 +1 @@
|
|||
030
|
|
@ -0,0 +1 @@
|
|||
4-5
|
|
@ -0,0 +1 @@
|
|||
2
|
|
@ -0,0 +1 @@
|
|||
03f
|
|
@ -0,0 +1 @@
|
|||
0-5
|
|
@ -0,0 +1 @@
|
|||
0
|
|
@ -0,0 +1 @@
|
|||
010
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue