From: Ian Campbell Subject: Re: [Xen-users] Xen 4.2.0 Release Plan / TODO Date: Tue, 4 Sep 2012 09:51:57 +0100 Message-ID: <1346748717.6712.12.camel@zakaz.uk.xensource.com> References: <1346665360.25864.2.camel@zakaz.uk.xensource.com> <20120904090601.77377684@internecto.net> <1346743867.10570.2.camel@dagon.hellion.org.uk> <20120904103750.112fb44d@internecto.net> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20120904103750.112fb44d@internecto.net> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Mark van Dijk Cc: "xen-users@lists.xen.org" , xen-devel List-Id: xen-devel@lists.xenproject.org On Tue, 2012-09-04 at 09:37 +0100, Mark van Dijk wrote: > Back when I used xm I remember using the 'xm reset' command that just > simply emulates a manual press of the reset button. By coincidence, > today I found xl lacks this command. In effect I think all it does is > 'xl destroy', wait until the domain is properly released and then 'xl > create' it again. This is a bit more convenient than manually issuing > both commands because the time it takes to destroy a VM varies. I can see how that would be useful. I think it is now too late for 4.2.0 (although it might depend on the patch) but if someone were to produce a patch for 4.3 we could consider a backport for 4.2.1. I think you would just need to expose a libxl function which ended up doing "xc_domain_shutdown(CTX->xch, domid, SHUTDOWN_reboot)". This would kill the domain and set its shutdown reason to SHUTDOWN_reboot which would signal the xl daemon monitoring the domain to restart it. Wire that libxl function up to xl reset (add it to xl_cmdtable.c, xl_cmdimpl.c and docs/man/xl.cfg.pod.1) and you are good to go, I think. Let me know if you want to give it a go and require more guidance. Ian.