VirtualBox

Changeset 73294 in vbox


Ignore:
Timestamp:
Jul 21, 2018 3:26:11 PM (7 years ago)
Author:
vboxsync
Message:

VMM/HM: Doxygen, nits.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/HM.cpp

    r73293 r73294  
    15571557 * Reports MSR_IA32_VMX_MISC MSR to the log.
    15581558 *
     1559 * @param   pVM      Pointer to the VM.
    15591560 * @param   fMisc    The VMX misc. MSR value.
    15601561 */
     
    16771678
    16781679    /*
    1679      * EPT and unhampered guest execution are determined in HMR3Init, verify the sanity of that.
     1680     * EPT and unrestricted guest execution are determined in HMR3Init, verify the sanity of that.
    16801681     */
    16811682    AssertLogRelReturn(   !pVM->hm.s.fNestedPaging
     
    29072908
    29082909/**
    2909  * Checks if we can currently use hardware accelerated raw mode.
     2910 * Checks if we can currently use hardware accelerated mode.
    29102911 *
    29112912 * @returns true if we can currently use hardware acceleration, otherwise false.
    29122913 * @param   pVM         The cross context VM structure.
    2913  * @param   pCtx        Partial VM execution context.
     2914 * @param   pCtx        Pointer to the guest CPU context.
    29142915 */
    29152916VMMR3DECL(bool) HMR3CanExecuteGuest(PVM pVM, PCPUMCTX pCtx)
     
    30613062    if (pVM->hm.s.vmx.fEnabled)
    30623063    {
    3063         uint32_t uCR0Mask;
     3064        uint32_t uCr0Mask;
    30643065
    30653066        /* If bit N is set in cr0_fixed0, then it must be set in the guest's cr0. */
    3066         uCR0Mask = (uint32_t)pVM->hm.s.vmx.Msrs.u64Cr0Fixed0;
     3067        uCr0Mask = (uint32_t)pVM->hm.s.vmx.Msrs.u64Cr0Fixed0;
    30673068
    30683069        /* We ignore the NE bit here on purpose; see HMR0.cpp for details. */
    3069         uCR0Mask &= ~X86_CR0_NE;
     3070        uCr0Mask &= ~X86_CR0_NE;
    30703071
    30713072        if (fSupportsRealMode)
    30723073        {
    30733074            /* We ignore the PE & PG bits here on purpose; we emulate real and protected mode without paging. */
    3074             uCR0Mask &= ~(X86_CR0_PG|X86_CR0_PE);
     3075            uCr0Mask &= ~(X86_CR0_PG|X86_CR0_PE);
    30753076        }
    30763077        else
    30773078        {
    30783079            /* We support protected mode without paging using identity mapping. */
    3079             uCR0Mask &= ~X86_CR0_PG;
     3080            uCr0Mask &= ~X86_CR0_PG;
    30803081        }
    3081         if ((pCtx->cr0 & uCR0Mask) != uCR0Mask)
     3082        if ((pCtx->cr0 & uCr0Mask) != uCr0Mask)
    30823083            return false;
    30833084
    30843085        /* If bit N is cleared in cr0_fixed1, then it must be zero in the guest's cr0. */
    3085         uCR0Mask = (uint32_t)~pVM->hm.s.vmx.Msrs.u64Cr0Fixed1;
    3086         if ((pCtx->cr0 & uCR0Mask) != 0)
     3086        uCr0Mask = (uint32_t)~pVM->hm.s.vmx.Msrs.u64Cr0Fixed1;
     3087        if ((pCtx->cr0 & uCr0Mask) != 0)
    30873088            return false;
    30883089
    30893090        /* If bit N is set in cr4_fixed0, then it must be set in the guest's cr4. */
    3090         uCR0Mask  = (uint32_t)pVM->hm.s.vmx.Msrs.u64Cr4Fixed0;
    3091         uCR0Mask &= ~X86_CR4_VMXE;
    3092         if ((pCtx->cr4 & uCR0Mask) != uCR0Mask)
     3091        uCr0Mask  = (uint32_t)pVM->hm.s.vmx.Msrs.u64Cr4Fixed0;
     3092        uCr0Mask &= ~X86_CR4_VMXE;
     3093        if ((pCtx->cr4 & uCr0Mask) != uCr0Mask)
    30933094            return false;
    30943095
    30953096        /* If bit N is cleared in cr4_fixed1, then it must be zero in the guest's cr4. */
    3096         uCR0Mask = (uint32_t)~pVM->hm.s.vmx.Msrs.u64Cr4Fixed1;
    3097         if ((pCtx->cr4 & uCR0Mask) != 0)
     3097        uCr0Mask = (uint32_t)~pVM->hm.s.vmx.Msrs.u64Cr4Fixed1;
     3098        if ((pCtx->cr4 & uCr0Mask) != 0)
    30983099            return false;
    30993100
     
    33493350VMMR3_INT_DECL(bool) HMR3IsEventPending(PVMCPU pVCpu)
    33503351{
    3351     return HMIsEnabled(pVCpu->pVMR3) && pVCpu->hm.s.Event.fPending;
     3352    return HMIsEnabled(pVCpu->pVMR3)
     3353        && pVCpu->hm.s.Event.fPending;
    33523354}
    33533355
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