Changeset 80338 in vbox for trunk/include
- Timestamp:
- Aug 17, 2019 8:51:25 AM (6 years ago)
- svn:sync-xref-src-repo-rev:
- 132798
- Location:
- trunk/include/VBox
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/VBoxTpG.h
r80319 r80338 432 432 # define VTG_VMCPU_TO_R0(a_pVCpu) (a_pVCpu) 433 433 # define VTG_CPUMCTX_TO_R0(a_pVCpu, a_pCtx) (a_pCtx) 434 #el if defined(VBOX_BUGREF_9217)434 #else 435 435 # define VTG_VM_TO_R0(a_pVM) ((a_pVM) ? (a_pVM)->pVMR0ForCall : NIL_RTR0PTR) 436 436 # define VTG_VMCPU_TO_R0(a_pVCpu) ((a_pVCpu) ? (a_pVCpu)->pVCpuR0ForVtg : NIL_RTR0PTR) 437 437 # 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 #else439 # 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)442 438 #endif 443 439 /** @} */ -
trunk/include/VBox/vmm/vmapi.h
r80323 r80338 55 55 #define VM_EXEC_ENGINE_NATIVE_API UINT8_C(3) 56 56 /** @} */ 57 58 59 #ifndef VBOX_BUGREF_921760 /** @def VM_R0_ADDR61 * Converts a current context address of data within the VM structure to the equivalent62 * 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_RC69 # 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 #else73 # define VM_R0_ADDR(pVM, pvInVM) ( (RTR0PTR)(pvInVM) )74 #endif75 #endif76 57 77 58
Note:
See TracChangeset
for help on using the changeset viewer.