Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
02a271f2
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,发现更多精彩内容 >>
提交
02a271f2
编写于
2月 27, 2007
作者:
D
Daniel P. Berrange
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Don't hardcode port=5900+domid for new xend
上级
35f911c8
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
14 addition
and
3 deletion
+14
-3
ChangeLog
ChangeLog
+7
-0
src/xend_internal.c
src/xend_internal.c
+7
-3
未找到文件。
ChangeLog
浏览文件 @
02a271f2
Tue Feb 27 10:20:43 EST 2007 Daniel P. Berrange <berrange@redhat.com>
* src/xend_internal.c: Only hardcode port = 5900+domid if
running against old XenD < 3.0.3, because in newer XenD
port is guarenteed to be available in XenStore if the VNC
server is running.
Mon Feb 26 15:33:08 IST 2007 Mark McLoughlin <markmc@redhat.com>
* qemud/conf.c, qemud/uuid.[ch]: move qemudParseUUID()
...
...
src/xend_internal.c
浏览文件 @
02a271f2
...
...
@@ -1571,8 +1571,6 @@ xend_parse_sexp_desc(virConnectPtr conn, struct sexpr *root, int xendConfigVersi
}
else
if
(
tmp
&&
!
strcmp
(
tmp
,
"vnc"
))
{
int
port
=
xenStoreDomainGetVNCPort
(
conn
,
domid
);
const
char
*
listenAddr
=
sexpr_node
(
node
,
"device/vfb/vnclisten"
);
if
(
port
==
-
1
)
port
=
5900
+
domid
;
if
(
listenAddr
)
{
virBufferVSprintf
(
&
buf
,
" <graphics type='vnc' port='%d' listen='%s'/>
\n
"
,
port
,
listenAddr
);
}
else
{
...
...
@@ -1618,7 +1616,13 @@ xend_parse_sexp_desc(virConnectPtr conn, struct sexpr *root, int xendConfigVersi
if
(
tmp
[
0
]
==
'1'
)
{
int
port
=
xenStoreDomainGetVNCPort
(
conn
,
domid
);
const
char
*
listenAddr
=
sexpr_fmt_node
(
root
,
"domain/image/%s/vnclisten"
,
hvm
?
"hvm"
:
"linux"
);
if
(
port
==
-
1
)
/* For Xen >= 3.0.3, don't generate a fixed port mapping
* because it will almost certainly be wrong ! Just leave
* it as -1 which lets caller see that the VNC server isn't
* present yet. Subsquent dumps of the XML will eventually
* find the port in XenStore once VNC server has started
*/
if
(
port
==
-
1
&&
xendConfigVersion
<
2
)
port
=
5900
+
domid
;
if
(
listenAddr
)
virBufferVSprintf
(
&
buf
,
" <graphics type='vnc' port='%d' listen='%s'/>
\n
"
,
port
,
listenAddr
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录