mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 21:55:25 +00:00
conf: allow shmem name change in migration
The shmem 'name' specifies the shared memory path in '/dev/shm/', however, we may need to change it to avoid filename conflict when VM migrate to other host. This patch remove shmem name consistency check. Signed-off-by: Wang Xin <wangxinxin.wang@huawei.com> Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
This commit is contained in:
parent
493d2769f2
commit
e648616a6a
@ -23787,13 +23787,6 @@ static bool
|
|||||||
virDomainShmemDefCheckABIStability(virDomainShmemDefPtr src,
|
virDomainShmemDefCheckABIStability(virDomainShmemDefPtr src,
|
||||||
virDomainShmemDefPtr dst)
|
virDomainShmemDefPtr dst)
|
||||||
{
|
{
|
||||||
if (STRNEQ_NULLABLE(src->name, dst->name)) {
|
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
|
||||||
_("Target shared memory name '%s' does not match source "
|
|
||||||
"'%s'"), dst->name, src->name);
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (src->role != dst->role) {
|
if (src->role != dst->role) {
|
||||||
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
|
||||||
_("Target shared memory role '%s' does not match "
|
_("Target shared memory role '%s' does not match "
|
||||||
|
Loading…
Reference in New Issue
Block a user