VirtualBox

Changeset 13830 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Nov 5, 2008 1:49:18 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
38821
Message:

VMM: Disabled VM:pVMGC, removed VM_GUEST_ADDR.

Location:
trunk/include/VBox
Files:
4 edited

Legend:

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

    r13778 r13830  
    639639VMMDECL(int)        CPUMGetGuestDRx(PVM pVM, uint32_t iReg, uint64_t *pValue);
    640640VMMDECL(void)       CPUMGetGuestCpuId(PVM pVM, uint32_t iLeaf, uint32_t *pEax, uint32_t *pEbx, uint32_t *pEcx, uint32_t *pEdx);
    641 VMMDECL(RCPTRTYPE(PCCPUMCPUID)) CPUMGetGuestCpuIdStdGCPtr(PVM pVM);
    642 VMMDECL(RCPTRTYPE(PCCPUMCPUID)) CPUMGetGuestCpuIdExtGCPtr(PVM pVM);
    643 VMMDECL(RCPTRTYPE(PCCPUMCPUID)) CPUMGetGuestCpuIdCentaurGCPtr(PVM pVM);
    644 VMMDECL(RCPTRTYPE(PCCPUMCPUID)) CPUMGetGuestCpuIdDefGCPtr(PVM pVM);
     641VMMDECL(RCPTRTYPE(PCCPUMCPUID)) CPUMGetGuestCpuIdStdRCPtr(PVM pVM);
     642VMMDECL(RCPTRTYPE(PCCPUMCPUID)) CPUMGetGuestCpuIdExtRCPtr(PVM pVM);
     643VMMDECL(RCPTRTYPE(PCCPUMCPUID)) CPUMGetGuestCpuIdCentaurRCPtr(PVM pVM);
     644VMMDECL(RCPTRTYPE(PCCPUMCPUID)) CPUMGetGuestCpuIdDefRCPtr(PVM pVM);
    645645VMMDECL(uint32_t)   CPUMGetGuestCpuIdStdMax(PVM pVM);
    646646VMMDECL(uint32_t)   CPUMGetGuestCpuIdExtMax(PVM pVM);
     
    966966VMMR3DECL(int)          CPUMR3TermCPU(PVM pVM);
    967967VMMR3DECL(void)         CPUMR3Reset(PVM pVM);
    968 VMMR3DECL(int)          CPUMR3QueryGuestCtxGCPtr(PVM pVM, RCPTRTYPE(PCPUMCTX) *ppCtx);
     968VMMR3DECL(int)          CPUMR3QueryGuestCtxRCPtr(PVM pVM, RCPTRTYPE(PCPUMCTX) *ppCtx);
    969969# ifdef DEBUG
    970970VMMR3DECL(void)         CPUMR3SaveEntryCtx(PVM pVM);
  • trunk/include/VBox/vm.h

    r13815 r13830  
    397397
    398398/** @def VM_GET_VMCPUID
    399  * Returns the VMCPU id of the current EMT thread.
     399 * Returns the VMCPU id of the current EMT.
     400 * @todo r=bird: See VMMGetCpuId().
    400401 */
    401402#ifdef IN_GC
    402 # define VM_GET_VMCPUID(pVM)                       0
     403# define VM_GET_VMCPUID(pVM)                0
    403404#elif defined(IN_RING0)
    404 # define VM_GET_VMCPUID(pVM)                       HWACCMGetVMCPUId(pVM)
    405 #else
    406 # define VM_GET_VMCPUID(pVM)                       VMR3GetVMCPUId(pVM)
     405# define VM_GET_VMCPUID(pVM)                HWACCMGetVMCPUId(pVM)
     406#else
     407# define VM_GET_VMCPUID(pVM)                VMR3GetVMCPUId(pVM)
    407408#endif
    408409
     
    465466    /** Raw-mode Context VM Pointer.
    466467     * @deprecated Use VM::pVMRC. */
    467     RCPTRTYPE(struct VM *)      pVMGC;
     468    RCPTRTYPE(struct VM *)      pVMGCUnused;
    468469    /** Raw-mode Context VM Pointer. */
    469470    RCPTRTYPE(struct VM *)      pVMRC;
  • trunk/include/VBox/vm.mac

    r13815 r13830  
    5454    .pVMR3              RTR3PTR_RES 1
    5555    .pVMR0              RTR0PTR_RES 1
    56     .pVMGC              RTRCPTR_RES 1
     56    .pVMGCUnused        RTRCPTR_RES 1
    5757    .pVMRC              RTRCPTR_RES 1
    5858    .hSelf              resd 1
  • trunk/include/VBox/vmapi.h

    r13791 r13830  
    4444 * @{ */
    4545
    46 /** @def VM_GUEST_ADDR
    47  * Converts a current context address of data within the VM structure to the equivalent
    48  * guest address.
    49  *
    50  * @returns guest virtual address.
    51  * @param   pVM     Pointer to the VM.
    52  * @param   pvInVM  CC Pointer within the VM.
    53  * @deprecated Use VM_RC_ADDR
    54  */
    55 #ifdef IN_RING3
    56 # define VM_GUEST_ADDR(pVM, pvInVM)     ( (RTGCPTR)((RTGCUINTPTR)pVM->pVMGC + (uint32_t)((uintptr_t)(pvInVM) - (uintptr_t)pVM->pVMR3)) )
    57 #elif defined(IN_RING0)
    58 # define VM_GUEST_ADDR(pVM, pvInVM)     ( (RTGCPTR)((RTGCUINTPTR)pVM->pVMGC + (uint32_t)((uintptr_t)(pvInVM) - (uintptr_t)pVM->pVMR0)) )
    59 #else
    60 # define VM_GUEST_ADDR(pVM, pvInVM)     ( (RTGCPTR)(pvInVM) )
    61 #endif
    62 
    6346/** @def VM_RC_ADDR
    6447 * Converts a current context address of data within the VM structure to the equivalent
     
    7053 */
    7154#ifdef IN_RING3
    72 # define VM_RC_ADDR(pVM, pvInVM)        ( (RTRCPTR)((RTRCUINTPTR)pVM->pVMGC + (uint32_t)((uintptr_t)(pvInVM) - (uintptr_t)pVM->pVMR3)) )
     55# define VM_RC_ADDR(pVM, pvInVM)        ( (RTRCPTR)((RTRCUINTPTR)pVM->pVMRC + (uint32_t)((uintptr_t)(pvInVM) - (uintptr_t)pVM->pVMR3)) )
    7356#elif defined(IN_RING0)
    74 # define VM_RC_ADDR(pVM, pvInVM)        ( (RTRCPTR)((RTRCUINTPTR)pVM->pVMGC + (uint32_t)((uintptr_t)(pvInVM) - (uintptr_t)pVM->pVMR0)) )
     57# define VM_RC_ADDR(pVM, pvInVM)        ( (RTRCPTR)((RTRCUINTPTR)pVM->pVMRC + (uint32_t)((uintptr_t)(pvInVM) - (uintptr_t)pVM->pVMR0)) )
    7558#else
    7659# define VM_RC_ADDR(pVM, pvInVM)        ( (RTRCPTR)(pvInVM) )
     
    8669 */
    8770#ifdef IN_GC
    88 # define VM_R3_ADDR(pVM, pvInVM)       ( (RTR3PTR)((RTR3UINTPTR)pVM->pVMR3 + (uint32_t)((uintptr_t)(pvInVM) - (uintptr_t)pVM->pVMGC)) )
     71# define VM_R3_ADDR(pVM, pvInVM)       ( (RTR3PTR)((RTR3UINTPTR)pVM->pVMR3 + (uint32_t)((uintptr_t)(pvInVM) - (uintptr_t)pVM->pVMRC)) )
    8972#elif defined(IN_RING0)
    9073# define VM_R3_ADDR(pVM, pvInVM)       ( (RTR3PTR)((RTR3UINTPTR)pVM->pVMR3 + (uint32_t)((uintptr_t)(pvInVM) - (uintptr_t)pVM->pVMR0)) )
     
    10386 */
    10487#ifdef IN_GC
    105 # define VM_R0_ADDR(pVM, pvInVM)       ( (RTR0PTR)((RTR0UINTPTR)pVM->pVMR0 + (uint32_t)((uintptr_t)(pvInVM) - (uintptr_t)pVM->pVMGC)) )
     88# define VM_R0_ADDR(pVM, pvInVM)       ( (RTR0PTR)((RTR0UINTPTR)pVM->pVMR0 + (uint32_t)((uintptr_t)(pvInVM) - (uintptr_t)pVM->pVMRC)) )
    10689#elif defined(IN_RING3)
    10790# define VM_R0_ADDR(pVM, pvInVM)       ( (RTR0PTR)((RTR0UINTPTR)pVM->pVMR0 + (uint32_t)((uintptr_t)(pvInVM) - (uintptr_t)pVM->pVMR3)) )
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette