VirtualBox

Changeset 42894 in vbox for trunk/src


Ignore:
Timestamp:
Aug 21, 2012 8:00:10 AM (12 years ago)
Author:
vboxsync
Message:

VMM: nits.

Location:
trunk/src/VBox/VMM
Files:
5 edited

Legend:

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

    r42840 r42894  
    891891        /* Sync the hypervisor debug state now if any breakpoint is armed. */
    892892        if (    CPUMGetHyperDR7(pVCpu) & (X86_DR7_ENABLED_MASK|X86_DR7_GD)
    893             &&  !CPUMIsHyperDebugStateActive(pVCpu)
    894             &&  !DBGFIsStepping(pVCpu))
     893            && !CPUMIsHyperDebugStateActive(pVCpu)
     894            && !DBGFIsStepping(pVCpu))
    895895        {
    896896            /* Save the host and load the hypervisor debug state. */
     
    907907#endif
    908908        /* Sync the debug state now if any breakpoint is armed. */
    909         if (    (pCtx->dr[7] & (X86_DR7_ENABLED_MASK|X86_DR7_GD))
    910             &&  !CPUMIsGuestDebugStateActive(pVCpu)
    911             &&  !DBGFIsStepping(pVCpu))
     909        if (   (pCtx->dr[7] & (X86_DR7_ENABLED_MASK|X86_DR7_GD))
     910            && !CPUMIsGuestDebugStateActive(pVCpu)
     911            && !DBGFIsStepping(pVCpu))
    912912        {
    913913            STAM_COUNTER_INC(&pVCpu->hwaccm.s.StatDRxArmed);
     
    28222822            break;
    28232823
    2824         switch(pPatch->enmType)
     2824        switch (pPatch->enmType)
    28252825        {
    28262826            case HWACCMTPRINSTR_READ:
     
    28562856                break;
    28572857
    2858         default:
    2859                 AssertMsgFailedReturn(("Unexpected type %d\n", pPatch->enmType), VERR_HMSVM_UNEXPECTED_PATCH_TYPE);
     2858            default:
     2859                    AssertMsgFailedReturn(("Unexpected type %d\n", pPatch->enmType), VERR_HMSVM_UNEXPECTED_PATCH_TYPE);
    28602860        }
    28612861    }
  • trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp

    r42857 r42894  
    19241924        if (!pVM->hwaccm.s.fNestedPaging)
    19251925        {
    1926             switch(pVCpu->hwaccm.s.enmShadowMode)
     1926            switch (pVCpu->hwaccm.s.enmShadowMode)
    19271927            {
    19281928                case PGMMODE_REAL:          /* Real mode                 -> emulated using v86 mode */
     
    46024602        unsigned uAccessType = VMX_EXIT_QUALIFICATION_APIC_ACCESS_TYPE(exitQualification);
    46034603
    4604         switch(uAccessType)
     4604        switch (uAccessType)
    46054605        {
    46064606            case VMX_APIC_ACCESS_TYPE_LINEAR_READ:
  • trunk/src/VBox/VMM/VMMR3/CPUM.cpp

    r42613 r42894  
    12431243                                            //| X86_CPUID_AMD_ADVPOWER_EDX_MC
    12441244                                            //| X86_CPUID_AMD_ADVPOWER_EDX_HWPSTATE
    1245 #if 0 /* We don't expose X86_CPUID_AMD_ADVPOWER_EDX_TSCINVAR, because newer
    1246        * Linux kernels blindly assume that the AMD performance counters work
    1247        * if this is set for 64 bits guests. (Can't really find a CPUID feature
    1248        * bit for them though.) */
     1245#if 0
     1246        /*
     1247         * We don't expose X86_CPUID_AMD_ADVPOWER_EDX_TSCINVAR, because newer
     1248         * Linux kernels blindly assume that the AMD performance counters work
     1249         * if this is set for 64 bits guests. (Can't really find a CPUID feature
     1250         * bit for them though.)
     1251         */
    12491252                                            | X86_CPUID_AMD_ADVPOWER_EDX_TSCINVAR
    12501253#endif
  • trunk/src/VBox/VMM/VMMR3/PGMSavedState.cpp

    r42837 r42894  
    32803280 *
    32813281 * @returns VBox status code.
    3282  * @param   pVM     Pointer to VM structure.
     3282 * @param   pVM     Pointer to VM.
    32833283 * @param   cbRam   The RAM size.
    32843284 */
  • trunk/src/VBox/VMM/include/HWACCMInternal.h

    r42821 r42894  
    632632        /* Number of automatically loaded/restored guest MSRs during the world switch. */
    633633        uint32_t                    cCachedMSRs;
    634         uint32_t                    uAlignement;
     634        uint32_t                    uAlignment;
    635635#endif /* VBOX_WITH_AUTO_MSR_LOAD_RESTORE */
    636636
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