Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
0c38d36d
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看板
提交
0c38d36d
编写于
5月 21, 2013
作者:
O
Osier Yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
src/xen: Remove the whitespace before ';'
上级
9b32d2db
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
16 addition
and
16 deletion
+16
-16
src/xen/xen_driver.c
src/xen/xen_driver.c
+3
-3
src/xen/xen_driver.h
src/xen/xen_driver.h
+1
-1
src/xen/xen_hypervisor.c
src/xen/xen_hypervisor.c
+2
-2
src/xen/xen_inotify.c
src/xen/xen_inotify.c
+2
-2
src/xen/xm_internal.c
src/xen/xm_internal.c
+2
-2
src/xen/xs_internal.c
src/xen/xs_internal.c
+6
-6
未找到文件。
src/xen/xen_driver.c
浏览文件 @
0c38d36d
...
...
@@ -223,8 +223,8 @@ xenDomainUsedCpus(virDomainPtr dom)
if
((
ncpus
=
xenUnifiedDomainGetVcpus
(
dom
,
cpuinfo
,
nb_vcpu
,
cpumap
,
cpumaplen
))
>=
0
)
{
for
(
n
=
0
;
n
<
ncpus
;
n
++
)
{
for
(
m
=
0
;
m
<
priv
->
nbNodeCpus
;
m
++
)
{
for
(
n
=
0
;
n
<
ncpus
;
n
++
)
{
for
(
m
=
0
;
m
<
priv
->
nbNodeCpus
;
m
++
)
{
bool
used
;
ignore_value
(
virBitmapGetBit
(
cpulist
,
m
,
&
used
));
if
((
!
used
)
&&
...
...
@@ -2622,7 +2622,7 @@ xenUnifiedRemoveDomainInfo(xenUnifiedDomainInfoListPtr list,
unsigned
char
*
uuid
)
{
int
i
;
for
(
i
=
0
;
i
<
list
->
count
;
i
++
)
{
for
(
i
=
0
;
i
<
list
->
count
;
i
++
)
{
if
(
list
->
doms
[
i
]
->
id
==
id
&&
STREQ
(
list
->
doms
[
i
]
->
name
,
name
)
&&
!
memcmp
(
list
->
doms
[
i
]
->
uuid
,
uuid
,
VIR_UUID_BUFLEN
))
{
...
...
src/xen/xen_driver.h
浏览文件 @
0c38d36d
...
...
@@ -172,7 +172,7 @@ struct _xenUnifiedPrivate {
int
inotifyFD
;
int
inotifyWatch
;
int
useXenConfigCache
;
int
useXenConfigCache
;
xenUnifiedDomainInfoListPtr
configInfoList
;
# endif
...
...
src/xen/xen_hypervisor.c
浏览文件 @
0c38d36d
...
...
@@ -2390,7 +2390,7 @@ xenHypervisorMakeCapabilitiesInternal(virConnectPtr conn,
}
/* Search for existing matching (model,hvm) tuple */
for
(
i
=
0
;
i
<
nr_guest_archs
;
i
++
)
{
for
(
i
=
0
;
i
<
nr_guest_archs
;
i
++
)
{
if
(
guest_archs
[
i
].
arch
==
arch
&&
guest_archs
[
i
].
hvm
==
hvm
)
{
break
;
...
...
@@ -2639,7 +2639,7 @@ xenHypervisorLookupDomainByUUID(virConnectPtr conn, const unsigned char *uuid)
}
id
=
-
1
;
for
(
i
=
0
;
i
<
nids
;
i
++
)
{
for
(
i
=
0
;
i
<
nids
;
i
++
)
{
if
(
memcmp
(
XEN_GETDOMAININFOLIST_UUID
(
dominfos
,
i
),
uuid
,
VIR_UUID_BUFLEN
)
==
0
)
{
id
=
XEN_GETDOMAININFOLIST_DOMAIN
(
dominfos
,
i
);
break
;
...
...
src/xen/xen_inotify.c
浏览文件 @
0c38d36d
...
...
@@ -101,7 +101,7 @@ xenInotifyXendDomainsDirLookup(virConnectPtr conn,
/* If we are here, the domain has gone away.
search for, and create a domain from the stored
list info */
for
(
i
=
0
;
i
<
priv
->
configInfoList
->
count
;
i
++
)
{
for
(
i
=
0
;
i
<
priv
->
configInfoList
->
count
;
i
++
)
{
if
(
!
memcmp
(
rawuuid
,
priv
->
configInfoList
->
doms
[
i
]
->
uuid
,
VIR_UUID_BUFLEN
))
{
*
name
=
strdup
(
priv
->
configInfoList
->
doms
[
i
]
->
name
);
if
(
!*
name
)
{
...
...
@@ -175,7 +175,7 @@ xenInotifyXendDomainsDirRemoveEntry(virConnectPtr conn, const char *fname)
}
/* match and remove on uuid */
for
(
i
=
0
;
i
<
priv
->
configInfoList
->
count
;
i
++
)
{
for
(
i
=
0
;
i
<
priv
->
configInfoList
->
count
;
i
++
)
{
if
(
!
memcmp
(
uuid
,
priv
->
configInfoList
->
doms
[
i
]
->
uuid
,
VIR_UUID_BUFLEN
))
{
VIR_FREE
(
priv
->
configInfoList
->
doms
[
i
]
->
name
);
VIR_FREE
(
priv
->
configInfoList
->
doms
[
i
]);
...
...
src/xen/xm_internal.c
浏览文件 @
0c38d36d
...
...
@@ -1355,7 +1355,7 @@ xenXMDomainDetachDeviceFlags(virConnectPtr conn,
switch
(
dev
->
type
)
{
case
VIR_DOMAIN_DEVICE_DISK
:
{
for
(
i
=
0
;
i
<
def
->
ndisks
;
i
++
)
{
for
(
i
=
0
;
i
<
def
->
ndisks
;
i
++
)
{
if
(
def
->
disks
[
i
]
->
dst
&&
dev
->
data
.
disk
->
dst
&&
STREQ
(
def
->
disks
[
i
]
->
dst
,
dev
->
data
.
disk
->
dst
))
{
...
...
@@ -1374,7 +1374,7 @@ xenXMDomainDetachDeviceFlags(virConnectPtr conn,
case
VIR_DOMAIN_DEVICE_NET
:
{
for
(
i
=
0
;
i
<
def
->
nnets
;
i
++
)
{
for
(
i
=
0
;
i
<
def
->
nnets
;
i
++
)
{
if
(
!
virMacAddrCmp
(
&
def
->
nets
[
i
]
->
mac
,
&
dev
->
data
.
net
->
mac
))
{
virDomainNetDefFree
(
def
->
nets
[
i
]);
if
(
i
<
(
def
->
nnets
-
1
))
...
...
src/xen/xs_internal.c
浏览文件 @
0c38d36d
...
...
@@ -718,7 +718,7 @@ xenStoreRemoveWatch(virConnectPtr conn, const char *path, const char *token)
if
(
!
list
)
return
-
1
;
for
(
i
=
0
;
i
<
list
->
count
;
i
++
)
{
for
(
i
=
0
;
i
<
list
->
count
;
i
++
)
{
if
(
STREQ
(
list
->
watches
[
i
]
->
path
,
path
)
&&
STREQ
(
list
->
watches
[
i
]
->
token
,
token
))
{
...
...
@@ -757,7 +757,7 @@ xenStoreFindWatch(xenStoreWatchListPtr list,
const
char
*
token
)
{
int
i
;
for
(
i
=
0
;
i
<
list
->
count
;
i
++
)
for
(
i
=
0
;
i
<
list
->
count
;
i
++
)
if
(
STREQ
(
path
,
list
->
watches
[
i
]
->
path
)
&&
STREQ
(
token
,
list
->
watches
[
i
]
->
token
))
return
list
->
watches
[
i
];
...
...
@@ -841,9 +841,9 @@ retry:
}
missing
=
0
;
for
(
i
=
0
;
i
<
new_domain_cnt
;
i
++
)
{
for
(
i
=
0
;
i
<
new_domain_cnt
;
i
++
)
{
found
=
0
;
for
(
j
=
0
;
j
<
priv
->
activeDomainList
->
count
;
j
++
)
{
for
(
j
=
0
;
j
<
priv
->
activeDomainList
->
count
;
j
++
)
{
if
(
priv
->
activeDomainList
->
doms
[
j
]
->
id
==
new_domids
[
i
])
{
found
=
1
;
break
;
...
...
@@ -925,9 +925,9 @@ retry:
}
removed
=
0
;
for
(
j
=
0
;
j
<
priv
->
activeDomainList
->
count
;
j
++
)
{
for
(
j
=
0
;
j
<
priv
->
activeDomainList
->
count
;
j
++
)
{
found
=
0
;
for
(
i
=
0
;
i
<
new_domain_cnt
;
i
++
)
{
for
(
i
=
0
;
i
<
new_domain_cnt
;
i
++
)
{
if
(
priv
->
activeDomainList
->
doms
[
j
]
->
id
==
new_domids
[
i
])
{
found
=
1
;
break
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录