VirtualBox

Changeset 44078 in vbox


Ignore:
Timestamp:
Dec 10, 2012 1:19:18 PM (12 years ago)
Author:
vboxsync
Message:

VMMR0/CPUMR0: atomic update of aGuestCpuId*(); fix return type of CPUMR3LogCpuIds()

Location:
trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/cpum.h

    r44076 r44078  
    415415VMMR3DECL(int)          CPUMR3Init(PVM pVM);
    416416VMMR3DECL(int)          CPUMR3InitCompleted(PVM pVM);
    417 VMMR3DECL(int)          CPUMR3LogCpuIds(PVM pVM);
     417VMMR3DECL(void)         CPUMR3LogCpuIds(PVM pVM);
    418418VMMR3DECL(void)         CPUMR3Relocate(PVM pVM);
    419419VMMR3DECL(int)          CPUMR3Term(PVM pVM);
  • trunk/src/VBox/VMM/VMMR0/CPUMR0.cpp

    r44077 r44078  
    114114 * @{bugref 5436}.
    115115 *
     116 * @note This function might be called simultaneously on more than one CPU!
     117 *
    116118 * @param   idCpu       The identifier for the CPU the function is called on.
    117119 * @param   pvUser1     Pointer to the VM structure.
     
    148150            paLeaves = &pCPUM->aGuestCpuIdCentaur[uLeave - 0xc0000000];
    149151        /* unify important bits */
    150         paLeaves->ecx &= (ecx | ~aCpuidUnify[i].ecx);
    151         paLeaves->edx &= (edx | ~aCpuidUnify[i].edx);
     152        ASMAtomicAndU32(&paLeaves->ecx, ecx | ~aCpuidUnify[i].ecx);
     153        ASMAtomicAndU32(&paLeaves->edx, edx | ~aCpuidUnify[i].edx);
    152154    }
    153155}
  • trunk/src/VBox/VMM/VMMR3/CPUM.cpp

    r44076 r44078  
    43944394 * Called when the ring-0 init phases comleted.
    43954395 *
    4396  * @returns VBox status code.
    43974396 * @param   pVM                 Pointer to the VM.
    43984397 */
    4399 VMMR3DECL(int) CPUMR3LogCpuIds(PVM pVM)
     4398VMMR3DECL(void) CPUMR3LogCpuIds(PVM pVM)
    44004399{
    44014400    /*
     
    44134412    RTLogRelSetBuffering(fOldBuffered);
    44144413    LogRel(("******************** End of CPUID dump **********************\n"));
    4415     return VINF_SUCCESS;
    44164414}
  • trunk/src/VBox/VMM/VMMR3/VMM.cpp

    r44076 r44078  
    694694             * CPUM's post-initialization (print CPUIDs).
    695695             */
    696             rc = CPUMR3LogCpuIds(pVM);
    697             AssertRCReturn(rc, rc);
    698 
     696            CPUMR3LogCpuIds(pVM);
    699697            break;
    700698        }
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