VirtualBox

Changeset 48476 in vbox


Ignore:
Timestamp:
Sep 13, 2013 2:39:50 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
88937
Message:

VMM/HMVMXR0: Fix assertions and stale comments.

File:
1 edited

Legend:

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

    r48474 r48476  
    141141 *
    142142 * We need to intercept all exceptions manually (except #PF). #NM is also
    143  * handled separately, see hmR0VmxLoadGuestControlRegs(). #PF need not be
    144  * intercepted even in real-mode if we have Nested Paging support.
     143 * handled separately, see hmR0VmxLoadSharedCR0(). #PF need not be intercepted
     144 * even in real-mode if we have Nested Paging support.
    145145 */
    146146#define HMVMX_REAL_MODE_XCPT_MASK    (  RT_BIT(X86_XCPT_DE)             | RT_BIT(X86_XCPT_DB)    | RT_BIT(X86_XCPT_NMI)   \
     
    19251925    /* All fields are zero-initialized during allocation; but don't remove the commented block below. */
    19261926#if 0
    1927     /* All CR3 accesses cause VM-exits. Later we optimize CR3 accesses (see hmR0VmxLoadGuestControlRegs())*/
     1927    /* All CR3 accesses cause VM-exits. Later we optimize CR3 accesses (see hmR0VmxLoadGuestCR3AndCR4())*/
    19281928    rc = VMXWriteVmcs32(VMX_VMCS32_CTRL_CR3_TARGET_COUNT, 0);           AssertRCReturn(rc, rc);
    19291929    rc = VMXWriteVmcs64(VMX_VMCS64_CTRL_TSC_OFFSET_FULL, 0);            AssertRCReturn(rc, rc);
     
    1032410324    HMVMX_VALIDATE_EXIT_XCPT_HANDLER_PARAMS();
    1032510325
    10326 #ifndef HMVMX_ALWAYS_TRAP_ALL_XCPTS
    10327     Assert(!CPUMIsGuestFPUStateActive(pVCpu));
    10328 #endif
    10329 
    1033010326    /* We require CR0 and EFER. EFER is always up-to-date. */
    1033110327    int rc = hmR0VmxSaveGuestCR0(pVCpu, pMixedCtx);
     
    1033410330    /* We're playing with the host CPU state here, have to disable preemption. */
    1033510331    HM_DISABLE_PREEMPT_IF_NEEDED();
     10332
     10333#ifndef HMVMX_ALWAYS_TRAP_ALL_XCPTS
     10334    if (!pVCpu->hm.s.vmx.RealMode.fRealOnV86Active)
     10335        Assert(!CPUMIsGuestFPUStateActive(pVCpu));
     10336#endif
    1033610337
    1033710338    /* Lazy FPU loading; load the guest-FPU state transparently and continue execution of the guest. */
Note: See TracChangeset for help on using the changeset viewer.

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