Skip to content

Commit e648616

Browse files
Wang Xinnertpinx
authored andcommitted
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 <[email protected]> Reviewed-by: Martin Kletzander <[email protected]>
1 parent 493d276 commit e648616

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/conf/domain_conf.c

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -23787,13 +23787,6 @@ static bool
2378723787
virDomainShmemDefCheckABIStability(virDomainShmemDefPtr src,
2378823788
virDomainShmemDefPtr dst)
2378923789
{
23790-
if (STRNEQ_NULLABLE(src->name, dst->name)) {
23791-
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
23792-
_("Target shared memory name '%s' does not match source "
23793-
"'%s'"), dst->name, src->name);
23794-
return false;
23795-
}
23796-
2379723790
if (src->role != dst->role) {
2379823791
virReportError(VIR_ERR_CONFIG_UNSUPPORTED,
2379923792
_("Target shared memory role '%s' does not match "

0 commit comments

Comments
 (0)