Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
2085f9a5
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看板
提交
2085f9a5
编写于
5月 12, 2016
作者:
J
Jiri Denemark
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
cpu_x86: Rename cleanup labels
Signed-off-by:
N
Jiri Denemark
<
jdenemar@redhat.com
>
上级
ea51e6a0
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
12 addition
and
12 deletion
+12
-12
src/cpu/cpu_x86.c
src/cpu/cpu_x86.c
+12
-12
未找到文件。
src/cpu/cpu_x86.c
浏览文件 @
2085f9a5
...
...
@@ -570,7 +570,7 @@ x86VendorLoad(xmlXPathContextPtr ctxt,
map
->
vendors
=
vendor
;
}
out
:
cleanup
:
VIR_FREE
(
string
);
return
ret
;
...
...
@@ -579,7 +579,7 @@ x86VendorLoad(xmlXPathContextPtr ctxt,
ret
=
-
1
;
ignore:
x86VendorFree
(
vendor
);
goto
out
;
goto
cleanup
;
}
...
...
@@ -775,7 +775,7 @@ x86FeatureLoad(xmlXPathContextPtr ctxt,
map
->
features
=
feature
;
}
out
:
cleanup
:
ctxt
->
node
=
ctxt_node
;
VIR_FREE
(
nodes
);
VIR_FREE
(
str
);
...
...
@@ -788,7 +788,7 @@ x86FeatureLoad(xmlXPathContextPtr ctxt,
ignore:
x86FeatureFree
(
feature
);
x86FeatureFree
(
migrate_blocker
);
goto
out
;
goto
cleanup
;
}
...
...
@@ -1115,7 +1115,7 @@ x86ModelLoad(xmlXPathContextPtr ctxt,
map
->
models
=
model
;
}
out
:
cleanup
:
VIR_FREE
(
vendor
);
VIR_FREE
(
nodes
);
return
ret
;
...
...
@@ -1125,7 +1125,7 @@ x86ModelLoad(xmlXPathContextPtr ctxt,
ignore:
x86ModelFree
(
model
);
goto
out
;
goto
cleanup
;
}
...
...
@@ -1634,7 +1634,7 @@ x86Decode(virCPUDefPtr cpu,
virReportError
(
VIR_ERR_CONFIG_UNSUPPORTED
,
_
(
"CPU model %s is not supported by hypervisor"
),
preferred
);
goto
out
;
goto
cleanup
;
}
else
{
VIR_WARN
(
"Preferred CPU model %s not allowed by"
" hypervisor; closest supported model will be"
...
...
@@ -1648,7 +1648,7 @@ x86Decode(virCPUDefPtr cpu,
}
if
(
!
(
cpuCandidate
=
x86DataToCPU
(
data
,
candidate
,
map
)))
goto
out
;
goto
cleanup
;
cpuCandidate
->
type
=
cpu
->
type
;
if
(
candidate
->
vendor
&&
cpuCandidate
->
vendor
&&
...
...
@@ -1678,7 +1678,7 @@ x86Decode(virCPUDefPtr cpu,
if
(
cpuModel
==
NULL
)
{
virReportError
(
VIR_ERR_INTERNAL_ERROR
,
"%s"
,
_
(
"Cannot find suitable CPU model for given data"
));
goto
out
;
goto
cleanup
;
}
/* Remove non-migratable features if requested
...
...
@@ -1699,12 +1699,12 @@ x86Decode(virCPUDefPtr cpu,
if
(
flags
&
VIR_CONNECT_BASELINE_CPU_EXPAND_FEATURES
)
{
if
(
!
(
copy
=
x86DataCopy
(
cpuData
))
||
!
(
features
=
x86DataFromCPUFeatures
(
cpuModel
,
map
)))
goto
out
;
goto
cleanup
;
x86DataSubtract
(
copy
,
features
);
if
(
x86DataToCPUFeatures
(
cpuModel
,
VIR_CPU_FEATURE_REQUIRE
,
copy
,
map
)
<
0
)
goto
out
;
goto
cleanup
;
}
cpu
->
model
=
cpuModel
->
model
;
...
...
@@ -1715,7 +1715,7 @@ x86Decode(virCPUDefPtr cpu,
ret
=
0
;
out
:
cleanup
:
virCPUDefFree
(
cpuModel
);
virCPUx86DataFree
(
copy
);
virCPUx86DataFree
(
features
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录