Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
9545acd9
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,发现更多精彩内容 >>
提交
9545acd9
编写于
3月 14, 2013
作者:
O
Olivia Yin
提交者:
Eric Blake
3月 19, 2013
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
conf: support <dtb> tag in XML domain file
上级
52ad612c
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
16 addition
and
0 deletion
+16
-0
docs/formatdomain.html.in
docs/formatdomain.html.in
+5
-0
docs/schemas/domaincommon.rng
docs/schemas/domaincommon.rng
+6
-0
src/conf/domain_conf.c
src/conf/domain_conf.c
+4
-0
src/conf/domain_conf.h
src/conf/domain_conf.h
+1
-0
未找到文件。
docs/formatdomain.html.in
浏览文件 @
9545acd9
...
...
@@ -232,6 +232,7 @@
<
kernel
>
/root/f8-i386-vmlinuz
<
/kernel
>
<
initrd
>
/root/f8-i386-initrd
<
/initrd
>
<
cmdline
>
console=ttyS0 ks=http://example.com/f8-i386/os/
<
/cmdline
>
<
dtb
>
/root/ppc.dtb
<
/dtb
>
<
/os
>
...
</pre>
...
...
@@ -253,6 +254,10 @@
the kernel (or installer) at boottime. This is often used to
specify an alternate primary console (eg serial port), or the
installation media source / kickstart file
</dd>
<dt><code>
dtb
</code></dt>
<dd>
The contents of this element specify the fully-qualified path
to the (optional) device tree binary (dtb) image in the host OS.
<span
class=
"since"
>
Since 1.0.4
</span></dd>
</dl>
<h4><a
name=
"eleemntsOSContainer"
>
Container boot
</a></h4>
...
...
docs/schemas/domaincommon.rng
浏览文件 @
9545acd9
...
...
@@ -367,6 +367,7 @@
<value>
g3beige
</value>
<value>
mac99
</value>
<value>
prep
</value>
<value>
ppce500v2
</value>
</choice>
</attribute>
</optional>
...
...
@@ -835,6 +836,11 @@
<text/>
</element>
</optional>
<optional>
<element
name=
"dtb"
>
<ref
name=
"absFilePath"
/>
</element>
</optional>
</interleave>
</define>
<define
name=
"osbootdev"
>
...
...
src/conf/domain_conf.c
浏览文件 @
9545acd9
...
...
@@ -1849,6 +1849,7 @@ void virDomainDefFree(virDomainDefPtr def)
VIR_FREE(def->os.kernel);
VIR_FREE(def->os.initrd);
VIR_FREE(def->os.cmdline);
VIR_FREE(def->os.dtb);
VIR_FREE(def->os.root);
VIR_FREE(def->os.loader);
VIR_FREE(def->os.bootloader);
...
...
@@ -10247,6 +10248,7 @@ virDomainDefParseXML(virCapsPtr caps,
def->os.kernel = virXPathString("string(./os/kernel[1])", ctxt);
def->os.initrd = virXPathString("string(./os/initrd[1])", ctxt);
def->os.cmdline = virXPathString("string(./os/cmdline[1])", ctxt);
def->os.dtb = virXPathString("string(./os/dtb[1])", ctxt);
def->os.root = virXPathString("string(./os/root[1])", ctxt);
def->os.loader = virXPathString("string(./os/loader[1])", ctxt);
}
...
...
@@ -14875,6 +14877,8 @@ virDomainDefFormatInternal(virDomainDefPtr def,
def->os.initrd);
virBufferEscapeString(buf, " <cmdline>%s</cmdline>\n",
def->os.cmdline);
virBufferEscapeString(buf, " <dtb>%s</dtb>\n",
def->os.dtb);
virBufferEscapeString(buf, " <root>%s</root>\n",
def->os.root);
...
...
src/conf/domain_conf.h
浏览文件 @
9545acd9
...
...
@@ -1550,6 +1550,7 @@ struct _virDomainOSDef {
char
*
kernel
;
char
*
initrd
;
char
*
cmdline
;
char
*
dtb
;
char
*
root
;
char
*
loader
;
char
*
bootloader
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录