Guest User

Untitled

a guest
Jan 18th, 2018
136
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.67 KB | None | 0 0
  1. typedef struct _SYSTEM_SPECULATION_CONTROL_INFORMATION
  2. {
  3. struct
  4. {
  5. ULONG BpbEnabled : 1; // IBPB/IBRS protection enabled
  6. ULONG BpbDisabledSystemPolicy : 1; // PolicyOverride/PolicyOverrideMask registry setting
  7. ULONG BpbDisabledNoHardwareSupport : 1; // BIOS/Firmware update not installed (or does this mean AMD CPU?)
  8. ULONG SpecCtrlEnumerated : 1; // CPU SPEC_CTRL MSR support (IBRS)
  9. ULONG SpecCmdEnumerated : 1; // CPU PRED_CMD MSR support (IBPB)
  10. ULONG IbrsPresent : 1; // IBRS (Indirect Branch Restricted Speculation) support present (if SpecCtrlEnumerated)
  11. ULONG StibpPresent : 1; // STIBP (Single Thread Indirect Branch Predictors) support present (if SpecCtrlEnumerated)
  12. ULONG SmepPresent : 1; // SMEP (Supervisor-Mode Execution Prevention) support present (Ivy Bridge and later)
  13. ULONG Reserved : 24; //
  14. } SpeculationControlFlags;
  15. } SYSTEM_SPECULATION_CONTROL_INFORMATION, *PSYSTEM_SPECULATION_CONTROL_INFORMATION;
  16.  
  17. Notes:
  18.  
  19. IbrsPresent and StibpPresent: BIOS/Firmware update installed
  20.  
  21.  
  22.  
  23.  
  24.  
  25.  
  26. #define SystemKernelVaShadowInformation (SYSTEM_INFORMATION_CLASS)196
  27. typedef struct _SYSTEM_KERNEL_VA_SHADOW_INFORMATION
  28. {
  29. struct
  30. {
  31. ULONG KvaShadowEnabled : 1; // Kernel VA shadowing enabled
  32. ULONG KvaShadowUserGlobal : 1; // Kernel VA shadowing on user pages marked global
  33. ULONG KvaShadowPcid : 1; // CPU has PCID support (Westmere and later)
  34. ULONG KvaShadowInvpcid : 1; // CPU has NVPCID support -- (Haswell and later)
  35. ULONG Reserved : 28; //
  36. } KvaShadowFlags;
  37. } SYSTEM_KERNEL_VA_SHADOW_INFORMATION, *PSYSTEM_KERNEL_VA_SHADOW_INFORMATION;
Add Comment
Please, Sign In to add comment