<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Got BSOD with KeSaveExtendedProcessorState in Intel® ISA Extensions</title>
    <link>https://community.intel.com/t5/Intel-ISA-Extensions/Got-BSOD-with-KeSaveExtendedProcessorState/m-p/994132#M4778</link>
    <description>This issuem isn't directly related to the subject forum, but I guessed that some of you may be familiar with KeSaveExtendedProcessorState in WinDDK, or you can direct me to post this thread in the appropriate Intel forum, I already posted this issue in MSDN forum.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;In my driver for Windows 7 64 bits, I tried to use KeSaveExtendedProcessorState/KeRestoreExtendedProcessorState to save and restore extended processor states. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I used&amp;nbsp; RtlGetEnabledExtendedFeatures((ULONG64)(-1)) to get the enabled extended features (the returned value is 0x3 in one of my target system with Intel i7 dual core CPU, and use it as the first parameter for KeSaveExtendedProcessorState, and I used MmAllocateContiguousMemory(sizeof(XSTATE_SAVE), highAddress) with&amp;nbsp; highAddress&amp;nbsp; = 0xbfffffff to allocate the nonpaged memory used to save the extended states,&amp;nbsp; and raised IRQL to DISPATCH_LEVEL before KeSaveExtendedProcessorState. I got BSOD with following message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;0: kd&amp;gt; !analyze -v&lt;BR /&gt;*******************************************************************************&lt;BR /&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;BR /&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bugcheck Analysis&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;BR /&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;BR /&gt;*******************************************************************************&lt;/P&gt;&lt;P&gt;INVALID_EXTENDED_PROCESSOR_STATE (131)&lt;BR /&gt;Invalid combination of parameters was detected while saving or restoring&lt;BR /&gt;extended processor state.&lt;BR /&gt;Arguments:&lt;BR /&gt;Arg1: 0000000000000000, Invalid feature mask was passed or extended processor state is&lt;BR /&gt;&amp;nbsp;not enabled.&lt;BR /&gt;Arg2: 0000000000800000, Nonzero if extended state is enabled.&lt;BR /&gt;Arg3: 0000000000000003, The low 32 bits of the feature mask.&lt;BR /&gt;Arg4: 0000000000000000, The high 32 bits of the feature mask.&lt;/P&gt;&lt;P&gt;Did I miss anything?&lt;/P&gt;&lt;P&gt;Also, I noticed that (sizeof(XSTATE_SAVE)) is 0x38 bytes, it is apparently far too small to save the enabled exteand features, should I intitialize any components of the XSTATE_SAVE structures to pass additional memory space to save the enabled extended features?&amp;nbsp; Is there any sample code or documentation to demo how to properly use KeSaveExtendedProcessorState ?&amp;nbsp; In my driver, I alreay specify this code to run on thread 2 only.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;David&lt;/P&gt;</description>
    <pubDate>Tue, 28 Aug 2012 01:16:14 GMT</pubDate>
    <dc:creator>David_C_Intel3</dc:creator>
    <dc:date>2012-08-28T01:16:14Z</dc:date>
    <item>
      <title>Got BSOD with KeSaveExtendedProcessorState</title>
      <link>https://community.intel.com/t5/Intel-ISA-Extensions/Got-BSOD-with-KeSaveExtendedProcessorState/m-p/994132#M4778</link>
      <description>This issuem isn't directly related to the subject forum, but I guessed that some of you may be familiar with KeSaveExtendedProcessorState in WinDDK, or you can direct me to post this thread in the appropriate Intel forum, I already posted this issue in MSDN forum.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;P&gt;In my driver for Windows 7 64 bits, I tried to use KeSaveExtendedProcessorState/KeRestoreExtendedProcessorState to save and restore extended processor states. &lt;/P&gt;&lt;P&gt;&lt;BR /&gt;I used&amp;nbsp; RtlGetEnabledExtendedFeatures((ULONG64)(-1)) to get the enabled extended features (the returned value is 0x3 in one of my target system with Intel i7 dual core CPU, and use it as the first parameter for KeSaveExtendedProcessorState, and I used MmAllocateContiguousMemory(sizeof(XSTATE_SAVE), highAddress) with&amp;nbsp; highAddress&amp;nbsp; = 0xbfffffff to allocate the nonpaged memory used to save the extended states,&amp;nbsp; and raised IRQL to DISPATCH_LEVEL before KeSaveExtendedProcessorState. I got BSOD with following message:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;0: kd&amp;gt; !analyze -v&lt;BR /&gt;*******************************************************************************&lt;BR /&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;BR /&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Bugcheck Analysis&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;BR /&gt;*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; *&lt;BR /&gt;*******************************************************************************&lt;/P&gt;&lt;P&gt;INVALID_EXTENDED_PROCESSOR_STATE (131)&lt;BR /&gt;Invalid combination of parameters was detected while saving or restoring&lt;BR /&gt;extended processor state.&lt;BR /&gt;Arguments:&lt;BR /&gt;Arg1: 0000000000000000, Invalid feature mask was passed or extended processor state is&lt;BR /&gt;&amp;nbsp;not enabled.&lt;BR /&gt;Arg2: 0000000000800000, Nonzero if extended state is enabled.&lt;BR /&gt;Arg3: 0000000000000003, The low 32 bits of the feature mask.&lt;BR /&gt;Arg4: 0000000000000000, The high 32 bits of the feature mask.&lt;/P&gt;&lt;P&gt;Did I miss anything?&lt;/P&gt;&lt;P&gt;Also, I noticed that (sizeof(XSTATE_SAVE)) is 0x38 bytes, it is apparently far too small to save the enabled exteand features, should I intitialize any components of the XSTATE_SAVE structures to pass additional memory space to save the enabled extended features?&amp;nbsp; Is there any sample code or documentation to demo how to properly use KeSaveExtendedProcessorState ?&amp;nbsp; In my driver, I alreay specify this code to run on thread 2 only.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;David&lt;/P&gt;</description>
      <pubDate>Tue, 28 Aug 2012 01:16:14 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-ISA-Extensions/Got-BSOD-with-KeSaveExtendedProcessorState/m-p/994132#M4778</guid>
      <dc:creator>David_C_Intel3</dc:creator>
      <dc:date>2012-08-28T01:16:14Z</dc:date>
    </item>
    <item>
      <title>Got BSOD with KeSaveExtendedProcessorState</title>
      <link>https://community.intel.com/t5/Intel-ISA-Extensions/Got-BSOD-with-KeSaveExtendedProcessorState/m-p/994133#M4779</link>
      <description>Please post your stack trace</description>
      <pubDate>Wed, 29 Aug 2012 20:12:10 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-ISA-Extensions/Got-BSOD-with-KeSaveExtendedProcessorState/m-p/994133#M4779</guid>
      <dc:creator>Bernard</dc:creator>
      <dc:date>2012-08-29T20:12:10Z</dc:date>
    </item>
    <item>
      <title>Hi liliyapolak,</title>
      <link>https://community.intel.com/t5/Intel-ISA-Extensions/Got-BSOD-with-KeSaveExtendedProcessorState/m-p/994134#M4780</link>
      <description>Hi liliyapolak,

Thanks. Attached, please find the stack_trace.

David</description>
      <pubDate>Mon, 10 Sep 2012 21:13:36 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-ISA-Extensions/Got-BSOD-with-KeSaveExtendedProcessorState/m-p/994134#M4780</guid>
      <dc:creator>David_C_Intel3</dc:creator>
      <dc:date>2012-09-10T21:13:36Z</dc:date>
    </item>
    <item>
      <title>Hi David</title>
      <link>https://community.intel.com/t5/Intel-ISA-Extensions/Got-BSOD-with-KeSaveExtendedProcessorState/m-p/994135#M4781</link>
      <description>Hi David
             As I was able understand from your stack trace the crash has been caused due to some internal error inside KeSaveExtendedProcessorState routine which is part of NTOSKRNL module.Before calling offending routine try to run your code at IRQL level 0 or 1
Your allocated buffer is only 0x38 bytes could it be a failure of  one of Memory Menager allocation routines?.I do not think that insuficient memory resource could cause a bugcheck error.
&amp;gt;&amp;gt;sample code or documentation to demo how to properly use KeSaveExtendedProcessorState.&amp;gt;&amp;gt; 
Please follow this link "http://msdn.microsoft.com/en-us/library/windows/hardware/ff553238%28v=vs.85%29.aspx"
I would suggest you to put a breakpoint on KeSaveExtendedProcessorState function and perform single-stepping through the function ,while you are trying to reproduce the situation which caused the system crash.I would advise you to look carefuly at adress KeSaveExtendedProcessorState+0x1d5 where probably the crash has occured.
Another option is to use IDA PRO to learn the KeSaveExtendedProcessorState logic at machine code level</description>
      <pubDate>Tue, 11 Sep 2012 18:11:13 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-ISA-Extensions/Got-BSOD-with-KeSaveExtendedProcessorState/m-p/994135#M4781</guid>
      <dc:creator>Bernard</dc:creator>
      <dc:date>2012-09-11T18:11:13Z</dc:date>
    </item>
    <item>
      <title>See the requirements for the</title>
      <link>https://community.intel.com/t5/Intel-ISA-Extensions/Got-BSOD-with-KeSaveExtendedProcessorState/m-p/994136#M4782</link>
      <description>See the requirements for the underlying CPUi nstruction, that may help you understand what the problem is.</description>
      <pubDate>Tue, 25 Sep 2012 09:33:59 GMT</pubDate>
      <guid>https://community.intel.com/t5/Intel-ISA-Extensions/Got-BSOD-with-KeSaveExtendedProcessorState/m-p/994136#M4782</guid>
      <dc:creator>levicki</dc:creator>
      <dc:date>2012-09-25T09:33:59Z</dc:date>
    </item>
  </channel>
</rss>

