[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Xen-devel] [PATCH 0 of 3] xl and hotplug: Introduce and use shutdown and reboot xm compatibility options



On Tue, 2012-09-25 at 16:11 +0100, Sander Eikelenboom wrote:

> The only relative simple implementation i thought of was direct
> shutting down all, and when the -w parameter was set, just loop and
> wait on events until the only running domain is domain-0.
> Although this exactly does what has to be done, it somehow sounds a
> bit dirty.

I think you can allocate an array of libxl_evenable_domain_death*, of
nr_doms in size and then as you shutdown each domain call
libxl_evenable_domain_death for it too.

Then you loop waiting for destroy events, calling
libxl_evdisable_domain_death as each domain dies, while counting back
from nr_doms until 0. When it reaches 0 everything you asked for has
been shutdown.

Or something like that, I've not actually implemented it ;-)

Ian.



_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.