提交 ffefe5fb 编写于 作者: L Luiz Capitulino 提交者: Eric Blake

qemu: qemuMonitorJSONMigrate(): Fix arguments' type

QMP in QEMU 0.13 has been fixed to enforce type correctness,
this means that boolean types must be true or false, not
integers.
Signed-off-by: NLuiz Capitulino <lcapitulino@redhat.com>
上级 f68fd147
......@@ -1601,9 +1601,9 @@ static int qemuMonitorJSONMigrate(qemuMonitorPtr mon,
int ret;
virJSONValuePtr cmd =
qemuMonitorJSONMakeCommand("migrate",
"i:detach", flags & QEMU_MONITOR_MIGRATE_BACKGROUND ? 1 : 0,
"i:blk", flags & QEMU_MONITOR_MIGRATE_NON_SHARED_DISK ? 1 : 0,
"i:inc", flags & QEMU_MONITOR_MIGRATE_NON_SHARED_INC ? 1 : 0,
"b:detach", flags & QEMU_MONITOR_MIGRATE_BACKGROUND ? 1 : 0,
"b:blk", flags & QEMU_MONITOR_MIGRATE_NON_SHARED_DISK ? 1 : 0,
"b:inc", flags & QEMU_MONITOR_MIGRATE_NON_SHARED_INC ? 1 : 0,
"s:uri", uri,
NULL);
virJSONValuePtr reply = NULL;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册