From: Ian Jackson Subject: Re: question about migration Date: Mon, 4 Jan 2016 17:46:07 +0000 Message-ID: <22154.45023.342526.976735@mariner.uk.xensource.com> References: <567B58A0.7010201@cn.fujitsu.com> <567BE6B7.4030800@citrix.com> <567C9FBD.4000104@cn.fujitsu.com> <567CB2B7.9010808@cn.fujitsu.com> <568280A1.80703@citrix.com> <22154.36943.266930.151060@mariner.uk.xensource.com> <568AA001.2080904@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <568AA001.2080904@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: Wei Liu , "Ian.Campbell@citrix.com" , Wen Congyang , xen devel List-Id: xen-devel@lists.xenproject.org Andrew Cooper writes ("Re: [Xen-devel] question about migration"): > On 04/01/16 15:31, Ian Jackson wrote: > > * It is not possible to resume the domain in the source after it has > > suspended. > > This functionality exists and is already used in several circumstances, > both by libxl, and other toolstacks. Oh! > xl has an added split-brain problem here that plain demonic toolstacks > don't have; specifically that there are two completely independent > processes playing with the domain state at the same time. > > The daemonic xl needs to ignore DOMAIN_SHUTDOWN and tidy up only after > DOMAIN_DEATH. Under these circumstances, a failed migrate which resumes > the domain won't result in qemu being cleaned up. I think there is some kind of further underlying problem here. Suppose a domain goes into SHUTDOWN with reason code SUSPEND. Then later it is resumed again (perhaps the migration failed). And later it shuts down cleanly. Will this generate a second @releaseDomain ? How is a toolstack supposed to discover this situation ? Should libxl simply treat domains in state SHUTDOWN/SUSPEND as if they were running, and not issue a notification to anyone ? > > * @releaseDomain does not have a specific domain which is the "subject > > of @releaseDomain". Arguably this is unhelpful, but it is not > > libxl's fault. It arises from the VIRQ generated by Xen. Note that > > xenstored needs to search its own list of active domains to see what > > has happened; it generates the @releaseDomain event and throws away > > the domid. > > The semantics of @releaseDomain are quite mad, but this is have it has > always been. Yes. > The current semantics are a scalability limitation which someone in > XenServer will likely get around to in due course (we support 1000 VMs > per host). Jolly good :-). Ian.