VirtualBox

Changeset 46363 in vbox for trunk/src/VBox/VMM/VMMR0


Ignore:
Timestamp:
Jun 3, 2013 3:01:02 PM (12 years ago)
Author:
vboxsync
Message:

VMM/HM: Comment nits.

Location:
trunk/src/VBox/VMM/VMMR0
Files:
2 edited

Legend:

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

    r46358 r46363  
    10411041VMMR0_INT_DECL(int) HMR0EnableAllCpus(PVM pVM)
    10421042{
    1043     /* Make sure we don't touch hm after we've disabled hm in
     1043    /* Make sure we don't touch HM after we've disabled HM in
    10441044       preparation of a suspend. */
    10451045    if (ASMAtomicReadBool(&g_HvmR0.fSuspended))
     
    12261226#endif
    12271227
    1228     /* Make sure we don't touch hm after we've disabled hm in preparation of a suspend. */
     1228    /* Make sure we don't touch HM after we've disabled HM in preparation of a suspend. */
    12291229    if (ASMAtomicReadBool(&g_HvmR0.fSuspended))
    12301230        return VERR_HM_SUSPEND_PENDING;
     
    13201320    AssertReturn(pVM, VERR_INVALID_PARAMETER);
    13211321
    1322     /* Make sure we don't touch hm after we've disabled hm in preparation
     1322    /* Make sure we don't touch HM after we've disabled HM in preparation
    13231323       of a suspend. */
    13241324    /** @todo r=bird: This cannot be right, the termination functions are
     
    13581358    AssertReturn(pVM, VERR_INVALID_PARAMETER);
    13591359
    1360     /* Make sure we don't touch hm after we've disabled hm in
     1360    /* Make sure we don't touch HM after we've disabled HM in
    13611361       preparation of a suspend. */
    13621362    AssertReturn(!ASMAtomicReadBool(&g_HvmR0.fSuspended), VERR_HM_SUSPEND_PENDING);
    1363 
    13641363
    13651364    /*
     
    14301429    CPUMDeactivateGuestDebugState(pVCpu);
    14311430
    1432     /* Always reload the host context and the guest's CR0 register for the FPU bits (#NM, #MF, CR0.NE, CR0.TS, CR0.MP). */
     1431    /* Always reload the host context and the guest's CR0 register for the FPU
     1432       bits (#NM, #MF, CR0.NE, CR0.TS, CR0.MP). */
    14331433    pVCpu->hm.s.fContextUseFlags |= HM_CHANGED_GUEST_CR0 | HM_CHANGED_HOST_CONTEXT;
    14341434
  • trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp

    r46315 r46363  
    15061506{
    15071507    /*
    1508      * Determine optimal flush type for nested paging.
     1508     * Determine optimal flush type for Nested Paging.
    15091509     * We cannot ignore EPT if no suitable flush-types is supported by the CPU as we've already setup unrestricted
    15101510     * guest execution (see hmR3InitFinalizeR0()).
     
    16611661    }
    16621662
    1663     /* Without nested paging, INVLPG (also affects INVPCID) and MOV CR3 instructions should cause VM-exits. */
     1663    /* Without Nested Paging, INVLPG (also affects INVPCID) and MOV CR3 instructions should cause VM-exits. */
    16641664    if (!pVM->hm.s.fNestedPaging)
    16651665    {
     
    18821882    uint32_t u32XcptBitmap = 0;
    18831883
    1884     /* Without nested paging, #PF must cause a VM-exit so we can sync our shadow page tables. */
     1884    /* Without Nested Paging, #PF must cause a VM-exit so we can sync our shadow page tables. */
    18851885    if (!pVM->hm.s.fNestedPaging)
    18861886        u32XcptBitmap |= RT_BIT(X86_XCPT_PF);
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