From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Hvu72-0007UW-23 for qemu-devel@nongnu.org; Wed, 06 Jun 2007 07:55:40 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Hvu70-0007UG-OY for qemu-devel@nongnu.org; Wed, 06 Jun 2007 07:55:39 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Hvu70-0007UD-IA for qemu-devel@nongnu.org; Wed, 06 Jun 2007 07:55:38 -0400 Received: from il.qumranet.com ([82.166.9.18]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Hvu70-0007ws-1a for qemu-devel@nongnu.org; Wed, 06 Jun 2007 07:55:38 -0400 Message-ID: <4666A0B6.7090304@qumranet.com> Date: Wed, 06 Jun 2007 14:55:34 +0300 From: Avi Kivity MIME-Version: 1.0 Subject: Re: [Qemu-devel] Detecting Client OS BSOF/Kernel Oops References: <20070504203016.2791gmx1@mx033.gmx.net> <46668393.2080208@gmx.at> In-Reply-To: <46668393.2080208@gmx.at> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit 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 Clemens Kolbitsch wrote: > Hi! > I'd like to detect if the client OS crashes... right now, only for > linux, but windows systems will become interesting for me as well in > the future... > > Is there an easy way of detecting if a BSOD or a kernel oops > happened?? Maybe that'd be possible by checking if the IP is inside a > certain range (I could find that location, I think... it does not have > to be working generically... for specific client OS would be > sufficient)!! You could try checking whether the hlt instruction (on x86) was executed with interrupts disabled. -- Do not meddle in the internals of kernels, for they are subtle and quick to panic.