From: Ian Jackson Subject: Re: [PATCH 2/2] libxl: treat "dying" domains as destroyed Date: Mon, 30 Jan 2012 15:19:27 +0000 Message-ID: <20262.46335.345850.567037@mariner.uk.xensource.com> References: <20262.41566.25707.184425@mariner.uk.xensource.com> <1327932087-25001-2-git-send-email-ian.jackson@eu.citrix.com> <1327935771.26983.239.camel@zakaz.uk.xensource.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1327935771.26983.239.camel@zakaz.uk.xensource.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: Ian Campbell Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org Ian Campbell writes ("Re: [Xen-devel] [PATCH 2/2] libxl: treat "dying" domains as destroyed"): > This seems to do what I would expect, I tried with "xl reboot", "xl > shutdown" & "xl destroy" as well as in-guest shutdown (which is no > different in reality from "xl shutdown"). No leaks and in each case it > rebooted, destroyed etc the domain as expected. Yes, great, thanks. > > +static void domain_death_occurred(libxl__egc *egc, > > + libxl_evgen_domain_death **evg_upd, > > + const char *why) { > > + /* Removes **evg from the list and advances *evg_upd to the next > > + * entry. Call sites in _xswatch_callback must use "continue". */ > > There's no **evg in this context? ITYM *evg or just evg? I meant **evg_upd. The actual struct is removed from the list, after all. > Also it's not clear which list this talks about since there is > death_list and death_reported as well as, presumably, a list of current > domain infos somewhere. Did you mean "moves evg from death_list to > death_reported list and advances *evg_upd ...."? Yes. > > + EGC_GC; > > + libxl_evgen_domain_death *const evg = *evg_upd; > > + > > + LIBXL__LOG(CTX, LIBXL__LOG_DEBUG, " death %s", why); > > LIBXL__LOG puts a space between the boilerplate and the message so you > end up with two spaces before "death" here. > > Also the resultant messages are: > " death destroyed" > " death missing" > " death dying" > in context that is: > libxl: debug: libxl.c:696:domain_death_occurred: death dying > > Which could do with a noun or something. I'll remove the word "death" (and the extra space). Thanks, Ian.