提交 d17fab69 编写于 作者: M Martin Kletzander

qemu: Disable migration with ivshmem

It was never safe anyway and as such shouldn't have been enabled in the
first place.  Future patches will allow hot-(un)pluging of some ivshmem
devices as a workaround.
Signed-off-by: NMartin Kletzander <mkletzan@redhat.com>
上级 d7107959
...@@ -2352,6 +2352,12 @@ qemuMigrationIsAllowed(virQEMUDriverPtr driver, ...@@ -2352,6 +2352,12 @@ qemuMigrationIsAllowed(virQEMUDriverPtr driver,
return false; return false;
} }
} }
if (vm->def->nshmems) {
virReportError(VIR_ERR_OPERATION_INVALID, "%s",
_("migration with shmem device is not supported"));
return false;
}
} }
return true; return true;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册