VirtualBox

Changeset 24453 in vbox for trunk/include


Ignore:
Timestamp:
Nov 6, 2009 3:43:52 PM (15 years ago)
Author:
vboxsync
Message:

CPUM: CPUID validation on state load.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/x86.h

    r24281 r24453  
    223223    /** Bit 10 - CNTX-ID - L1 Context ID. */
    224224    unsigned    u1CNTXID : 1;
    225     /** Reserved. */
    226     unsigned    u2Reserved2 : 2;
     225    /** Bit 11 - FMA. */
     226    unsigned    u1FMA : 1;
     227    /** Bit 12 - Reserved. */
     228    unsigned    u1Reserved2 : 1;
    227229    /** Bit 13 - CX16 - CMPXCHG16B. */
    228230    unsigned    u1CX16 : 1;
     
    245247    /** Bit 23 - POPCNT - Supports POPCNT. */
    246248    unsigned    u1POPCNT : 1;
    247     /** Reserved. */
    248     unsigned    u2Reserved4 : 2;
     249    /** Bit 24 - Reserved. */
     250    unsigned    u1Reserved4 : 1;
     251    /** Bit 25 - AES. */
     252    unsigned    u1AES : 1;
    249253    /** Bit 26 - XSAVE - Supports XSAVE. */
    250254    unsigned    u1XSAVE : 1;
     
    355359/** ECX Bit 0 - SSE3 - Supports SSE3 or not. */
    356360#define X86_CPUID_FEATURE_ECX_SSE3      RT_BIT(0)
     361/** ECX Bit 1 - PCLMUL - PCLMULQDQ support (for AES-GCM). */
     362#define X86_CPUID_FEATURE_ECX_PCLMUL    RT_BIT(1)
    357363/** ECX Bit 2 - DTES64 - DS Area 64-bit Layout. */
    358364#define X86_CPUID_FEATURE_ECX_DTES64    RT_BIT(2)
     
    373379/** ECX Bit 10 - CNTX-ID - L1 Context ID. */
    374380#define X86_CPUID_FEATURE_ECX_CNTXID    RT_BIT(10)
     381/** ECX Bit 12 - FMA. */
     382#define X86_CPUID_FEATURE_ECX_FMA       RT_BIT(12)
    375383/** ECX Bit 13 - CX16 - CMPXCHG16B. */
    376384#define X86_CPUID_FEATURE_ECX_CX16      RT_BIT(13)
     
    389397/** ECX Bit 22 - MOVBE instruction. */
    390398#define X86_CPUID_FEATURE_ECX_MOVBE     RT_BIT(22)
    391 /** ECX Bit 23 - POPCOUNT instruction. */
    392 #define X86_CPUID_FEATURE_ECX_POPCOUNT  RT_BIT(23)
     399/** ECX Bit 23 - POPCNT instruction. */
     400#define X86_CPUID_FEATURE_ECX_POPCNT    RT_BIT(23)
     401/** ECX Bit 25 - AES instructions. */
     402#define X86_CPUID_FEATURE_ECX_AES       RT_BIT(25)
    393403/** ECX Bit 26 - XSAVE instruction. */
    394404#define X86_CPUID_FEATURE_ECX_XSAVE     RT_BIT(26)
    395405/** ECX Bit 27 - OSXSAVE instruction. */
    396406#define X86_CPUID_FEATURE_ECX_OSXSAVE   RT_BIT(27)
     407/** ECX Bit 28 - AVX. */
     408#define X86_CPUID_FEATURE_ECX_AVX       RT_BIT(28)
    397409
    398410
     
    463475 */
    464476/** Bit 0 - FPU - x87 FPU on Chip. */
    465 #define X86_CPUID_AMD_FEATURE_EDX_FPU   RT_BIT(0)
     477#define X86_CPUID_AMD_FEATURE_EDX_FPU       RT_BIT(0)
    466478/** Bit 1 - VME - Virtual 8086 Mode Enhancements. */
    467 #define X86_CPUID_AMD_FEATURE_EDX_VME    RT_BIT(1)
     479#define X86_CPUID_AMD_FEATURE_EDX_VME       RT_BIT(1)
    468480/** Bit 2 - DE - Debugging extensions. */
    469481#define X86_CPUID_AMD_FEATURE_EDX_DE        RT_BIT(2)
     
    537549/** Bit 9 - OSVW - AMD OS visible workaround. */
    538550#define X86_CPUID_AMD_FEATURE_ECX_OSVW      RT_BIT(9)
     551/** Bit 10 - IBS - Instruct based sampling. */
     552#define X86_CPUID_AMD_FEATURE_ECX_IBS       RT_BIT(10)
     553/** Bit 11 - SSE5 - SSE5 instruction support. */
     554#define X86_CPUID_AMD_FEATURE_ECX_SSE5      RT_BIT(11)
    539555/** Bit 12 - SKINIT - AMD SKINIT: SKINIT, STGI, and DEV support. */
    540556#define X86_CPUID_AMD_FEATURE_ECX_SKINIT    RT_BIT(12)
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette