You need to sign in or sign up before continuing.
提交 8f8bba11 编写于 作者: M Marc-André Lureau 提交者: Michal Privoznik

qemu-migration: prevent migration if dbus-vmstate is required

Signed-off-by: NMarc-André Lureau <marcandre.lureau@redhat.com>
Reviewed-by: NMichal Privoznik <mprivozn@redhat.com>
上级 07552343
...@@ -1105,6 +1105,7 @@ qemuMigrationSrcIsAllowed(virQEMUDriverPtr driver, ...@@ -1105,6 +1105,7 @@ qemuMigrationSrcIsAllowed(virQEMUDriverPtr driver,
bool remote, bool remote,
unsigned int flags) unsigned int flags)
{ {
qemuDomainObjPrivatePtr priv = vm->privateData;
int nsnapshots; int nsnapshots;
int pauseReason; int pauseReason;
size_t i; size_t i;
...@@ -1131,7 +1132,13 @@ qemuMigrationSrcIsAllowed(virQEMUDriverPtr driver, ...@@ -1131,7 +1132,13 @@ qemuMigrationSrcIsAllowed(virQEMUDriverPtr driver,
_("cannot migrate domain with I/O error")); _("cannot migrate domain with I/O error"));
return false; return false;
} }
}
if (virHashSize(priv->dbusVMStates) > 0 &&
!virQEMUCapsGet(priv->qemuCaps, QEMU_CAPS_DBUS_VMSTATE)) {
virReportError(VIR_ERR_OPERATION_INVALID, "%s",
_("domain requires dbus-vmstate support"));
return false;
} }
/* following checks don't make sense for offline migration */ /* following checks don't make sense for offline migration */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册