Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
c2db8a66
L
libvirt
项目概览
openeuler
/
libvirt
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
libvirt
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c2db8a66
编写于
6月 01, 2016
作者:
J
Jiri Denemark
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tests: Add CPU detection test for Intel Xeon E3-1245
Signed-off-by:
N
Jiri Denemark
<
jdenemar@redhat.com
>
上级
d139a2f7
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
210 addition
and
0 deletion
+210
-0
tests/cputest.c
tests/cputest.c
+1
-0
tests/cputestdata/x86-cpuid-Xeon-E3-1245-guest.xml
tests/cputestdata/x86-cpuid-Xeon-E3-1245-guest.xml
+30
-0
tests/cputestdata/x86-cpuid-Xeon-E3-1245-host.xml
tests/cputestdata/x86-cpuid-Xeon-E3-1245-host.xml
+30
-0
tests/cputestdata/x86-cpuid-Xeon-E3-1245-json.xml
tests/cputestdata/x86-cpuid-Xeon-E3-1245-json.xml
+15
-0
tests/cputestdata/x86-cpuid-Xeon-E3-1245.json
tests/cputestdata/x86-cpuid-Xeon-E3-1245.json
+88
-0
tests/cputestdata/x86-cpuid-Xeon-E3-1245.xml
tests/cputestdata/x86-cpuid-Xeon-E3-1245.xml
+46
-0
未找到文件。
tests/cputest.c
浏览文件 @
c2db8a66
...
@@ -868,6 +868,7 @@ mymain(void)
...
@@ -868,6 +868,7 @@ mymain(void)
DO_TEST_CPUID
(
"x86"
,
"Pentium-P6100"
,
false
);
DO_TEST_CPUID
(
"x86"
,
"Pentium-P6100"
,
false
);
DO_TEST_CPUID
(
"x86"
,
"Phenom-B95"
,
true
);
DO_TEST_CPUID
(
"x86"
,
"Phenom-B95"
,
true
);
DO_TEST_CPUID
(
"x86"
,
"Xeon-5110"
,
false
);
DO_TEST_CPUID
(
"x86"
,
"Xeon-5110"
,
false
);
DO_TEST_CPUID
(
"x86"
,
"Xeon-E3-1245"
,
true
);
#if WITH_QEMU && WITH_YAJL
#if WITH_QEMU && WITH_YAJL
qemuTestDriverFree
(
&
driver
);
qemuTestDriverFree
(
&
driver
);
...
...
tests/cputestdata/x86-cpuid-Xeon-E3-1245-guest.xml
0 → 100644
浏览文件 @
c2db8a66
<cpu
mode=
'custom'
match=
'exact'
>
<arch>
x86_64
</arch>
<model
fallback=
'forbid'
>
Broadwell
</model>
<vendor>
Intel
</vendor>
<feature
policy=
'require'
name=
'vme'
/>
<feature
policy=
'require'
name=
'ds'
/>
<feature
policy=
'require'
name=
'acpi'
/>
<feature
policy=
'require'
name=
'ss'
/>
<feature
policy=
'require'
name=
'ht'
/>
<feature
policy=
'require'
name=
'tm'
/>
<feature
policy=
'require'
name=
'pbe'
/>
<feature
policy=
'require'
name=
'dtes64'
/>
<feature
policy=
'require'
name=
'monitor'
/>
<feature
policy=
'require'
name=
'ds_cpl'
/>
<feature
policy=
'require'
name=
'vmx'
/>
<feature
policy=
'require'
name=
'smx'
/>
<feature
policy=
'require'
name=
'est'
/>
<feature
policy=
'require'
name=
'tm2'
/>
<feature
policy=
'require'
name=
'xtpr'
/>
<feature
policy=
'require'
name=
'pdcm'
/>
<feature
policy=
'require'
name=
'osxsave'
/>
<feature
policy=
'require'
name=
'f16c'
/>
<feature
policy=
'require'
name=
'rdrand'
/>
<feature
policy=
'require'
name=
'pdpe1gb'
/>
<feature
policy=
'require'
name=
'abm'
/>
<feature
policy=
'require'
name=
'tsc_adjust'
/>
<feature
policy=
'require'
name=
'mpx'
/>
<feature
policy=
'require'
name=
'clflushopt'
/>
<feature
policy=
'require'
name=
'invtsc'
/>
</cpu>
tests/cputestdata/x86-cpuid-Xeon-E3-1245-host.xml
0 → 100644
浏览文件 @
c2db8a66
<cpu>
<arch>
x86_64
</arch>
<model>
Broadwell
</model>
<vendor>
Intel
</vendor>
<feature
name=
'vme'
/>
<feature
name=
'ds'
/>
<feature
name=
'acpi'
/>
<feature
name=
'ss'
/>
<feature
name=
'ht'
/>
<feature
name=
'tm'
/>
<feature
name=
'pbe'
/>
<feature
name=
'dtes64'
/>
<feature
name=
'monitor'
/>
<feature
name=
'ds_cpl'
/>
<feature
name=
'vmx'
/>
<feature
name=
'smx'
/>
<feature
name=
'est'
/>
<feature
name=
'tm2'
/>
<feature
name=
'xtpr'
/>
<feature
name=
'pdcm'
/>
<feature
name=
'osxsave'
/>
<feature
name=
'f16c'
/>
<feature
name=
'rdrand'
/>
<feature
name=
'pdpe1gb'
/>
<feature
name=
'abm'
/>
<feature
name=
'tsc_adjust'
/>
<feature
name=
'mpx'
/>
<feature
name=
'clflushopt'
/>
<feature
name=
'invtsc'
/>
</cpu>
tests/cputestdata/x86-cpuid-Xeon-E3-1245-json.xml
0 → 100644
浏览文件 @
c2db8a66
<cpu
mode=
'custom'
match=
'exact'
>
<arch>
x86_64
</arch>
<model
fallback=
'forbid'
>
Broadwell
</model>
<feature
policy=
'require'
name=
'vme'
/>
<feature
policy=
'require'
name=
'ss'
/>
<feature
policy=
'require'
name=
'vmx'
/>
<feature
policy=
'require'
name=
'f16c'
/>
<feature
policy=
'require'
name=
'rdrand'
/>
<feature
policy=
'require'
name=
'hypervisor'
/>
<feature
policy=
'require'
name=
'pdpe1gb'
/>
<feature
policy=
'require'
name=
'abm'
/>
<feature
policy=
'require'
name=
'tsc_adjust'
/>
<feature
policy=
'require'
name=
'mpx'
/>
<feature
policy=
'require'
name=
'clflushopt'
/>
</cpu>
tests/cputestdata/x86-cpuid-Xeon-E3-1245.json
0 → 100644
浏览文件 @
c2db8a66
{
"return"
:
[
{
"cpuid-register"
:
"EAX"
,
"cpuid-input-eax"
:
6
,
"features"
:
4
},
{
"cpuid-register"
:
"EAX"
,
"cpuid-input-ecx"
:
1
,
"cpuid-input-eax"
:
13
,
"features"
:
7
},
{
"cpuid-register"
:
"EDX"
,
"cpuid-input-eax"
:
2147483658
,
"features"
:
0
},
{
"cpuid-register"
:
"EAX"
,
"cpuid-input-eax"
:
1073741825
,
"features"
:
16777467
},
{
"cpuid-register"
:
"EDX"
,
"cpuid-input-eax"
:
3221225473
,
"features"
:
0
},
{
"cpuid-register"
:
"EDX"
,
"cpuid-input-eax"
:
2147483655
,
"features"
:
0
},
{
"cpuid-register"
:
"ECX"
,
"cpuid-input-eax"
:
2147483649
,
"features"
:
289
},
{
"cpuid-register"
:
"EDX"
,
"cpuid-input-eax"
:
2147483649
,
"features"
:
739248128
},
{
"cpuid-register"
:
"ECX"
,
"cpuid-input-ecx"
:
0
,
"cpuid-input-eax"
:
7
,
"features"
:
0
},
{
"cpuid-register"
:
"EBX"
,
"cpuid-input-ecx"
:
0
,
"cpuid-input-eax"
:
7
,
"features"
:
10244027
},
{
"cpuid-register"
:
"ECX"
,
"cpuid-input-eax"
:
1
,
"features"
:
4160369187
},
{
"cpuid-register"
:
"EDX"
,
"cpuid-input-eax"
:
1
,
"features"
:
260832255
}
],
"id"
:
"feature-words"
}
{
"return"
:
6
,
"id"
:
"family"
}
{
"return"
:
94
,
"id"
:
"model"
}
{
"return"
:
3
,
"id"
:
"stepping"
}
{
"return"
:
"Intel(R) Xeon(R) CPU E3-1245 v5 @ 3.50GHz"
,
"id"
:
"model-id"
}
tests/cputestdata/x86-cpuid-Xeon-E3-1245.xml
0 → 100644
浏览文件 @
c2db8a66
<!-- Intel(R) Xeon(R) CPU E3-1245 v5 @ 3.50GHz -->
<cpudata
arch=
'x86'
>
<cpuid
eax_in=
'0x00000000'
ecx_in=
'0x00'
eax=
'0x00000016'
ebx=
'0x756e6547'
ecx=
'0x6c65746e'
edx=
'0x49656e69'
/>
<cpuid
eax_in=
'0x00000001'
ecx_in=
'0x00'
eax=
'0x000506e3'
ebx=
'0x00100800'
ecx=
'0x7ffafbff'
edx=
'0xbfebfbff'
/>
<cpuid
eax_in=
'0x00000002'
ecx_in=
'0x00'
eax=
'0x76036301'
ebx=
'0x00f0b5ff'
ecx=
'0x00000000'
edx=
'0x00c30000'
/>
<cpuid
eax_in=
'0x00000003'
ecx_in=
'0x00'
eax=
'0x00000000'
ebx=
'0x00000000'
ecx=
'0x00000000'
edx=
'0x00000000'
/>
<cpuid
eax_in=
'0x00000004'
ecx_in=
'0x00'
eax=
'0x1c004121'
ebx=
'0x01c0003f'
ecx=
'0x0000003f'
edx=
'0x00000000'
/>
<cpuid
eax_in=
'0x00000004'
ecx_in=
'0x01'
eax=
'0x1c004122'
ebx=
'0x01c0003f'
ecx=
'0x0000003f'
edx=
'0x00000000'
/>
<cpuid
eax_in=
'0x00000004'
ecx_in=
'0x02'
eax=
'0x1c004143'
ebx=
'0x00c0003f'
ecx=
'0x000003ff'
edx=
'0x00000000'
/>
<cpuid
eax_in=
'0x00000004'
ecx_in=
'0x03'
eax=
'0x1c03c163'
ebx=
'0x03c0003f'
ecx=
'0x00001fff'
edx=
'0x00000006'
/>
<cpuid
eax_in=
'0x00000005'
ecx_in=
'0x00'
eax=
'0x00000040'
ebx=
'0x00000040'
ecx=
'0x00000003'
edx=
'0x00142120'
/>
<cpuid
eax_in=
'0x00000006'
ecx_in=
'0x00'
eax=
'0x000027f7'
ebx=
'0x00000002'
ecx=
'0x00000009'
edx=
'0x00000000'
/>
<cpuid
eax_in=
'0x00000007'
ecx_in=
'0x00'
eax=
'0x00000000'
ebx=
'0x029c6fbf'
ecx=
'0x00000000'
edx=
'0x00000000'
/>
<cpuid
eax_in=
'0x00000008'
ecx_in=
'0x00'
eax=
'0x00000000'
ebx=
'0x00000000'
ecx=
'0x00000000'
edx=
'0x00000000'
/>
<cpuid
eax_in=
'0x00000009'
ecx_in=
'0x00'
eax=
'0x00000000'
ebx=
'0x00000000'
ecx=
'0x00000000'
edx=
'0x00000000'
/>
<cpuid
eax_in=
'0x0000000a'
ecx_in=
'0x00'
eax=
'0x07300404'
ebx=
'0x00000000'
ecx=
'0x00000000'
edx=
'0x00000603'
/>
<cpuid
eax_in=
'0x0000000b'
ecx_in=
'0x00'
eax=
'0x00000001'
ebx=
'0x00000002'
ecx=
'0x00000100'
edx=
'0x00000000'
/>
<cpuid
eax_in=
'0x0000000b'
ecx_in=
'0x01'
eax=
'0x00000004'
ebx=
'0x00000008'
ecx=
'0x00000201'
edx=
'0x00000000'
/>
<cpuid
eax_in=
'0x0000000c'
ecx_in=
'0x00'
eax=
'0x00000000'
ebx=
'0x00000000'
ecx=
'0x00000000'
edx=
'0x00000000'
/>
<cpuid
eax_in=
'0x0000000d'
ecx_in=
'0x00'
eax=
'0x0000001f'
ebx=
'0x00000440'
ecx=
'0x00000440'
edx=
'0x00000000'
/>
<cpuid
eax_in=
'0x0000000d'
ecx_in=
'0x01'
eax=
'0x0000000f'
ebx=
'0x000003c0'
ecx=
'0x00000100'
edx=
'0x00000000'
/>
<cpuid
eax_in=
'0x0000000d'
ecx_in=
'0x02'
eax=
'0x00000100'
ebx=
'0x00000240'
ecx=
'0x00000000'
edx=
'0x00000000'
/>
<cpuid
eax_in=
'0x0000000d'
ecx_in=
'0x03'
eax=
'0x00000040'
ebx=
'0x000003c0'
ecx=
'0x00000000'
edx=
'0x00000000'
/>
<cpuid
eax_in=
'0x0000000d'
ecx_in=
'0x04'
eax=
'0x00000040'
ebx=
'0x00000400'
ecx=
'0x00000000'
edx=
'0x00000000'
/>
<cpuid
eax_in=
'0x0000000e'
ecx_in=
'0x00'
eax=
'0x00000000'
ebx=
'0x00000000'
ecx=
'0x00000000'
edx=
'0x00000000'
/>
<cpuid
eax_in=
'0x0000000f'
ecx_in=
'0x00'
eax=
'0x00000000'
ebx=
'0x00000000'
ecx=
'0x00000000'
edx=
'0x00000000'
/>
<cpuid
eax_in=
'0x00000010'
ecx_in=
'0x00'
eax=
'0x00000000'
ebx=
'0x00000000'
ecx=
'0x00000000'
edx=
'0x00000000'
/>
<cpuid
eax_in=
'0x00000011'
ecx_in=
'0x00'
eax=
'0x00000000'
ebx=
'0x00000000'
ecx=
'0x00000000'
edx=
'0x00000000'
/>
<cpuid
eax_in=
'0x00000012'
ecx_in=
'0x00'
eax=
'0x00000000'
ebx=
'0x00000000'
ecx=
'0x00000000'
edx=
'0x00000000'
/>
<cpuid
eax_in=
'0x00000013'
ecx_in=
'0x00'
eax=
'0x00000000'
ebx=
'0x00000000'
ecx=
'0x00000000'
edx=
'0x00000000'
/>
<cpuid
eax_in=
'0x00000014'
ecx_in=
'0x00'
eax=
'0x00000001'
ebx=
'0x0000000f'
ecx=
'0x00000007'
edx=
'0x00000000'
/>
<cpuid
eax_in=
'0x00000014'
ecx_in=
'0x01'
eax=
'0x02490002'
ebx=
'0x003f3fff'
ecx=
'0x00000000'
edx=
'0x00000000'
/>
<cpuid
eax_in=
'0x00000015'
ecx_in=
'0x00'
eax=
'0x00000002'
ebx=
'0x00000124'
ecx=
'0x00000000'
edx=
'0x00000000'
/>
<cpuid
eax_in=
'0x00000016'
ecx_in=
'0x00'
eax=
'0x00000dac'
ebx=
'0x00000f3c'
ecx=
'0x00000064'
edx=
'0x00000000'
/>
<cpuid
eax_in=
'0x80000000'
ecx_in=
'0x00'
eax=
'0x80000008'
ebx=
'0x00000000'
ecx=
'0x00000000'
edx=
'0x00000000'
/>
<cpuid
eax_in=
'0x80000001'
ecx_in=
'0x00'
eax=
'0x00000000'
ebx=
'0x00000000'
ecx=
'0x00000121'
edx=
'0x2c100800'
/>
<cpuid
eax_in=
'0x80000002'
ecx_in=
'0x00'
eax=
'0x65746e49'
ebx=
'0x2952286c'
ecx=
'0x6f655820'
edx=
'0x2952286e'
/>
<cpuid
eax_in=
'0x80000003'
ecx_in=
'0x00'
eax=
'0x55504320'
ebx=
'0x2d334520'
ecx=
'0x35343231'
edx=
'0x20357620'
/>
<cpuid
eax_in=
'0x80000004'
ecx_in=
'0x00'
eax=
'0x2e332040'
ebx=
'0x48473035'
ecx=
'0x0000007a'
edx=
'0x00000000'
/>
<cpuid
eax_in=
'0x80000005'
ecx_in=
'0x00'
eax=
'0x00000000'
ebx=
'0x00000000'
ecx=
'0x00000000'
edx=
'0x00000000'
/>
<cpuid
eax_in=
'0x80000006'
ecx_in=
'0x00'
eax=
'0x00000000'
ebx=
'0x00000000'
ecx=
'0x01006040'
edx=
'0x00000000'
/>
<cpuid
eax_in=
'0x80000007'
ecx_in=
'0x00'
eax=
'0x00000000'
ebx=
'0x00000000'
ecx=
'0x00000000'
edx=
'0x00000100'
/>
<cpuid
eax_in=
'0x80000008'
ecx_in=
'0x00'
eax=
'0x00003027'
ebx=
'0x00000000'
ecx=
'0x00000000'
edx=
'0x00000000'
/>
<cpuid
eax_in=
'0x80860000'
ecx_in=
'0x00'
eax=
'0x00000dac'
ebx=
'0x00000f3c'
ecx=
'0x00000064'
edx=
'0x00000000'
/>
<cpuid
eax_in=
'0xc0000000'
ecx_in=
'0x00'
eax=
'0x00000dac'
ebx=
'0x00000f3c'
ecx=
'0x00000064'
edx=
'0x00000000'
/>
</cpudata>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录