From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LczOj-0004UV-To for qemu-devel@nongnu.org; Fri, 27 Feb 2009 04:52:50 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LczOi-0004UC-T4 for qemu-devel@nongnu.org; Fri, 27 Feb 2009 04:52:49 -0500 Received: from [199.232.76.173] (port=33510 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LczOi-0004U2-G7 for qemu-devel@nongnu.org; Fri, 27 Feb 2009 04:52:48 -0500 Received: from pelvoux.gotadsl.co.uk ([81.6.248.91]:52898) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LczOh-0007Rf-Gx for qemu-devel@nongnu.org; Fri, 27 Feb 2009 04:52:47 -0500 Received: from fozzy by ecrins.fosdick.home.net with local (Exim 4.69) (envelope-from ) id 1LczRM-0007iI-3i for qemu-devel@nongnu.org; Fri, 27 Feb 2009 09:55:32 +0000 Subject: Re: [Qemu-devel] Hardware watchdogs (patch for discussion only) From: Steve Fosdick In-Reply-To: <20090226144511.GC14001@amd.home.annexia.org> References: <20090225233718.GA15750@amd.home.annexia.org> <20090226105106.GD22494@redhat.com> <1235658682.5894.152.camel@ecrins.fosdick.home.net> <20090226144511.GC14001@amd.home.annexia.org> Content-Type: text/plain Content-Transfer-Encoding: 7bit Date: Fri, 27 Feb 2009 09:55:31 +0000 Message-Id: <1235728531.5894.181.camel@ecrins.fosdick.home.net> Mime-Version: 1.0 Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org On Thu, 2009-02-26 at 14:45 +0000, Richard W.M. Jones wrote: > The Intel 6300ESB in fact offers this possibility already. As with > other high-end watchdog hardware, it can be configured to send a > "pretimer interrupt". For example, if the watchdog is set to expire > after 60 seconds, you can get an interrupt N seconds before this, > which you can use to try a graceful shutdown. > > Having said that, Linux watchdog software doesn't support this feature ... Am I right in thinking that the kernel will not respond to an ACPI event that indicates a power button has been pressed but forward it to userspace where something (acpid) should respond? If so there isn't much point in making the pre-timer interrupt do that as we are assuming userspace is dead. Perhaps instead it could use the Alt-SysRq mechanism to do an emergency sync,reboot? Regards, Steve.