VirtualBox

Changeset 80338 in vbox for trunk/include


Ignore:
Timestamp:
Aug 17, 2019 8:51:25 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
132798
Message:

/include: Eliminating the VBOX_BUGREF_9217 preprocessor macro - missed two. bugref:9217

Location:
trunk/include/VBox
Files:
2 edited

Legend:

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

    r80319 r80338  
    432432# define VTG_VMCPU_TO_R0(a_pVCpu)                (a_pVCpu)
    433433# define VTG_CPUMCTX_TO_R0(a_pVCpu, a_pCtx)      (a_pCtx)
    434 #elif defined(VBOX_BUGREF_9217)
     434#else
    435435# define VTG_VM_TO_R0(a_pVM)                     ((a_pVM)   ? (a_pVM)->pVMR0ForCall  : NIL_RTR0PTR)
    436436# define VTG_VMCPU_TO_R0(a_pVCpu)                ((a_pVCpu) ? (a_pVCpu)->pVCpuR0ForVtg : NIL_RTR0PTR)
    437437# define VTG_CPUMCTX_TO_R0(a_pVCpu, a_pCtx)      ((a_pVCpu) ? (a_pVCpu)->pVCpuR0ForVtg + ((uintptr_t)(a_pCtx) - (uintptr_t)(a_pVCpu)) : NIL_RTR0PTR)
    438 #else
    439 # define VTG_VM_TO_R0(a_pVM)                     ((a_pVM)   ? (a_pVM)->pVMR0                                : NIL_RTR0PTR)
    440 # define VTG_VMCPU_TO_R0(a_pVCpu)                ((a_pVCpu) ? VM_R0_ADDR((a_pVCpu)->CTX_SUFF(pVM), a_pVCpu) : NIL_RTR0PTR)
    441 # define VTG_CPUMCTX_TO_R0(a_pVCpu, a_pCtx)      ((a_pVCpu) ? VM_R0_ADDR((a_pVCpu)->CTX_SUFF(pVM), a_pCtx)  : NIL_RTR0PTR)
    442438#endif
    443439/** @} */
  • trunk/include/VBox/vmm/vmapi.h

    r80323 r80338  
    5555#define VM_EXEC_ENGINE_NATIVE_API           UINT8_C(3)
    5656/** @} */
    57 
    58 
    59 #ifndef VBOX_BUGREF_9217
    60 /** @def VM_R0_ADDR
    61  * Converts a current context address of data within the VM structure to the equivalent
    62  * ring-0 host address.
    63  *
    64  * @returns host virtual address.
    65  * @param   pVM     The cross context VM structure.
    66  * @param   pvInVM  CC pointer within the VM.
    67  */
    68 #ifdef IN_RC
    69 # define VM_R0_ADDR(pVM, pvInVM)       ( (RTR0PTR)((RTR0UINTPTR)pVM->pVMR0 + (uint32_t)((uintptr_t)(pvInVM) - (uintptr_t)pVM->pVMRC)) )
    70 #elif defined(IN_RING3)
    71 # define VM_R0_ADDR(pVM, pvInVM)       ( (RTR0PTR)((RTR0UINTPTR)pVM->pVMR0 + (uint32_t)((uintptr_t)(pvInVM) - (uintptr_t)pVM->pVMR3)) )
    72 #else
    73 # define VM_R0_ADDR(pVM, pvInVM)       ( (RTR0PTR)(pvInVM) )
    74 #endif
    75 #endif
    7657
    7758
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