VirtualBox

Ignore:
Timestamp:
Jul 3, 2013 2:53:47 PM (12 years ago)
Author:
vboxsync
Message:

VMM: Fix LDTR restoration to be done dynamically. This is required for 64-bit Darwin hosts.

File:
1 edited

Legend:

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

    r46925 r46942  
    21432143    RTSEL uSelGS   = 0;
    21442144    RTSEL uSelTR   = 0;
    2145     RTSEL uSelLDTR = 0;
    21462145
    21472146    /*
     
    21542153    uSelFS   = ASMGetFS();
    21552154    uSelGS   = ASMGetGS();
    2156     uSelLDTR = ASMGetLDTR();
    21572155#endif
    21582156
     
    22122210        pVCpu->hm.s.vmx.RestoreHost.uHostSelGS = uSelGS;
    22132211        uSelGS = 0;
    2214     }
    2215 
    2216     /*
    2217      * VT-x unconditionally writes LDTR to 0 on all VM-exits. If the host has something different, we shall restore it.
    2218      * See Intel spec. 27.5.2 "Loading Host Segment and Descriptor-Table Registers".
    2219      */
    2220     if (uSelLDTR)
    2221     {
    2222         pVCpu->hm.s.vmx.fRestoreHostFlags |= VMX_RESTORE_HOST_SEL_LDTR;
    2223         pVCpu->hm.s.vmx.RestoreHost.uHostSelLDTR = uSelLDTR;
    22242212    }
    22252213#endif
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