From: Ian Jackson Subject: Re: [PATCH 05/11] libxl: Provide libxl_domain_rename Date: Fri, 26 Mar 2010 10:40:46 +0000 Message-ID: <19372.36654.365891.958299@mariner.uk.xensource.com> References: <1269543854-7780-1-git-send-email-ian.jackson@eu.citrix.com> <1269543854-7780-6-git-send-email-ian.jackson@eu.citrix.com> <4BAC85E8.3030106@eu.citrix.com> <19372.35641.851620.698017@mariner.uk.xensource.com> <4BAC8DC3.10309@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4BAC8DC3.10309@eu.citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org Vincent Hanquez writes ("Re: [Xen-devel] [PATCH 05/11] libxl: Provide libxl_domain_rename"): > if you want some kind of migration lock, put in xl where you define the > policy. That is exactly what I have done. The lock is implemented using the name in xenstore, which xl modifies in a transaction. However, following the principle that libxl callers should not access xenstore directly, this is mediated by the domain rename function. libxl callers who do not care about the old name when setting the new one can simply pass 0 for that argument to the rename function. Ian.