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

xen-devel

[Top] [All Lists]

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

To: 'Ian Jackson' <Ian.Jackson@xxxxxxxxxxxxx>
Subject: RE: [Xen-devel] [PATCH] ioemu-remote: check shutdown_requested timely.
From: "Cui, Dexuan" <dexuan.cui@xxxxxxxxx>
Date: 2008年12月31日 10:22:25 +0800
Accept-language: zh-CN, en-US
Acceptlanguage: zh-CN, en-US
Cc: "'xen-devel@xxxxxxxxxxxxxxxxxxx'" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: 2008年12月30日 18:23:09 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <18778.20936.119957.593989@xxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <EADF0A36011179459010BDF5142A4575045D4A00@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <18778.20936.119957.593989@xxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AclqnwK6Xyq/oMrZQIC4IY9f0atJjQATdkrA
Thread-topic: [Xen-devel] [PATCH] ioemu-remote: check shutdown_requested timely.
Ian Jackson wrote:
> 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.
The vl.c: main_loop() checks qemu_shutdown_requested but we don't use it; what 
we use is helper2.c:main_loop() which doesn't exit() when the variable is 1.
> 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.
Yes, I tested it and don't meet with the issue you mention. I think when we 
specify 'on_poweroff=preserve' in hvm config file, xend wouldn't send SIGHUP to 
ioemu at all when guest itself powers off normally.
> 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.
I see you fix in the qemu-xen-unstable tree. I think it's a better fix.
Thanks,
 -- Dexuan
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
Previous by Date: RE: [Xen-devel] [RFC][PATCH] 0/9 Populate-on-demand memory , Tian, Kevin
Next by Date: RE: [Xen-devel] Windows SMP , Tian, Kevin
Previous by Thread: Re: [Xen-devel] [PATCH] ioemu-remote: check shutdown_requested timely. , Ian Jackson
Next by Thread: [Xen-devel] xm block-attach DomID tap:aio:/... , Wayne Gong
Indexes: [Date] [Thread] [Top] [All Lists]

Copyright ©, Citrix Systems Inc. All rights reserved. Legal and Privacy
Citrix This site is hosted by Citrix

AltStyle によって変換されたページ (->オリジナル) /