From e648616a6a64c6efa565ed7189ef59bab8858f51 Mon Sep 17 00:00:00 2001 From: Wang Xin Date: Fri, 24 Jul 2020 11:34:12 +0800 Subject: [PATCH] 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 Reviewed-by: Martin Kletzander --- src/conf/domain_conf.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c index 4a47dc8d0a..fd8cdb7695 100644 --- a/src/conf/domain_conf.c +++ b/src/conf/domain_conf.c @@ -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 " -- 2.47.2