VirtualBox

Changeset 47247 in vbox for trunk/include/iprt


Ignore:
Timestamp:
Jul 19, 2013 10:01:36 AM (11 years ago)
Author:
vboxsync
Message:

HMVMX: preserve SS.DPL and CS.L/D/G when the 'unusable' bit is set. SS.DPL = CPL, so we absolutely must preserve that.

File:
1 edited

Legend:

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

    r47241 r47247  
    22302230#ifndef VBOX_FOR_DTRACE_LIB
    22312231/**
    2232  * Descriptor attributes.
     2232 * Descriptor attributes (as seen by VT-x).
    22332233 */
    22342234typedef struct X86DESCATTRBITS
     
    22542254     * clear byte. */
    22552255    unsigned    u1Granularity : 1;
    2256     /** 10 - Unusable selector, special Intel (VT-x only?) bit. */
     2256    /** 10 - "Unusable" selector, special Intel (VT-x only?) bit. */
    22572257    unsigned    u1Unusable : 1;
    22582258} X86DESCATTRBITS;
    22592259#endif /* !VBOX_FOR_DTRACE_LIB */
     2260
     2261/** @name X86DESCATTR masks
     2262 * @{ */
     2263#define X86DESCATTR_TYPE            UINT32_C(0x0000000f)
     2264#define X86DESCATTR_DT              UINT32_C(0x00000010)
     2265#define X86DESCATTR_DPL             UINT32_C(0x00000060)
     2266#define X86DESCATTR_P               UINT32_C(0x00000800)
     2267#define X86DESCATTR_LIMIT_HIGH      UINT32_C(0x00000f00)
     2268#define X86DESCATTR_AVL             UINT32_C(0x00001000)
     2269#define X86DESCATTR_L               UINT32_C(0x00002000)
     2270#define X86DESCATTR_D               UINT32_C(0x00004000)
     2271#define X86DESCATTR_G               UINT32_C(0x00008000)
     2272#define X86DESCATTR_UNUSABLE        UINT32_C(0x00010000)
     2273/** @}  */
    22602274
    22612275#pragma pack(1)
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