- Timestamp:
- May 18, 2015 9:02:07 AM (10 years ago)
- Location:
- trunk
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/vmm/pgm.h
r55896 r55897 558 558 PFNPGMR3VIRTINVALIDATE pfnInvalidateR3, 559 559 PFNPGMR3VIRTHANDLER pfnHandlerR3, 560 const char *pszPfHandlerRC, const char *psz ModRC, const char *pszDesc,560 const char *pszPfHandlerRC, const char *pszDesc, 561 561 PPGMVIRTHANDLERTYPE phType); 562 562 VMMR3_INT_DECL(int) PGMR3HandlerVirtualRegister(PVM pVM, PVMCPU pVCpu, PGMVIRTHANDLERTYPE hType, RTGCPTR GCPtr, -
trunk/src/VBox/VMM/VMMR3/CSAM.cpp
r55895 r55897 256 256 NULL /*pfnInvalidateR3 */, 257 257 csamR3CodePageWriteHandler, 258 "csamRCCodePageWritePfHandler", NULL /*pszModRC*/,258 "csamRCCodePageWritePfHandler", 259 259 "CSAM code page write handler", 260 260 &pVM->csam.s.hCodePageWriteType); … … 263 263 csamR3CodePageInvalidate, 264 264 csamR3CodePageWriteHandler, 265 "csamRCCodePageWritePfHandler", NULL /*pszModRC*/,265 "csamRCCodePageWritePfHandler", 266 266 "CSAM code page write and invlpg handler", 267 267 &pVM->csam.s.hCodePageWriteAndInvPgType); -
trunk/src/VBox/VMM/VMMR3/PATM.cpp
r55895 r55897 225 225 NULL /*pfnInvalidateR3*/, 226 226 patmR3VirtPageHandler, 227 "patmRCVirtPagePfHandler", NULL /*pszModRC*/,227 "patmRCVirtPagePfHandler", 228 228 "PATMMonitorPatchJump", &pVM->patm.s.hMonitorPageType); 229 229 AssertRCReturn(rc, rc); -
trunk/src/VBox/VMM/VMMR3/PGMHandler.cpp
r55896 r55897 346 346 * (optional, can be NULL). 347 347 * @param pfnHandlerR3 Pointer to the ring-3 handler callback. 348 * @param pszModRC The name of the raw-mode context module, NULL is an 349 * alias for the main RC module. 350 * @param pszPfHandlerRC The name of the raw-mode context handler, NULL if 351 * the ring-3 handler should be called. 348 * @param pszPfHandlerRC The name of the raw-mode context handler. 352 349 * @param pszDesc The type description. 353 350 * @param phType Where to return the type handle (cross context … … 358 355 PFNPGMR3VIRTINVALIDATE pfnInvalidateR3, 359 356 PFNPGMR3VIRTHANDLER pfnHandlerR3, 360 const char *pszPfHandlerRC, const char *psz ModRC, const char *pszDesc,357 const char *pszPfHandlerRC, const char *pszDesc, 361 358 PPGMVIRTHANDLERTYPE phType) 362 359 { 363 LogFlow(("PGMR3HandlerVirtualTypeRegister: enmKind=%d pfnInvalidateR3=%RHv pfnHandlerR3=%RHv psz ModRC=%s pszPfHandlerRC=%s pszDesc=%s\n",364 enmKind, pfnInvalidateR3, pfnHandlerR3, pszPfHandlerRC, psz ModRC, pszDesc));360 LogFlow(("PGMR3HandlerVirtualTypeRegister: enmKind=%d pfnInvalidateR3=%RHv pfnHandlerR3=%RHv pszPfHandlerRC=%s pszDesc=%s\n", 361 enmKind, pfnInvalidateR3, pfnHandlerR3, pszPfHandlerRC, pszDesc)); 365 362 366 363 /* 367 364 * Validate input. 368 365 */ 369 if (!pszModRC)370 pszModRC = VMMGC_MAIN_MODULE_NAME;371 366 AssertPtrReturn(pszPfHandlerRC, VERR_INVALID_POINTER); 372 367 … … 375 370 */ 376 371 RTRCPTR pfnPfHandlerRC = NIL_RTRCPTR; 377 int rc = PDMR3LdrGetSymbolRCLazy(pVM, pszModRC, NULL /*pszSearchPath*/, pszPfHandlerRC, &pfnPfHandlerRC);372 int rc = PDMR3LdrGetSymbolRCLazy(pVM, VMMGC_MAIN_MODULE_NAME, NULL /*pszSearchPath*/, pszPfHandlerRC, &pfnPfHandlerRC); 378 373 if (RT_SUCCESS(rc)) 379 374 return PGMR3HandlerVirtualTypeRegisterEx(pVM, enmKind, fRelocUserRC, … … 382 377 pszDesc, phType); 383 378 384 AssertMsgFailed(("Failed to resolve %s.%s, rc=%Rrc.\n", pszModRC, pszPfHandlerRC, rc));379 AssertMsgFailed(("Failed to resolve %s.%s, rc=%Rrc.\n", VMMGC_MAIN_MODULE_NAME, pszPfHandlerRC, rc)); 385 380 return rc; 386 381 } -
trunk/src/VBox/VMM/VMMR3/SELM.cpp
r55895 r55897 203 203 rc = PGMR3HandlerVirtualTypeRegister(pVM, PGMVIRTHANDLERKIND_HYPERVISOR, false /*fRelocUserRC*/, 204 204 NULL /*pfnInvalidateR3*/, NULL /*pfnHandlerR3*/, 205 "selmRCShadowGDTWritePfHandler", NULL /*pszModRC*/,205 "selmRCShadowGDTWritePfHandler", 206 206 "Shadow GDT write access handler", &pVM->selm.s.hShadowGdtWriteHandlerType); 207 207 AssertRCReturn(rc, rc); … … 210 210 rc = PGMR3HandlerVirtualTypeRegister(pVM, PGMVIRTHANDLERKIND_HYPERVISOR, false /*fRelocUserRC*/, 211 211 NULL /*pfnInvalidateR3*/, NULL /*pfnHandlerR3*/, 212 "selmRCShadowTSSWritePfHandler", NULL /*pszModRC*/,212 "selmRCShadowTSSWritePfHandler", 213 213 "Shadow TSS write access handler", &pVM->selm.s.hShadowTssWriteHandlerType); 214 214 AssertRCReturn(rc, rc); … … 217 217 rc = PGMR3HandlerVirtualTypeRegister(pVM, PGMVIRTHANDLERKIND_HYPERVISOR, false /*fRelocUserRC*/, 218 218 NULL /*pfnInvalidateR3*/, NULL /*pfnHandlerR3*/, 219 "selmRCShadowLDTWritePfHandler", NULL /*pszModRC*/,219 "selmRCShadowLDTWritePfHandler", 220 220 "Shadow LDT write access handler", &pVM->selm.s.hShadowLdtWriteHandlerType); 221 221 AssertRCReturn(rc, rc); … … 223 223 rc = PGMR3HandlerVirtualTypeRegister(pVM, PGMVIRTHANDLERKIND_WRITE, false /*fRelocUserRC*/, 224 224 NULL /*pfnInvalidateR3*/, selmR3GuestGDTWriteHandler, 225 "selmRCGuestGDTWritePfHandler", NULL /*pszModRC*/,225 "selmRCGuestGDTWritePfHandler", 226 226 "Guest GDT write access handler", &pVM->selm.s.hGuestGdtWriteHandlerType); 227 227 AssertRCReturn(rc, rc); 228 228 rc = PGMR3HandlerVirtualTypeRegister(pVM, PGMVIRTHANDLERKIND_WRITE, false /*fRelocUserRC*/, 229 229 NULL /*pfnInvalidateR3*/, selmR3GuestLDTWriteHandler, 230 "selmRCGuestLDTWritePfHandler", NULL /*pszModRC*/,230 "selmRCGuestLDTWritePfHandler", 231 231 "Guest LDT write access handler", &pVM->selm.s.hGuestLdtWriteHandlerType); 232 232 AssertRCReturn(rc, rc); 233 233 rc = PGMR3HandlerVirtualTypeRegister(pVM, PGMVIRTHANDLERKIND_WRITE, false /*fRelocUserRC*/, 234 234 NULL /*pfnInvalidateR3*/, selmR3GuestTSSWriteHandler, 235 "selmRCGuestTSSWritePfHandler", NULL /*pszModRC*/,235 "selmRCGuestTSSWritePfHandler", 236 236 "Guest TSS write access handler", &pVM->selm.s.hGuestTssWriteHandlerType); 237 237 AssertRCReturn(rc, rc); -
trunk/src/VBox/VMM/VMMR3/TRPM.cpp
r55895 r55897 518 518 rc = PGMR3HandlerVirtualTypeRegister(pVM, PGMVIRTHANDLERKIND_HYPERVISOR, false /*fRelocUserRC*/, 519 519 NULL /*pfnInvalidateR3*/, NULL /*pfnHandlerR3*/, 520 "trpmRCShadowIDTWritePfHandler", NULL /*pszModRC*/,520 "trpmRCShadowIDTWritePfHandler", 521 521 "Shadow IDT write access handler", &pVM->trpm.s.hShadowIdtWriteHandlerType); 522 522 AssertRCReturn(rc, rc); … … 524 524 rc = PGMR3HandlerVirtualTypeRegister(pVM, PGMVIRTHANDLERKIND_WRITE, false /*fRelocUserRC*/, 525 525 NULL /*pfnInvalidateR3*/, trpmR3GuestIDTWriteHandler, 526 "trpmRCGuestIDTWritePfHandler", NULL /*pszModRC*/,526 "trpmRCGuestIDTWritePfHandler", 527 527 "Guest IDT write access handler", &pVM->trpm.s.hGuestIdtWriteHandlerType); 528 528 AssertRCReturn(rc, rc);
Note:
See TracChangeset
for help on using the changeset viewer.