mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-23 14:15:28 +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,
|
||||
unsigned int flags)
|
||||
{
|
||||
qemuDomainObjPrivatePtr priv = vm->privateData;
|
||||
int nsnapshots;
|
||||
int pauseReason;
|
||||
size_t i;
|
||||
@ -1131,7 +1132,13 @@ qemuMigrationSrcIsAllowed(virQEMUDriverPtr driver,
|
||||
_("cannot migrate domain with I/O error"));
|
||||
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 */
|
||||
|
Loading…
Reference in New Issue
Block a user