VirtualBox

Changeset 12573 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Sep 18, 2008 1:11:46 PM (16 years ago)
Author:
vboxsync
Message:

VMM: Added VMMGetCpuId (stub).

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/VMMAll.cpp

    r10450 r12573  
    6060#endif /* !IN_RING0 */
    6161
     62/**
     63 * Gets the current virtual CPU ID.
     64 *
     65 * @returns The CPU ID.
     66 * @param   pVM         Pointer to the shared VM handle.
     67 * @thread  EMT
     68 */
     69uint32_t VMMGetCpuId(PVM pVM)
     70{
     71#ifdef VBOX_WITH_GUEST_SMPT
     72# if defined(IN_GC)
     73    /* There is only one CPU if we're in GC. */
     74    return 0;
     75
     76# elif defined(IN_RING3)
     77    /** @todo SMP: Use TLS. */
     78    return 0; /** @todo SMP */
     79
     80# else  /* IN_RING0 */
     81    /** @todo SMP: Get the real CPU ID and use a table in the VM structure to
     82     *  translate it. */
     83    return 0;
     84# endif /* IN_RING0 */
     85
     86#else
     87    VM_ASSERT_EMT(pVM);
     88    return 0;
     89#endif
     90}
     91
    6292
    6393/**
     
    73103    return VBOX_SVN_REV;
    74104}
     105
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