Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
5acdb576
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,发现更多精彩内容 >>
提交
5acdb576
编写于
11月 28, 2008
作者:
G
Guido Günther
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Prefer xenstore driver for listDomains, since xen HV reports ghost ids of
already shutdown domains in some xen versions
上级
d88d459d
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
39 addition
and
9 deletion
+39
-9
ChangeLog
ChangeLog
+11
-0
src/proxy_internal.c
src/proxy_internal.c
+1
-2
src/proxy_internal.h
src/proxy_internal.h
+2
-0
src/xen_unified.c
src/xen_unified.c
+23
-6
src/xend_internal.c
src/xend_internal.c
+1
-1
src/xend_internal.h
src/xend_internal.h
+1
-0
未找到文件。
ChangeLog
浏览文件 @
5acdb576
Fri Nov 28 16:16:54 CET 2008 Guido Günther <agx@sigxcpu.org>
Prefer xenstore driver for listDomains, since xen HV reports ghost ids
of already shutdown domains in some xen versions
* src/proxy_internal.c, src/proxy_internal.h: declare
xenProxyListDomains non static
* src/xend_internal.c, src/xend_internal.h: declare
xenDaemonListDomains non static
* src/xen_unified.c: prefer xenStoreListDomains over
xenHypervisorListDomains for xenUnifiedListDomains
Fri Nov 28 11:58:40 GMT 2008 Daniel P. Berrange <berrange@redhat.com>
Allow generic remote://hostname/ URI for automatic probe
...
...
src/proxy_internal.c
浏览文件 @
5acdb576
...
...
@@ -40,7 +40,6 @@ static int xenProxyOpen(virConnectPtr conn, virConnectAuthPtr auth, int flags);
static
int
xenProxyGetVersion
(
virConnectPtr
conn
,
unsigned
long
*
hvVer
);
static
int
xenProxyNodeGetInfo
(
virConnectPtr
conn
,
virNodeInfoPtr
info
);
static
char
*
xenProxyGetCapabilities
(
virConnectPtr
conn
);
static
int
xenProxyListDomains
(
virConnectPtr
conn
,
int
*
ids
,
int
maxids
);
static
int
xenProxyNumOfDomains
(
virConnectPtr
conn
);
static
unsigned
long
xenProxyDomainGetMaxMemory
(
virDomainPtr
domain
);
static
int
xenProxyDomainGetInfo
(
virDomainPtr
domain
,
virDomainInfoPtr
info
);
...
...
@@ -566,7 +565,7 @@ xenProxyGetVersion(virConnectPtr conn, unsigned long *hvVer)
*
* Returns the number of domain found or -1 in case of error
*/
static
int
int
xenProxyListDomains
(
virConnectPtr
conn
,
int
*
ids
,
int
maxids
)
{
virProxyPacket
req
;
...
...
src/proxy_internal.h
浏览文件 @
5acdb576
...
...
@@ -94,4 +94,6 @@ extern virDomainPtr xenProxyLookupByName(virConnectPtr conn,
extern
char
*
xenProxyDomainDumpXML
(
virDomainPtr
domain
,
int
flags
);
extern
int
xenProxyListDomains
(
virConnectPtr
conn
,
int
*
ids
,
int
maxids
);
#endif
/* __LIBVIR_PROXY_H__ */
src/xen_unified.c
浏览文件 @
5acdb576
...
...
@@ -516,14 +516,31 @@ static int
xenUnifiedListDomains
(
virConnectPtr
conn
,
int
*
ids
,
int
maxids
)
{
GET_PRIVATE
(
conn
);
int
i
,
ret
;
int
ret
;
for
(
i
=
0
;
i
<
XEN_UNIFIED_NR_DRIVERS
;
++
i
)
if
(
priv
->
opened
[
i
]
&&
drivers
[
i
]
->
listDomains
)
{
ret
=
drivers
[
i
]
->
l
istDomains
(
conn
,
ids
,
maxids
);
if
(
ret
>=
0
)
return
ret
;
}
/* Try xenstore. */
if
(
priv
->
opened
[
XEN_UNIFIED_XS_OFFSET
]
)
{
ret
=
xenStoreL
istDomains
(
conn
,
ids
,
maxids
);
if
(
ret
>=
0
)
return
ret
;
}
/* Try HV. */
if
(
priv
->
opened
[
XEN_UNIFIED_HYPERVISOR_OFFSET
])
{
ret
=
xenHypervisorListDomains
(
conn
,
ids
,
maxids
);
if
(
ret
>=
0
)
return
ret
;
}
/* Try xend. */
if
(
priv
->
opened
[
XEN_UNIFIED_XEND_OFFSET
])
{
ret
=
xenDaemonListDomains
(
conn
,
ids
,
maxids
);
if
(
ret
>=
0
)
return
ret
;
}
/* Try proxy. */
if
(
priv
->
opened
[
XEN_UNIFIED_PROXY_OFFSET
])
{
ret
=
xenProxyListDomains
(
conn
,
ids
,
maxids
);
if
(
ret
>=
0
)
return
ret
;
}
return
-
1
;
}
...
...
src/xend_internal.c
浏览文件 @
5acdb576
...
...
@@ -3411,7 +3411,7 @@ xenDaemonGetVersion(virConnectPtr conn, unsigned long *hvVer)
*
* Returns the number of domain found or -1 in case of error
*/
static
int
int
xenDaemonListDomains
(
virConnectPtr
conn
,
int
*
ids
,
int
maxids
)
{
struct
sexpr
*
root
=
NULL
;
...
...
src/xend_internal.h
浏览文件 @
5acdb576
...
...
@@ -179,5 +179,6 @@ int xenDaemonDomainMigratePrepare (virConnectPtr dconn, char **cookie, int *cook
int
xenDaemonDomainMigratePerform
(
virDomainPtr
domain
,
const
char
*
cookie
,
int
cookielen
,
const
char
*
uri
,
unsigned
long
flags
,
const
char
*
dname
,
unsigned
long
resource
);
int
xenDaemonDomainBlockPeek
(
virDomainPtr
domain
,
const
char
*
path
,
unsigned
long
long
offset
,
size_t
size
,
void
*
buffer
);
int
xenDaemonListDomains
(
virConnectPtr
conn
,
int
*
ids
,
int
maxids
);
#endif
/* __XEND_INTERNAL_H_ */
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录