All of lore.kernel.org
 help / color / mirror / Atom feed
From: ANNIE LI <annie.li@oracle.com>
To: Ian Jackson <Ian.Jackson@eu.citrix.com>
Cc: James Harper <james.harper@bendigoit.com.au>,
	xen-devel@lists.xensource.com
Subject: Re: bug in windows "on_reboot = 'preserve'"
Date: Fri, 30 Oct 2009 10:03:03 +0800	[thread overview]
Message-ID: <4AEA4957.6060703@oracle.com> (raw)
In-Reply-To: <19176.30378.266644.958440@mariner.uk.xensource.com>


[-- Attachment #1.1: Type: text/plain, Size: 2854 bytes --]

Following is a way to make system crash from keyboard.

Thanks
Annie.


  Forcing a System Crash from the Keyboard

A system crash can be directly caused from most keyboards. In 
Windows XP, this feature is available on i8042prt ports (PS/2 
keyboards), while in Windows Vista and later, it is available on USB 
keyboards as well. It can also be fully configured to accommodate 
various keyboards using the registry key settings.

Two preparations must be made before this can be done:

   1. If you wish a crash dump file to be written, you must enable such
      dump files, choose the path and file name, and select the size of
      the dump file. For details, see Enabling a Kernel-Mode Dump File
      <r10_dump_files_d9e8043c-8489-4bd3-8f95-b76c2f8a4bf9.xml.htm>.
   2. With PS/2 keyboards, you must enable the keyboard-initiated crash
      in the registry. In the registry key
      *HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\i8042prt\Parameters*,
      create a value named *CrashOnCtrlScroll*, and set it equal to
      REG_DWORD 0x1 (or any nonzero value).
   3. With USB keyboards, you must set the registry key
      *HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\kbdhid\Parameters*
      and create a value named *CrashOnCtrlScroll*, and set it equal to
      REG_DWORD 0x1 (or any nonzero value).

      *Note*  There is a limitation with the /Kbdhid.sys/ driver that
      allows you to generate the memory dump process by using a USB
      keyboard. The CTRL+SCROLL LOCK+SCROLL LOCK keyboard shortcut does
      not work if the computer stops responding at a high interrupt
      request level (IRQL). This limitation exists because the
      /Kbdhid.sys/ driver operates at a lower IRQL than the i8042prt.sys
      driver. For more information on using this feature with the USB
      keyboards, refer to the article  Generate a memory dump file by
      using the keyboard <http://go.microsoft.com/fwlink/?linkid=106065>.

The system must be rebooted before these changes will take effect.

After this has been done, the keyboard crash can be initiated as 
follows. Hold down the /rightmost /CTRL key, and press the SCROLL LOCK/ 
/key twice.

It is possible for a system to freeze in such a way that this 
CTRL+SCROLL LOCK+SCROLL LOCK sequence will not work. However, this 
should be a very rare occurrence. The CTRL+SCROLL LOCK+SCROLL LOCK crash 
initiation will work even in many instances where CTRL+ALT+DELETE does 
not work.

The system then calls *KeBugCheck* and issues bug check 0xE2 
<t07_bugs_e0_84753fee-8a24-4049-bb27-aa07a5fc60de.xml.htm> 
(MANUALLY_INITIATED_CRASH). Unless crash dumps have been disabled, a 
crash dump file is written at this point.

If a kernel debugger is attached to the frozen machine, the machine will 
break into the kernel debugger after the crash dump file has been written.


[-- Attachment #1.2.1: Type: text/html, Size: 3354 bytes --]

[-- Attachment #1.2.2: Type: text/html, Size: 338 bytes --]

[-- Attachment #2: Type: text/plain, Size: 138 bytes --]

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

      parent reply	other threads:[~2009-10-30  2:03 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-10-25  7:57 bug in windows "on_reboot = 'preserve'" James Harper
2009-10-25  8:24 ` Keir Fraser
2009-10-28 16:51 ` Ian Jackson
2009-10-29  0:14   ` James Harper
2009-10-29 11:01   ` Tim Deegan
2009-10-30  2:03   ` ANNIE LI [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4AEA4957.6060703@oracle.com \
    --to=annie.li@oracle.com \
    --cc=Ian.Jackson@eu.citrix.com \
    --cc=james.harper@bendigoit.com.au \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.