mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-11 07:17:44 +00:00
qemu-migration: prevent migration if dbus-vmstate is required
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Reviewed-by: Michal Privoznik <mprivozn@redhat.com>
This commit is contained in:
parent
0755234389
commit
8f8bba115d
@ -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,
|
|||||||
_("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 */
|
||||||
|
Loading…
Reference in New Issue
Block a user