Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
7dc52241
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看板
提交
7dc52241
编写于
8月 14, 2015
作者:
A
Andrea Bolognani
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
tests: Add some compatibility-related cases to the CPU tests
上级
5750149f
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
57 addition
and
0 deletion
+57
-0
tests/cputest.c
tests/cputest.c
+14
-0
tests/cputestdata/ppc64-guest-compat-incompatible.xml
tests/cputestdata/ppc64-guest-compat-incompatible.xml
+3
-0
tests/cputestdata/ppc64-guest-compat-invalid.xml
tests/cputestdata/ppc64-guest-compat-invalid.xml
+3
-0
tests/cputestdata/ppc64-guest-compat-none.xml
tests/cputestdata/ppc64-guest-compat-none.xml
+1
-0
tests/cputestdata/ppc64-guest-compat-valid.xml
tests/cputestdata/ppc64-guest-compat-valid.xml
+3
-0
tests/cputestdata/ppc64-guest-host-model.xml
tests/cputestdata/ppc64-guest-host-model.xml
+3
-0
tests/cputestdata/ppc64-host+guest-compat-incompatible.xml
tests/cputestdata/ppc64-host+guest-compat-incompatible.xml
+3
-0
tests/cputestdata/ppc64-host+guest-compat-invalid.xml
tests/cputestdata/ppc64-host+guest-compat-invalid.xml
+3
-0
tests/cputestdata/ppc64-host+guest-compat-none.xml
tests/cputestdata/ppc64-host+guest-compat-none.xml
+3
-0
tests/cputestdata/ppc64-host+guest-compat-valid.xml
tests/cputestdata/ppc64-host+guest-compat-valid.xml
+3
-0
tests/cputestdata/ppc64-host+guest-host-model.xml
tests/cputestdata/ppc64-host+guest-host-model.xml
+3
-0
tests/cputestdata/ppc64-host+guest-legacy-incompatible.xml
tests/cputestdata/ppc64-host+guest-legacy-incompatible.xml
+3
-0
tests/cputestdata/ppc64-host+guest-legacy-invalid.xml
tests/cputestdata/ppc64-host+guest-legacy-invalid.xml
+3
-0
tests/cputestdata/ppc64-host+guest-legacy.xml
tests/cputestdata/ppc64-host+guest-legacy.xml
+3
-0
tests/cputestdata/ppc64-host+guest-nofallback.xml
tests/cputestdata/ppc64-host+guest-nofallback.xml
+3
-0
tests/cputestdata/ppc64-host+guest.xml
tests/cputestdata/ppc64-host+guest.xml
+3
-0
未找到文件。
tests/cputest.c
浏览文件 @
7dc52241
...
@@ -607,6 +607,10 @@ mymain(void)
...
@@ -607,6 +607,10 @@ mymain(void)
DO_TEST_COMPARE
(
"ppc64"
,
"host"
,
"guest-legacy"
,
VIR_CPU_COMPARE_IDENTICAL
);
DO_TEST_COMPARE
(
"ppc64"
,
"host"
,
"guest-legacy"
,
VIR_CPU_COMPARE_IDENTICAL
);
DO_TEST_COMPARE
(
"ppc64"
,
"host"
,
"guest-legacy-incompatible"
,
VIR_CPU_COMPARE_INCOMPATIBLE
);
DO_TEST_COMPARE
(
"ppc64"
,
"host"
,
"guest-legacy-incompatible"
,
VIR_CPU_COMPARE_INCOMPATIBLE
);
DO_TEST_COMPARE
(
"ppc64"
,
"host"
,
"guest-legacy-invalid"
,
VIR_CPU_COMPARE_ERROR
);
DO_TEST_COMPARE
(
"ppc64"
,
"host"
,
"guest-legacy-invalid"
,
VIR_CPU_COMPARE_ERROR
);
DO_TEST_COMPARE
(
"ppc64"
,
"host"
,
"guest-compat-none"
,
VIR_CPU_COMPARE_IDENTICAL
);
DO_TEST_COMPARE
(
"ppc64"
,
"host"
,
"guest-compat-valid"
,
VIR_CPU_COMPARE_IDENTICAL
);
DO_TEST_COMPARE
(
"ppc64"
,
"host"
,
"guest-compat-invalid"
,
VIR_CPU_COMPARE_ERROR
);
DO_TEST_COMPARE
(
"ppc64"
,
"host"
,
"guest-compat-incompatible"
,
VIR_CPU_COMPARE_INCOMPATIBLE
);
/* guest updates for migration
/* guest updates for migration
* automatically compares host CPU with the result */
* automatically compares host CPU with the result */
...
@@ -618,6 +622,16 @@ mymain(void)
...
@@ -618,6 +622,16 @@ mymain(void)
DO_TEST_UPDATE
(
"x86"
,
"host"
,
"host-passthrough"
,
VIR_CPU_COMPARE_IDENTICAL
);
DO_TEST_UPDATE
(
"x86"
,
"host"
,
"host-passthrough"
,
VIR_CPU_COMPARE_IDENTICAL
);
DO_TEST_UPDATE
(
"x86"
,
"host-invtsc"
,
"host-model"
,
VIR_CPU_COMPARE_SUPERSET
);
DO_TEST_UPDATE
(
"x86"
,
"host-invtsc"
,
"host-model"
,
VIR_CPU_COMPARE_SUPERSET
);
DO_TEST_UPDATE
(
"ppc64"
,
"host"
,
"guest"
,
VIR_CPU_COMPARE_IDENTICAL
);
DO_TEST_UPDATE
(
"ppc64"
,
"host"
,
"guest-nofallback"
,
VIR_CPU_COMPARE_INCOMPATIBLE
);
DO_TEST_UPDATE
(
"ppc64"
,
"host"
,
"guest-legacy"
,
VIR_CPU_COMPARE_IDENTICAL
);
DO_TEST_UPDATE
(
"ppc64"
,
"host"
,
"guest-legacy-incompatible"
,
VIR_CPU_COMPARE_INCOMPATIBLE
);
DO_TEST_UPDATE
(
"ppc64"
,
"host"
,
"guest-legacy-invalid"
,
VIR_CPU_COMPARE_ERROR
);
DO_TEST_UPDATE
(
"ppc64"
,
"host"
,
"guest-compat-none"
,
VIR_CPU_COMPARE_IDENTICAL
);
DO_TEST_UPDATE
(
"ppc64"
,
"host"
,
"guest-compat-valid"
,
VIR_CPU_COMPARE_IDENTICAL
);
DO_TEST_UPDATE
(
"ppc64"
,
"host"
,
"guest-compat-invalid"
,
VIR_CPU_COMPARE_ERROR
);
DO_TEST_UPDATE
(
"ppc64"
,
"host"
,
"guest-compat-incompatible"
,
VIR_CPU_COMPARE_INCOMPATIBLE
);
/* computing baseline CPUs */
/* computing baseline CPUs */
DO_TEST_BASELINE
(
"x86"
,
"incompatible-vendors"
,
0
,
-
1
);
DO_TEST_BASELINE
(
"x86"
,
"incompatible-vendors"
,
0
,
-
1
);
DO_TEST_BASELINE
(
"x86"
,
"no-vendor"
,
0
,
0
);
DO_TEST_BASELINE
(
"x86"
,
"no-vendor"
,
0
,
0
);
...
...
tests/cputestdata/ppc64-guest-compat-incompatible.xml
0 → 100644
浏览文件 @
7dc52241
<cpu
mode=
'host-model'
>
<model>
power8
</model>
</cpu>
tests/cputestdata/ppc64-guest-compat-invalid.xml
0 → 100644
浏览文件 @
7dc52241
<cpu
mode=
'host-model'
>
<model>
power7+
</model>
</cpu>
tests/cputestdata/ppc64-guest-compat-none.xml
0 → 100644
浏览文件 @
7dc52241
<cpu
mode=
'host-model'
/>
tests/cputestdata/ppc64-guest-compat-valid.xml
0 → 100644
浏览文件 @
7dc52241
<cpu
mode=
'host-model'
>
<model>
power6
</model>
</cpu>
tests/cputestdata/ppc64-guest-host-model.xml
0 → 100644
浏览文件 @
7dc52241
<cpu
mode=
'host-model'
>
<model
fallback=
'allow'
/>
</cpu>
tests/cputestdata/ppc64-host+guest-compat-incompatible.xml
0 → 100644
浏览文件 @
7dc52241
<cpu
mode=
'host-model'
match=
'exact'
>
<model
fallback=
'allow'
>
power8
</model>
</cpu>
tests/cputestdata/ppc64-host+guest-compat-invalid.xml
0 → 100644
浏览文件 @
7dc52241
<cpu
mode=
'host-model'
match=
'exact'
>
<model
fallback=
'allow'
>
power7+
</model>
</cpu>
tests/cputestdata/ppc64-host+guest-compat-none.xml
0 → 100644
浏览文件 @
7dc52241
<cpu
mode=
'host-model'
>
<model
fallback=
'allow'
/>
</cpu>
tests/cputestdata/ppc64-host+guest-compat-valid.xml
0 → 100644
浏览文件 @
7dc52241
<cpu
mode=
'host-model'
match=
'exact'
>
<model
fallback=
'allow'
>
power6
</model>
</cpu>
tests/cputestdata/ppc64-host+guest-host-model.xml
0 → 100644
浏览文件 @
7dc52241
<cpu
mode=
'host-model'
>
<model
fallback=
'allow'
/>
</cpu>
tests/cputestdata/ppc64-host+guest-legacy-incompatible.xml
0 → 100644
浏览文件 @
7dc52241
<cpu
mode=
'custom'
match=
'exact'
>
<model
fallback=
'allow'
>
POWER8_v1.0
</model>
</cpu>
tests/cputestdata/ppc64-host+guest-legacy-invalid.xml
0 → 100644
浏览文件 @
7dc52241
<cpu
mode=
'custom'
match=
'exact'
>
<model
fallback=
'allow'
>
POWER8E_v1.0
</model>
</cpu>
tests/cputestdata/ppc64-host+guest-legacy.xml
0 → 100644
浏览文件 @
7dc52241
<cpu
mode=
'custom'
match=
'exact'
>
<model
fallback=
'allow'
>
POWER7_v2.3
</model>
</cpu>
tests/cputestdata/ppc64-host+guest-nofallback.xml
0 → 100644
浏览文件 @
7dc52241
<cpu
mode=
'custom'
match=
'exact'
>
<model
fallback=
'forbid'
>
POWER8
</model>
</cpu>
tests/cputestdata/ppc64-host+guest.xml
0 → 100644
浏览文件 @
7dc52241
<cpu
mode=
'custom'
match=
'exact'
>
<model
fallback=
'allow'
>
POWER7
</model>
</cpu>
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录