Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
9e48f6cf
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看板
提交
9e48f6cf
编写于
3月 25, 2015
作者:
J
Ján Tomko
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Rename qemuMonitorIOThreadsInfo* to qemuMonitorIOThreadInfo*
It only deals with a single thread.
上级
cf8b828a
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
18 addition
and
18 deletion
+18
-18
src/qemu/qemu_driver.c
src/qemu/qemu_driver.c
+2
-2
src/qemu/qemu_monitor.c
src/qemu/qemu_monitor.c
+2
-2
src/qemu/qemu_monitor.h
src/qemu/qemu_monitor.h
+5
-5
src/qemu/qemu_monitor_json.c
src/qemu/qemu_monitor_json.c
+4
-4
src/qemu/qemu_monitor_json.h
src/qemu/qemu_monitor_json.h
+1
-1
src/qemu/qemu_process.c
src/qemu/qemu_process.c
+2
-2
tests/qemumonitorjsontest.c
tests/qemumonitorjsontest.c
+2
-2
未找到文件。
src/qemu/qemu_driver.c
浏览文件 @
9e48f6cf
...
...
@@ -5715,7 +5715,7 @@ qemuDomainGetIOThreadsLive(virQEMUDriverPtr driver,
virDomainIOThreadInfoPtr **info)
{
qemuDomainObjPrivatePtr priv;
qemuMonitorIOThread
s
InfoPtr *iothreads = NULL;
qemuMonitorIOThreadInfoPtr *iothreads = NULL;
virDomainIOThreadInfoPtr *info_ret = NULL;
int niothreads = 0;
int hostcpus;
...
...
@@ -5793,7 +5793,7 @@ qemuDomainGetIOThreadsLive(virQEMUDriverPtr driver,
}
if (iothreads) {
for (i = 0; i < niothreads; i++)
qemuMonitorIOThread
s
InfoFree(iothreads[i]);
qemuMonitorIOThreadInfoFree(iothreads[i]);
VIR_FREE(iothreads);
}
...
...
src/qemu/qemu_monitor.c
浏览文件 @
9e48f6cf
...
...
@@ -4336,7 +4336,7 @@ qemuMonitorRTCResetReinjection(qemuMonitorPtr mon)
*/
int
qemuMonitorGetIOThreads
(
qemuMonitorPtr
mon
,
qemuMonitorIOThread
s
InfoPtr
**
iothreads
)
qemuMonitorIOThreadInfoPtr
**
iothreads
)
{
VIR_DEBUG
(
"mon=%p iothreads=%p"
,
mon
,
iothreads
);
...
...
@@ -4356,7 +4356,7 @@ qemuMonitorGetIOThreads(qemuMonitorPtr mon,
return
qemuMonitorJSONGetIOThreads
(
mon
,
iothreads
);
}
void
qemuMonitorIOThread
sInfoFree
(
qemuMonitorIOThreads
InfoPtr
iothread
)
void
qemuMonitorIOThread
InfoFree
(
qemuMonitorIOThread
InfoPtr
iothread
)
{
if
(
!
iothread
)
return
;
...
...
src/qemu/qemu_monitor.h
浏览文件 @
9e48f6cf
...
...
@@ -872,17 +872,17 @@ int qemuMonitorGetGuestCPU(qemuMonitorPtr mon,
int
qemuMonitorRTCResetReinjection
(
qemuMonitorPtr
mon
);
typedef
struct
_qemuMonitorIOThread
sInfo
qemuMonitorIOThreads
Info
;
typedef
qemuMonitorIOThread
sInfo
*
qemuMonitorIOThreads
InfoPtr
;
typedef
struct
_qemuMonitorIOThread
Info
qemuMonitorIOThread
Info
;
typedef
qemuMonitorIOThread
Info
*
qemuMonitorIOThread
InfoPtr
;
struct
_qemuMonitorIOThread
s
Info
{
struct
_qemuMonitorIOThreadInfo
{
char
*
name
;
int
thread_id
;
};
int
qemuMonitorGetIOThreads
(
qemuMonitorPtr
mon
,
qemuMonitorIOThread
s
InfoPtr
**
iothreads
);
qemuMonitorIOThreadInfoPtr
**
iothreads
);
void
qemuMonitorIOThread
sInfoFree
(
qemuMonitorIOThreads
InfoPtr
iothread
);
void
qemuMonitorIOThread
InfoFree
(
qemuMonitorIOThread
InfoPtr
iothread
);
typedef
struct
_qemuMonitorMemoryDeviceInfo
qemuMonitorMemoryDeviceInfo
;
typedef
qemuMonitorMemoryDeviceInfo
*
qemuMonitorMemoryDeviceInfoPtr
;
...
...
src/qemu/qemu_monitor_json.c
浏览文件 @
9e48f6cf
...
...
@@ -6411,13 +6411,13 @@ qemuMonitorJSONRTCResetReinjection(qemuMonitorPtr mon)
*/
int
qemuMonitorJSONGetIOThreads
(
qemuMonitorPtr
mon
,
qemuMonitorIOThread
s
InfoPtr
**
iothreads
)
qemuMonitorIOThreadInfoPtr
**
iothreads
)
{
int
ret
=
-
1
;
virJSONValuePtr
cmd
;
virJSONValuePtr
reply
=
NULL
;
virJSONValuePtr
data
;
qemuMonitorIOThread
s
InfoPtr
*
infolist
=
NULL
;
qemuMonitorIOThreadInfoPtr
*
infolist
=
NULL
;
int
n
=
0
;
size_t
i
;
...
...
@@ -6455,7 +6455,7 @@ qemuMonitorJSONGetIOThreads(qemuMonitorPtr mon,
for
(
i
=
0
;
i
<
n
;
i
++
)
{
virJSONValuePtr
child
=
virJSONValueArrayGet
(
data
,
i
);
const
char
*
tmp
;
qemuMonitorIOThread
s
InfoPtr
info
;
qemuMonitorIOThreadInfoPtr
info
;
if
(
VIR_ALLOC
(
info
)
<
0
)
goto
cleanup
;
...
...
@@ -6486,7 +6486,7 @@ qemuMonitorJSONGetIOThreads(qemuMonitorPtr mon,
cleanup:
if
(
ret
<
0
&&
infolist
)
{
for
(
i
=
0
;
i
<
n
;
i
++
)
qemuMonitorIOThread
s
InfoFree
(
infolist
[
i
]);
qemuMonitorIOThreadInfoFree
(
infolist
[
i
]);
VIR_FREE
(
infolist
);
}
virJSONValueFree
(
cmd
);
...
...
src/qemu/qemu_monitor_json.h
浏览文件 @
9e48f6cf
...
...
@@ -467,7 +467,7 @@ int qemuMonitorJSONGetGuestCPU(qemuMonitorPtr mon,
int
qemuMonitorJSONRTCResetReinjection
(
qemuMonitorPtr
mon
);
int
qemuMonitorJSONGetIOThreads
(
qemuMonitorPtr
mon
,
qemuMonitorIOThread
s
InfoPtr
**
iothreads
)
qemuMonitorIOThreadInfoPtr
**
iothreads
)
ATTRIBUTE_NONNULL
(
2
);
int
qemuMonitorJSONGetMemoryDeviceInfo
(
qemuMonitorPtr
mon
,
...
...
src/qemu/qemu_process.c
浏览文件 @
9e48f6cf
...
...
@@ -2224,7 +2224,7 @@ qemuProcessDetectIOThreadPIDs(virQEMUDriverPtr driver,
int
asyncJob
)
{
qemuDomainObjPrivatePtr
priv
=
vm
->
privateData
;
qemuMonitorIOThread
s
InfoPtr
*
iothreads
=
NULL
;
qemuMonitorIOThreadInfoPtr
*
iothreads
=
NULL
;
int
niothreads
=
0
;
int
ret
=
-
1
;
size_t
i
;
...
...
@@ -2267,7 +2267,7 @@ qemuProcessDetectIOThreadPIDs(virQEMUDriverPtr driver,
cleanup:
if
(
iothreads
)
{
for
(
i
=
0
;
i
<
niothreads
;
i
++
)
qemuMonitorIOThread
s
InfoFree
(
iothreads
[
i
]);
qemuMonitorIOThreadInfoFree
(
iothreads
[
i
]);
VIR_FREE
(
iothreads
);
}
return
ret
;
...
...
tests/qemumonitorjsontest.c
浏览文件 @
9e48f6cf
...
...
@@ -2241,7 +2241,7 @@ testQemuMonitorJSONGetIOThreads(const void *data)
{
virDomainXMLOptionPtr
xmlopt
=
(
virDomainXMLOptionPtr
)
data
;
qemuMonitorTestPtr
test
=
qemuMonitorTestNewSimple
(
true
,
xmlopt
);
qemuMonitorIOThread
s
InfoPtr
*
info
;
qemuMonitorIOThreadInfoPtr
*
info
;
int
ninfo
=
0
;
int
ret
=
-
1
;
size_t
i
;
...
...
@@ -2300,7 +2300,7 @@ testQemuMonitorJSONGetIOThreads(const void *data)
cleanup:
qemuMonitorTestFree
(
test
);
for
(
i
=
0
;
i
<
ninfo
;
i
++
)
qemuMonitorIOThread
s
InfoFree
(
info
[
i
]);
qemuMonitorIOThreadInfoFree
(
info
[
i
]);
VIR_FREE
(
info
);
return
ret
;
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录