- Timestamp:
- Jan 26, 2013 5:53:53 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/vmm.h
r43930 r44394 4 4 5 5 /* 6 * Copyright (C) 2006-201 0Oracle Corporation6 * Copyright (C) 2006-2013 Oracle Corporation 7 7 * 8 8 * This file is part of VirtualBox Open Source Edition (OSE), as … … 113 113 114 114 /** 115 * VMMR3AtomicExecuteHandler callback function.116 *117 * @returns VBox status code.118 * @param pVM Pointer to the shared VM structure.119 * @param pvUser User specified argument120 *121 * @todo missing prefix.122 */123 typedef DECLCALLBACK(int) FNATOMICHANDLER(PVM pVM, void *pvUser);124 /** Pointer to a FNMMATOMICHANDLER(). */125 typedef FNATOMICHANDLER *PFNATOMICHANDLER;126 127 /**128 115 * Rendezvous callback. 129 116 * … … 224 211 225 212 226 VMMDECL(RTRCPTR) VMMGetStackRC(PVMCPU pVCpu); 227 VMMDECL(VMCPUID) VMMGetCpuId(PVM pVM); 228 VMMDECL(PVMCPU) VMMGetCpu(PVM pVM); 229 VMMDECL(PVMCPU) VMMGetCpu0(PVM pVM); 230 VMMDECL(PVMCPU) VMMGetCpuById(PVM pVM, VMCPUID idCpu); 231 VMMDECL(uint32_t) VMMGetSvnRev(void); 232 VMMDECL(VMMSWITCHER) VMMGetSwitcher(PVM pVM); 233 VMMDECL(void) VMMTrashVolatileXMMRegs(void); 213 VMM_INT_DECL(RTRCPTR) VMMGetStackRC(PVMCPU pVCpu); 214 VMMDECL(VMCPUID) VMMGetCpuId(PVM pVM); 215 VMMDECL(PVMCPU) VMMGetCpu(PVM pVM); 216 VMMDECL(PVMCPU) VMMGetCpu0(PVM pVM); 217 VMMDECL(PVMCPU) VMMGetCpuById(PVM pVM, VMCPUID idCpu); 218 VMMR3DECL(PVMCPU) VMMR3GetCpuByIdU(PUVM pVM, VMCPUID idCpu); 219 VMM_INT_DECL(uint32_t) VMMGetSvnRev(void); 220 VMM_INT_DECL(VMMSWITCHER) VMMGetSwitcher(PVM pVM); 221 VMM_INT_DECL(void) VMMTrashVolatileXMMRegs(void); 234 222 235 223 /** @def VMMIsHwVirtExtForced … … 241 229 * @returns true / false. 242 230 * @param pVM Pointer to the shared VM structure. 231 * @internal 243 232 */ 244 233 #define VMMIsHwVirtExtForced(pVM) ((pVM)->fHwVirtExtForced) -
trunk/src/VBox/VMM/VMMAll/VMMAll.cpp
r41965 r44394 5 5 6 6 /* 7 * Copyright (C) 2006-201 2Oracle Corporation7 * Copyright (C) 2006-2013 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 174 174 * @param pVCpu Pointer to the VMCPU. 175 175 */ 176 VMM DECL(RTRCPTR) VMMGetStackRC(PVMCPU pVCpu)176 VMM_INT_DECL(RTRCPTR) VMMGetStackRC(PVMCPU pVCpu) 177 177 { 178 178 return (RTRCPTR)pVCpu->vmm.s.pbEMTStackBottomRC; … … 186 186 * 187 187 * @param pVM Pointer to the VM. 188 * @internal 188 189 */ 189 190 VMMDECL(VMCPUID) VMMGetCpuId(PVM pVM) … … 237 238 * 238 239 * @param pVM Pointer to the VM. 240 * @internal 239 241 */ 240 242 VMMDECL(PVMCPU) VMMGetCpu(PVM pVM) … … 291 293 * @returns The VMCPU pointer. 292 294 * @param pVM Pointer to the VM. 295 * @internal 293 296 */ 294 297 VMMDECL(PVMCPU) VMMGetCpu0(PVM pVM) … … 306 309 * @param pVM Pointer to the VM. 307 310 * @param idCpu The ID of the virtual CPU. 311 * @internal 308 312 */ 309 313 VMMDECL(PVMCPU) VMMGetCpuById(PVM pVM, RTCPUID idCpu) … … 322 326 * @returns VBOX_SVN_REV. 323 327 */ 324 VMM DECL(uint32_t) VMMGetSvnRev(void)328 VMM_INT_DECL(uint32_t) VMMGetSvnRev(void) 325 329 { 326 330 return VBOX_SVN_REV; … … 334 338 * @param pVM Pointer to the VM. 335 339 */ 336 VMM DECL(VMMSWITCHER) VMMGetSwitcher(PVM pVM)340 VMM_INT_DECL(VMMSWITCHER) VMMGetSwitcher(PVM pVM) 337 341 { 338 342 return pVM->vmm.s.enmSwitcher; -
trunk/src/VBox/VMM/VMMR3/VMM.cpp
r44340 r44394 5 5 6 6 /* 7 * Copyright (C) 2006-20 07Oracle Corporation7 * Copyright (C) 2006-2013 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 96 96 #endif 97 97 #include <VBox/vmm/ssm.h> 98 #include <VBox/vmm/ftm.h> 98 99 #include <VBox/vmm/tm.h> 99 100 #include "VMMInternal.h" 100 101 #include "VMMSwitcher.h" 101 102 #include <VBox/vmm/vm.h> 102 #include <VBox/vmm/ ftm.h>103 #include <VBox/vmm/uvm.h> 103 104 104 105 #include <VBox/err.h> … … 961 962 962 963 /** 964 * Returns the VMCPU of the specified virtual CPU. 965 * 966 * @returns The VMCPU pointer. NULL if @a idCpu or @a pUVM is invalid. 967 * 968 * @param pUVM The user mode VM handle. 969 * @param idCpu The ID of the virtual CPU. 970 */ 971 VMMR3DECL(PVMCPU) VMMR3GetCpuByIdU(PUVM pUVM, RTCPUID idCpu) 972 { 973 UVM_ASSERT_VALID_EXT_RETURN(pUVM, NULL); 974 AssertReturn(idCpu < pUVM->cCpus, NULL); 975 VM_ASSERT_VALID_EXT_RETURN(pUVM->pVM, NULL); 976 return &pUVM->pVM->aCpus[idCpu]; 977 } 978 979 980 /** 963 981 * Gets the pointer to a buffer containing the R0/RC RTAssertMsg2Weak output. 964 982 *
Note:
See TracChangeset
for help on using the changeset viewer.