WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

Re: [Xen-devel] [PATCH] ioemu-remote: check shutdown_requested timely.

Cui, Dexuan writes ("[Xen-devel] [PATCH] ioemu-remote:
> After a recent merge of the ioemu-remote tree several weeks ago, I
> find in main() -> termsig_seup(), ioemu sets a SIGHUP handler that
> sets a global variable shutdown_requested to 1, but ioemu doesn't
> check the variable and as a result, ioemu wouldn't terminate when
> xend sends a SIGHUP to it; finally xend has to send a SIGKILL to it
> in 10 seconds. The small patch adds a check to terminate ioemu
> timely.

I can reproduce the problem you report here - the symptoms I see are
log messages in xend.log and that `xm destroy' is slow.

But while it's true that the main loop in vl.c doesn't check
qemu_shutdown_requested, that main loop is not compiled in in qemu-dm.
Did you test your fix ?  Your fix would also seem to make qemu-dm exit
immediately if the domain powers off even if on_poweroff=preserve.

The root cause of the problem seems to be that upstream qemu installs
signal handlers for the common terminating signals, which simply
request shutdown.  That's not appropriate for us because xend sends us
a signal when it wants us to really die.  So I have disabled that and
the fix should be in the usual places soon.

Ian.

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>