Changeset 13830 in vbox for trunk/include/VBox
- Timestamp:
- Nov 5, 2008 1:49:18 AM (16 years ago)
- svn:sync-xref-src-repo-rev:
- 38821
- Location:
- trunk/include/VBox
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/cpum.h
r13778 r13830 639 639 VMMDECL(int) CPUMGetGuestDRx(PVM pVM, uint32_t iReg, uint64_t *pValue); 640 640 VMMDECL(void) CPUMGetGuestCpuId(PVM pVM, uint32_t iLeaf, uint32_t *pEax, uint32_t *pEbx, uint32_t *pEcx, uint32_t *pEdx); 641 VMMDECL(RCPTRTYPE(PCCPUMCPUID)) CPUMGetGuestCpuIdStd GCPtr(PVM pVM);642 VMMDECL(RCPTRTYPE(PCCPUMCPUID)) CPUMGetGuestCpuIdExt GCPtr(PVM pVM);643 VMMDECL(RCPTRTYPE(PCCPUMCPUID)) CPUMGetGuestCpuIdCentaur GCPtr(PVM pVM);644 VMMDECL(RCPTRTYPE(PCCPUMCPUID)) CPUMGetGuestCpuIdDef GCPtr(PVM pVM);641 VMMDECL(RCPTRTYPE(PCCPUMCPUID)) CPUMGetGuestCpuIdStdRCPtr(PVM pVM); 642 VMMDECL(RCPTRTYPE(PCCPUMCPUID)) CPUMGetGuestCpuIdExtRCPtr(PVM pVM); 643 VMMDECL(RCPTRTYPE(PCCPUMCPUID)) CPUMGetGuestCpuIdCentaurRCPtr(PVM pVM); 644 VMMDECL(RCPTRTYPE(PCCPUMCPUID)) CPUMGetGuestCpuIdDefRCPtr(PVM pVM); 645 645 VMMDECL(uint32_t) CPUMGetGuestCpuIdStdMax(PVM pVM); 646 646 VMMDECL(uint32_t) CPUMGetGuestCpuIdExtMax(PVM pVM); … … 966 966 VMMR3DECL(int) CPUMR3TermCPU(PVM pVM); 967 967 VMMR3DECL(void) CPUMR3Reset(PVM pVM); 968 VMMR3DECL(int) CPUMR3QueryGuestCtx GCPtr(PVM pVM, RCPTRTYPE(PCPUMCTX) *ppCtx);968 VMMR3DECL(int) CPUMR3QueryGuestCtxRCPtr(PVM pVM, RCPTRTYPE(PCPUMCTX) *ppCtx); 969 969 # ifdef DEBUG 970 970 VMMR3DECL(void) CPUMR3SaveEntryCtx(PVM pVM); -
trunk/include/VBox/vm.h
r13815 r13830 397 397 398 398 /** @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(). 400 401 */ 401 402 #ifdef IN_GC 402 # define VM_GET_VMCPUID(pVM) 403 # define VM_GET_VMCPUID(pVM) 0 403 404 #elif defined(IN_RING0) 404 # define VM_GET_VMCPUID(pVM) 405 #else 406 # define VM_GET_VMCPUID(pVM) 405 # define VM_GET_VMCPUID(pVM) HWACCMGetVMCPUId(pVM) 406 #else 407 # define VM_GET_VMCPUID(pVM) VMR3GetVMCPUId(pVM) 407 408 #endif 408 409 … … 465 466 /** Raw-mode Context VM Pointer. 466 467 * @deprecated Use VM::pVMRC. */ 467 RCPTRTYPE(struct VM *) pVMGC ;468 RCPTRTYPE(struct VM *) pVMGCUnused; 468 469 /** Raw-mode Context VM Pointer. */ 469 470 RCPTRTYPE(struct VM *) pVMRC; -
trunk/include/VBox/vm.mac
r13815 r13830 54 54 .pVMR3 RTR3PTR_RES 1 55 55 .pVMR0 RTR0PTR_RES 1 56 .pVMGC 56 .pVMGCUnused RTRCPTR_RES 1 57 57 .pVMRC RTRCPTR_RES 1 58 58 .hSelf resd 1 -
trunk/include/VBox/vmapi.h
r13791 r13830 44 44 * @{ */ 45 45 46 /** @def VM_GUEST_ADDR47 * Converts a current context address of data within the VM structure to the equivalent48 * 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_ADDR54 */55 #ifdef IN_RING356 # 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 #else60 # define VM_GUEST_ADDR(pVM, pvInVM) ( (RTGCPTR)(pvInVM) )61 #endif62 63 46 /** @def VM_RC_ADDR 64 47 * Converts a current context address of data within the VM structure to the equivalent … … 70 53 */ 71 54 #ifdef IN_RING3 72 # define VM_RC_ADDR(pVM, pvInVM) ( (RTRCPTR)((RTRCUINTPTR)pVM->pVM GC + (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)) ) 73 56 #elif defined(IN_RING0) 74 # define VM_RC_ADDR(pVM, pvInVM) ( (RTRCPTR)((RTRCUINTPTR)pVM->pVM GC + (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)) ) 75 58 #else 76 59 # define VM_RC_ADDR(pVM, pvInVM) ( (RTRCPTR)(pvInVM) ) … … 86 69 */ 87 70 #ifdef IN_GC 88 # define VM_R3_ADDR(pVM, pvInVM) ( (RTR3PTR)((RTR3UINTPTR)pVM->pVMR3 + (uint32_t)((uintptr_t)(pvInVM) - (uintptr_t)pVM->pVM GC)) )71 # define VM_R3_ADDR(pVM, pvInVM) ( (RTR3PTR)((RTR3UINTPTR)pVM->pVMR3 + (uint32_t)((uintptr_t)(pvInVM) - (uintptr_t)pVM->pVMRC)) ) 89 72 #elif defined(IN_RING0) 90 73 # define VM_R3_ADDR(pVM, pvInVM) ( (RTR3PTR)((RTR3UINTPTR)pVM->pVMR3 + (uint32_t)((uintptr_t)(pvInVM) - (uintptr_t)pVM->pVMR0)) ) … … 103 86 */ 104 87 #ifdef IN_GC 105 # define VM_R0_ADDR(pVM, pvInVM) ( (RTR0PTR)((RTR0UINTPTR)pVM->pVMR0 + (uint32_t)((uintptr_t)(pvInVM) - (uintptr_t)pVM->pVM GC)) )88 # define VM_R0_ADDR(pVM, pvInVM) ( (RTR0PTR)((RTR0UINTPTR)pVM->pVMR0 + (uint32_t)((uintptr_t)(pvInVM) - (uintptr_t)pVM->pVMRC)) ) 106 89 #elif defined(IN_RING3) 107 90 # 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.