Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
4acd2bce
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看板
提交
4acd2bce
编写于
3月 17, 2015
作者:
L
Luyao Huang
提交者:
Michal Privoznik
3月 17, 2015
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
qemu_command: Fix some indentation and a typo
Signed-off-by:
N
Michal Privoznik
<
mprivozn@redhat.com
>
上级
37397320
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
11 addition
and
12 deletion
+11
-12
src/qemu/qemu_command.c
src/qemu/qemu_command.c
+11
-12
未找到文件。
src/qemu/qemu_command.c
浏览文件 @
4acd2bce
...
...
@@ -1683,8 +1683,8 @@ qemuDomainPCIAddressSetCreate(virDomainDefPtr def,
*
*/
if
(
nbuses
>
0
)
virDomainPCIAddressBusSetModel
(
&
addrs
->
buses
[
0
],
VIR_DOMAIN_CONTROLLER_MODEL_PCI_ROOT
);
virDomainPCIAddressBusSetModel
(
&
addrs
->
buses
[
0
],
VIR_DOMAIN_CONTROLLER_MODEL_PCI_ROOT
);
for
(
i
=
1
;
i
<
nbuses
;
i
++
)
{
virDomainPCIAddressBusSetModel
(
&
addrs
->
buses
[
i
],
VIR_DOMAIN_CONTROLLER_MODEL_PCI_BRIDGE
);
...
...
@@ -4761,7 +4761,7 @@ qemuBuildMemoryBackendStr(unsigned long long size,
virReportError
(
VIR_ERR_CONFIG_UNSUPPORTED
,
"%s"
,
_
(
"this qemu doesn't support the "
"memory-backend-ram object"
));
goto
cleanup
;
goto
cleanup
;
}
/* report back that using the new backend is not necessary to achieve
...
...
@@ -4967,7 +4967,7 @@ qemuBuildNicDevStr(virDomainDefPtr def,
if
(
qemuBuildDeviceAddressStr
(
&
buf
,
def
,
&
net
->
info
,
qemuCaps
)
<
0
)
goto
error
;
if
(
qemuBuildRomStr
(
&
buf
,
&
net
->
info
,
qemuCaps
)
<
0
)
goto
error
;
goto
error
;
if
(
bootindex
&&
virQEMUCapsGet
(
qemuCaps
,
QEMU_CAPS_BOOTINDEX
))
virBufferAsprintf
(
&
buf
,
",bootindex=%d"
,
bootindex
);
...
...
@@ -5512,7 +5512,7 @@ qemuBuildPCIHostdevDevStr(virDomainDefPtr def,
if
(
qemuBuildDeviceAddressStr
(
&
buf
,
def
,
dev
->
info
,
qemuCaps
)
<
0
)
goto
error
;
if
(
qemuBuildRomStr
(
&
buf
,
dev
->
info
,
qemuCaps
)
<
0
)
goto
error
;
goto
error
;
if
(
virBufferCheckError
(
&
buf
)
<
0
)
goto
error
;
...
...
@@ -5577,8 +5577,7 @@ qemuBuildRedirdevDevStr(virDomainDefPtr def,
}
virBufferAsprintf
(
&
buf
,
"usb-redir,chardev=char%s,id=%s"
,
dev
->
info
.
alias
,
dev
->
info
.
alias
);
dev
->
info
.
alias
,
dev
->
info
.
alias
);
if
(
redirfilter
&&
redirfilter
->
nusbdevs
)
{
if
(
!
virQEMUCapsGet
(
qemuCaps
,
QEMU_CAPS_USB_REDIR_FILTER
))
{
...
...
@@ -9610,7 +9609,7 @@ qemuBuildCommandLine(virConnectPtr conn,
}
else
{
virCommandAddArg
(
cmd
,
"-parallel"
);
if
(
!
(
devstr
=
qemuBuildChrArgStr
(
&
parallel
->
source
,
NULL
)))
goto
error
;
goto
error
;
virCommandAddArg
(
cmd
,
devstr
);
VIR_FREE
(
devstr
);
}
...
...
@@ -10558,7 +10557,7 @@ qemuBuildSerialChrDeviceStr(char **deviceStr,
case
VIR_DOMAIN_CHR_SERIAL_TARGET_TYPE_ISA
:
if
(
serial
->
info
.
type
!=
VIR_DOMAIN_DEVICE_ADDRESS_TYPE_NONE
)
{
virReportError
(
VIR_ERR_CONFIG_UNSUPPORTED
,
"%s"
,
_
(
"no addresses are suported for isa-serial"
));
_
(
"no addresses are sup
p
orted for isa-serial"
));
goto
error
;
}
break
;
...
...
@@ -10611,7 +10610,7 @@ qemuBuildChannelChrDeviceStr(char **deviceStr,
case
VIR_DOMAIN_CHR_CHANNEL_TARGET_TYPE_VIRTIO
:
if
(
!
(
*
deviceStr
=
qemuBuildVirtioSerialPortDevStr
(
chr
,
qemuCaps
)))
goto
cleanup
;
goto
cleanup
;
break
;
case
VIR_DOMAIN_CHR_CHANNEL_TARGET_TYPE_NONE
:
...
...
@@ -11467,7 +11466,7 @@ qemuParseCommandLinePCI(const char *val)
virDomainHostdevDefPtr
def
=
virDomainHostdevDefAlloc
();
if
(
!
def
)
goto
error
;
goto
error
;
if
(
!
STRPREFIX
(
val
,
"host="
))
{
virReportError
(
VIR_ERR_INTERNAL_ERROR
,
...
...
@@ -11521,7 +11520,7 @@ qemuParseCommandLineUSB(const char *val)
char
*
end
;
if
(
!
def
)
goto
error
;
goto
error
;
usbsrc
=
&
def
->
source
.
subsys
.
u
.
usb
;
if
(
!
STRPREFIX
(
val
,
"host:"
))
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录