Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
ecfff1da
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看板
提交
ecfff1da
编写于
1月 10, 2013
作者:
J
Jiri Denemark
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Introduce VIR_MIGRATE_COMPRESSED flag
This flag may be used with migration APIs to request compression of migration data.
上级
7ea8c5d1
变更
3
隐藏空白更改
内联
并排
Showing
3 changed file
with
13 addition
and
2 deletion
+13
-2
include/libvirt/libvirt.h.in
include/libvirt/libvirt.h.in
+1
-0
tools/virsh-domain.c
tools/virsh-domain.c
+8
-0
tools/virsh.pod
tools/virsh.pod
+4
-2
未找到文件。
include/libvirt/libvirt.h.in
浏览文件 @
ecfff1da
...
...
@@ -1187,6 +1187,7 @@ typedef enum {
* when supported */
VIR_MIGRATE_UNSAFE
=
(
1
<<
9
),
/* force migration even if it is considered unsafe */
VIR_MIGRATE_OFFLINE
=
(
1
<<
10
),
/* offline migrate */
VIR_MIGRATE_COMPRESSED
=
(
1
<<
11
),
/* compress data during migration */
}
virDomainMigrateFlags
;
/* Domain migration. */
...
...
tools/virsh-domain.c
浏览文件 @
ecfff1da
...
...
@@ -8340,6 +8340,11 @@ static const vshCmdOptDef opts_migrate[] = {
.
flags
=
0
,
.
help
=
N_
(
"display the progress of migration"
)
},
{.
name
=
"compressed"
,
.
type
=
VSH_OT_BOOL
,
.
flags
=
0
,
.
help
=
N_
(
"compress repeated pages during live migration"
)
},
{.
name
=
"domain"
,
.
type
=
VSH_OT_DATA
,
.
flags
=
VSH_OFLAG_REQ
,
...
...
@@ -8430,6 +8435,9 @@ doMigrate(void *opaque)
if
(
vshCommandOptBool
(
cmd
,
"unsafe"
))
flags
|=
VIR_MIGRATE_UNSAFE
;
if
(
vshCommandOptBool
(
cmd
,
"compressed"
))
flags
|=
VIR_MIGRATE_COMPRESSED
;
if
(
vshCommandOptBool
(
cmd
,
"offline"
))
{
flags
|=
VIR_MIGRATE_OFFLINE
;
}
...
...
tools/virsh.pod
浏览文件 @
ecfff1da
...
...
@@ -1043,7 +1043,7 @@ stats.
=item B<migrate> [I<--live>] [I<--offline>] [I<--direct>] [I<--p2p> [I<--tunnelled>]]
[I<--persistent>] [I<--undefinesource>] [I<--suspend>] [I<--copy-storage-all>]
[I<--copy-storage-inc>] [I<--change-protection>] [I<--unsafe>] [I<--verbose>]
I<domain> I<desturi> [I<migrateuri>] [I<dname>]
[I<--compressed>]
I<domain> I<desturi> [I<migrateuri>] [I<dname>]
[I<--timeout> B<seconds>] [I<--xml> B<file>]
Migrate domain to another host. Add I<--live> for live migration; <--p2p>
...
...
@@ -1064,7 +1064,9 @@ host. I<--change-protection> enforces that no incompatible configuration
changes will be made to the domain while the migration is underway; this flag
is implicitly enabled when supported by the hypervisor, but can be explicitly
used to reject the migration if the hypervisor lacks change protection
support. I<--verbose> displays the progress of migration.
support. I<--verbose> displays the progress of migration. I<--compressed>
activates compression of memory pages that have to be transferred repeatedly
during live migration.
B<Note>: Individual hypervisors usually do not support all possible types of
migration. For example, QEMU does not support direct migration.
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录