Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
93d56e9d
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,发现更多精彩内容 >>
提交
93d56e9d
编写于
10月 20, 2015
作者:
J
Jiri Denemark
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
qemu: Add APIs for migrate-incoming QMP command
Signed-off-by:
N
Jiri Denemark
<
jdenemar@redhat.com
>
上级
04c721f2
变更
4
隐藏空白更改
内联
并排
Showing
4 changed file
with
45 addition
and
0 deletion
+45
-0
src/qemu/qemu_monitor.c
src/qemu/qemu_monitor.c
+12
-0
src/qemu/qemu_monitor.h
src/qemu/qemu_monitor.h
+3
-0
src/qemu/qemu_monitor_json.c
src/qemu/qemu_monitor_json.c
+25
-0
src/qemu/qemu_monitor_json.h
src/qemu/qemu_monitor_json.h
+5
-0
未找到文件。
src/qemu/qemu_monitor.c
浏览文件 @
93d56e9d
...
...
@@ -3811,3 +3811,15 @@ qemuMonitorGetMemoryDeviceInfo(qemuMonitorPtr mon,
return
ret
;
}
int
qemuMonitorMigrateIncoming
(
qemuMonitorPtr
mon
,
const
char
*
uri
)
{
VIR_DEBUG
(
"uri=%s"
,
uri
);
QEMU_CHECK_MONITOR_JSON
(
mon
);
return
qemuMonitorJSONMigrateIncoming
(
mon
,
uri
);
}
src/qemu/qemu_monitor.h
浏览文件 @
93d56e9d
...
...
@@ -924,6 +924,9 @@ int qemuMonitorGetMemoryDeviceInfo(qemuMonitorPtr mon,
virHashTablePtr
*
info
)
ATTRIBUTE_NONNULL
(
2
);
int
qemuMonitorMigrateIncoming
(
qemuMonitorPtr
mon
,
const
char
*
uri
);
/**
* When running two dd process and using <> redirection, we need a
* shell that will not truncate files. These two strings serve that
...
...
src/qemu/qemu_monitor_json.c
浏览文件 @
93d56e9d
...
...
@@ -6627,3 +6627,28 @@ qemuMonitorJSONFindLinkPath(qemuMonitorPtr mon,
VIR_FREE
(
linkname
);
return
ret
;
}
int
qemuMonitorJSONMigrateIncoming
(
qemuMonitorPtr
mon
,
const
char
*
uri
)
{
int
ret
=
-
1
;
virJSONValuePtr
cmd
;
virJSONValuePtr
reply
=
NULL
;
if
(
!
(
cmd
=
qemuMonitorJSONMakeCommand
(
"migrate-incoming"
,
"s:uri"
,
uri
,
NULL
)))
return
-
1
;
if
(
qemuMonitorJSONCommand
(
mon
,
cmd
,
&
reply
)
<
0
)
goto
cleanup
;
ret
=
qemuMonitorJSONCheckError
(
cmd
,
reply
);
cleanup:
virJSONValueFree
(
cmd
);
virJSONValueFree
(
reply
);
return
ret
;
}
src/qemu/qemu_monitor_json.h
浏览文件 @
93d56e9d
...
...
@@ -480,4 +480,9 @@ int qemuMonitorJSONFindLinkPath(qemuMonitorPtr mon,
const
char
*
name
,
char
**
path
)
ATTRIBUTE_NONNULL
(
1
)
ATTRIBUTE_NONNULL
(
2
)
ATTRIBUTE_NONNULL
(
3
);
int
qemuMonitorJSONMigrateIncoming
(
qemuMonitorPtr
mon
,
const
char
*
uri
)
ATTRIBUTE_NONNULL
(
1
)
ATTRIBUTE_NONNULL
(
2
);
#endif
/* QEMU_MONITOR_JSON_H */
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录