VirtualBox

Changeset 15971 in vbox


Ignore:
Timestamp:
Jan 15, 2009 3:02:12 PM (16 years ago)
Author:
vboxsync
Message:

VT-x: The limit must correspond to the granularity bit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp

    r15962 r15971  
    11921192                    pCtx->gsHid.Attr.n.u2Dpl  = 0;
    11931193                    pCtx->ssHid.Attr.n.u2Dpl  = 0;
     1194
     1195                    /* The limit must correspond to the granularity bit. */
     1196                    if (!pCtx->csHid.Attr.n.u1Granularity)
     1197                        pCtx->csHid.u32Limit &= 0xffff;
     1198                    if (!pCtx->dsHid.Attr.n.u1Granularity)
     1199                        pCtx->dsHid.u32Limit &= 0xffff;
     1200                    if (!pCtx->esHid.Attr.n.u1Granularity)
     1201                        pCtx->esHid.u32Limit &= 0xffff;
     1202                    if (!pCtx->fsHid.Attr.n.u1Granularity)
     1203                        pCtx->fsHid.u32Limit &= 0xffff;
     1204                    if (!pCtx->gsHid.Attr.n.u1Granularity)
     1205                        pCtx->gsHid.u32Limit &= 0xffff;
     1206                    if (!pCtx->ssHid.Attr.n.u1Granularity)
     1207                        pCtx->ssHid.u32Limit &= 0xffff;
    11941208                }
    11951209                else
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