VirtualBox

Changeset 13791 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Nov 4, 2008 4:12:57 PM (16 years ago)
Author:
vboxsync
Message:

Moving data around

Location:
trunk/include/VBox
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/hwaccm.h

    r13778 r13791  
    7070
    7171#ifndef IN_GC
    72 VMMDECL(int)    HWACCMFlushTLB(PVM pVM);
    73 VMMDECL(int)    HWACCMInvalidatePhysPage(PVM pVM, RTGCPHYS GCPhys);
    74 VMMDECL(bool)   HWACCMIsNestedPagingActive(PVM pVM);
     72VMMDECL(int)     HWACCMFlushTLB(PVM pVM);
     73VMMDECL(int)     HWACCMInvalidatePhysPage(PVM pVM, RTGCPHYS GCPhys);
     74VMMDECL(bool)    HWACCMIsNestedPagingActive(PVM pVM);
    7575VMMDECL(PGMMODE) HWACCMGetPagingMode(PVM pVM);
     76VMMDECL(RTCPUID) HWACCMGetVMCPUId(PVM pVM);
    7677#else
    7778/* Nop in GC */
  • trunk/include/VBox/vm.h

    r13786 r13791  
    365365#else
    366366/** @todo need to rework this macro for the case of multiple emulation threads for SMP */
    367 # define VM_IS_EMT(pVM)                     ((pVM)->NativeThreadEMT == RTThreadNativeSelf())
     367# define VM_IS_EMT(pVM)                     (VMR3GetVMCPUNativeThread(pVM) == RTThreadNativeSelf())
    368368#endif
    369369
     
    378378# define VM_ASSERT_EMT(pVM) \
    379379    AssertMsg(VM_IS_EMT(pVM), \
    380         ("Not emulation thread! Thread=%RTnthrd ThreadEMT=%RTnthrd\n", RTThreadNativeSelf(), pVM->NativeThreadEMT))
     380        ("Not emulation thread! Thread=%RTnthrd ThreadEMT=%RTnthrd\n", RTThreadNativeSelf(), VMR3GetVMCPUNativeThread(pVM)))
    381381#endif
    382382
     
    391391# define VM_ASSERT_EMT_RETURN(pVM, rc) \
    392392    AssertMsgReturn(VM_IS_EMT(pVM), \
    393         ("Not emulation thread! Thread=%RTnthrd ThreadEMT=%RTnthrd\n", RTThreadNativeSelf(), pVM->NativeThreadEMT), \
     393        ("Not emulation thread! Thread=%RTnthrd ThreadEMT=%RTnthrd\n", RTThreadNativeSelf(), VMR3GetVMCPUNativeThread(pVM)), \
    394394        (rc))
     395#endif
     396
     397
     398/** @def VM_GET_VMCPUID
     399 * Returns the VMCPU id of the current EMT thread.
     400 */
     401#ifdef IN_GC
     402# define VM_GET_VMCPUID(pVM)                       0
     403#elif defined(IN_RING0)
     404# define VM_GET_VMCPUID(pVM)                       HWACCMGetVMCPUId(pVM)
     405#else
     406# define VM_GET_VMCPUID(pVM)                       VMR3GetVMCPUId(pVM)
    395407#endif
    396408
     
    517529    /** The native handle of ThreadEMT. Getting the native handle
    518530     * is generally faster than getting the IPRT one (except on OS/2 :-). */
    519     RTNATIVETHREAD      NativeThreadEMT;
     531    RTNATIVETHREAD      uPadding2;
    520532    /** @} */
    521533
  • trunk/include/VBox/vm.mac

    r13784 r13791  
    6767
    6868    .uPadding1          RTHCPTR_RES 1
    69     .NativeThreadEMT    RTHCPTR_RES 1
     69    .uPadding2          RTHCPTR_RES 1
    7070
    7171    .fRawR3Enabled      resb 1
  • trunk/include/VBox/vmapi.h

    r13782 r13791  
    432432VMMR3DECL(int)  VMR3WaitHalted(PVM pVM, bool fIgnoreInterrupts);
    433433VMMR3DECL(int)  VMR3WaitU(PUVM pUVM);
     434VMMR3DECL(RTCPUID)          VMR3GetVMCPUId(PVM pVM);
     435VMMR3DECL(RTTHREAD)         VMR3GetVMCPUThread(PVM pVM);
     436VMMR3DECL(RTTHREAD)         VMR3GetVMCPUThreadU(PUVM pUVM);
     437VMMR3DECL(RTNATIVETHREAD)   VMR3GetVMCPUNativeThread(PVM pVM);
     438VMMR3DECL(RTNATIVETHREAD)   VMR3GetVMCPUNativeThreadU(PUVM pUVM);
    434439
    435440/** @} */
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