libxl: rename stubdomain when renaming domain.
authorIan Campbell <ian.campbell@citrix.com>
Mon, 23 Jul 2012 12:09:43 +0000 (13:09 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Mon, 23 Jul 2012 12:09:43 +0000 (13:09 +0100)
commita97def2ebbb36191e34cd7d19b94011e8a23b189
treef6ac42eab9d89c035b2611a5bdf9b8cd6bf0509d
parent925a783ab52af794a55670ba75d8cafe3048c728
libxl: rename stubdomain when renaming domain.

Otherwise after a localhost migrate of an HVM domain with a stubdomain we end
up with domains called "FOO" and "FOO--incoming-dm". This because we initially
create the domains as "FOO--incoming" and then rename to "FOO" inorder to
maintain the uniqueness of domain names on a host.

In this state a second attempt to migrate will fail upon attempting to create
a new domain named "FOO--incoming-dm"

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/libxl.c
tools/libxl/libxl_dm.c
tools/libxl/libxl_internal.h