]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
conf: allow shmem name change in migration
authorWang Xin <wangxinxin.wang@huawei.com>
Fri, 24 Jul 2020 03:34:12 +0000 (11:34 +0800)
committerMartin Kletzander <mkletzan@redhat.com>
Mon, 3 Aug 2020 08:57:47 +0000 (10:57 +0200)
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>
src/conf/domain_conf.c

index 4a47dc8d0a4a265997b347952dbfc7fca0c76c4c..fd8cdb76957c5a46b3e04747f6cb9f0091c6c0f5 100644 (file)
@@ -23787,13 +23787,6 @@ static bool
 virDomainShmemDefCheckABIStability(virDomainShmemDefPtr src,
                                    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) {
         virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
                        _("Target shared memory role '%s' does not match "