Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
f193e195
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看板
提交
f193e195
编写于
9月 05, 2008
作者:
D
Daniel P. Berrange
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Fix xen capabilities data creation
上级
e8829580
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
23 addition
and
10 deletion
+23
-10
ChangeLog
ChangeLog
+6
-0
src/xen_internal.c
src/xen_internal.c
+12
-6
src/xen_internal.h
src/xen_internal.h
+3
-2
src/xen_unified.c
src/xen_unified.c
+1
-1
tests/xencapstest.c
tests/xencapstest.c
+1
-1
未找到文件。
ChangeLog
浏览文件 @
f193e195
Thu Sep 5 12:33:26 BST 2008 Daniel P. Berrange <berrange@redhat.com>
* src/xen_unified.c, src/xen_internal.c, src/xen_internal.h,
tests/xencapstest.c: Pass connection object into capabilities
constructor since it needs to talk to XenD
Thu Sep 4 15:33:26 CEST 2008 Daniel Veillard <veillard@redhat.com>
* src/storage_backend_fs.c: fix a signed/unsigned issue breaking
...
...
src/xen_internal.c
浏览文件 @
f193e195
...
...
@@ -2159,7 +2159,8 @@ struct guest_arch {
static
virCapsPtr
xenHypervisorBuildCapabilities
(
const
char
*
hostmachine
,
xenHypervisorBuildCapabilities
(
virConnectPtr
conn
,
const
char
*
hostmachine
,
int
host_pae
,
char
*
hvm_type
,
struct
guest_arch
*
guest_archs
,
...
...
@@ -2185,7 +2186,7 @@ xenHypervisorBuildCapabilities(const char *hostmachine,
if
(
sys_interface_version
>=
4
)
{
if
(
xenDaemonNodeGetTopology
(
NULL
,
caps
)
!=
0
)
{
if
(
xenDaemonNodeGetTopology
(
conn
,
caps
)
!=
0
)
{
virCapabilitiesFree
(
caps
);
return
NULL
;
}
...
...
@@ -2271,7 +2272,8 @@ xenHypervisorBuildCapabilities(const char *hostmachine,
* Return the capabilities of this hypervisor.
*/
virCapsPtr
xenHypervisorMakeCapabilitiesInternal
(
const
char
*
hostmachine
,
xenHypervisorMakeCapabilitiesInternal
(
virConnectPtr
conn
,
const
char
*
hostmachine
,
FILE
*
cpuinfo
,
FILE
*
capabilities
)
{
char
line
[
1024
],
*
str
,
*
token
;
...
...
@@ -2404,7 +2406,8 @@ xenHypervisorMakeCapabilitiesInternal(const char *hostmachine,
}
}
if
((
caps
=
xenHypervisorBuildCapabilities
(
hostmachine
,
if
((
caps
=
xenHypervisorBuildCapabilities
(
conn
,
hostmachine
,
host_pae
,
hvm_type
,
guest_archs
,
...
...
@@ -2425,7 +2428,7 @@ xenHypervisorMakeCapabilitiesInternal(const char *hostmachine,
* Return the capabilities of this hypervisor.
*/
virCapsPtr
xenHypervisorMakeCapabilities
(
v
oid
)
xenHypervisorMakeCapabilities
(
v
irConnectPtr
conn
)
{
virCapsPtr
caps
;
FILE
*
cpuinfo
,
*
capabilities
;
...
...
@@ -2451,7 +2454,10 @@ xenHypervisorMakeCapabilities(void)
}
}
caps
=
xenHypervisorMakeCapabilitiesInternal
(
utsname
.
machine
,
cpuinfo
,
capabilities
);
caps
=
xenHypervisorMakeCapabilitiesInternal
(
conn
,
utsname
.
machine
,
cpuinfo
,
capabilities
);
if
(
cpuinfo
)
fclose
(
cpuinfo
);
...
...
src/xen_internal.h
浏览文件 @
f193e195
...
...
@@ -17,7 +17,7 @@
extern
struct
xenUnifiedDriver
xenHypervisorDriver
;
int
xenHypervisorInit
(
void
);
virCapsPtr
xenHypervisorMakeCapabilities
(
v
oid
);
virCapsPtr
xenHypervisorMakeCapabilities
(
v
irConnectPtr
conn
);
/* The following calls are made directly by the Xen proxy: */
...
...
@@ -38,7 +38,8 @@ int xenHypervisorClose (virConnectPtr conn);
int
xenHypervisorGetVersion
(
virConnectPtr
conn
,
unsigned
long
*
hvVer
);
virCapsPtr
xenHypervisorMakeCapabilitiesInternal
(
const
char
*
hostmachine
,
xenHypervisorMakeCapabilitiesInternal
(
virConnectPtr
conn
,
const
char
*
hostmachine
,
FILE
*
cpuinfo
,
FILE
*
capabilities
);
char
*
...
...
src/xen_unified.c
浏览文件 @
f193e195
...
...
@@ -333,7 +333,7 @@ xenUnifiedOpen (virConnectPtr conn, xmlURIPtr uri, virConnectAuthPtr auth, int f
}
}
if
(
!
(
priv
->
caps
=
xenHypervisorMakeCapabilities
()))
{
if
(
!
(
priv
->
caps
=
xenHypervisorMakeCapabilities
(
conn
)))
{
DEBUG0
(
"Failed to make capabilities"
);
goto
fail
;
}
...
...
tests/xencapstest.c
浏览文件 @
f193e195
...
...
@@ -49,7 +49,7 @@ static int testCompareFiles(const char *hostmachine,
if
(
!
(
fp2
=
fopen
(
capabilities
,
"r"
)))
goto
fail
;
if
(
!
(
caps
=
xenHypervisorMakeCapabilitiesInternal
(
hostmachine
,
fp1
,
fp2
)))
if
(
!
(
caps
=
xenHypervisorMakeCapabilitiesInternal
(
NULL
,
hostmachine
,
fp1
,
fp2
)))
goto
fail
;
if
(
!
(
actualxml
=
virCapabilitiesFormatXML
(
caps
)))
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录