Changeset 12965 in vbox
- Timestamp:
- Oct 2, 2008 10:26:14 PM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 37397
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMGC/MMRamGC.cpp
r9282 r12965 78 78 } 79 79 80 80 81 /** 81 82 * Remove MMGCRam Hypervisor page fault handler. … … 114 115 } 115 116 117 116 118 /** 117 119 * Write data in guest context with #PF control. … … 125 127 MMGCDECL(int) MMGCRamWrite(PVM pVM, void *pDst, void *pSrc, size_t cb) 126 128 { 127 int rc;128 129 129 TRPMSaveTrap(pVM); /* save the current trap info, because it will get trashed if our access failed. */ 130 130 131 131 MMGCRamRegisterTrapHandler(pVM); 132 rc = MMGCRamWriteNoTrapHandler(pDst, pSrc, cb);132 int rc = MMGCRamWriteNoTrapHandler(pDst, pSrc, cb); 133 133 MMGCRamDeregisterTrapHandler(pVM); 134 134 if (VBOX_FAILURE(rc)) … … 158 158 { 159 159 /* Must be a read violation. */ 160 AssertReturn(!(TRPMGetErrorCode(pVM) & X86_TRAP_PF_RW), VERR_INTERNAL_ERROR); 160 AssertReturn(!(TRPMGetErrorCode(pVM) & X86_TRAP_PF_RW), VERR_INTERNAL_ERROR); 161 161 pRegFrame->eip = (uintptr_t)&MMGCRamRead_Error; 162 162 return VINF_SUCCESS; … … 170 170 { 171 171 /* Must be a write violation. */ 172 AssertReturn(TRPMGetErrorCode(pVM) & X86_TRAP_PF_RW, VERR_INTERNAL_ERROR); 172 AssertReturn(TRPMGetErrorCode(pVM) & X86_TRAP_PF_RW, VERR_INTERNAL_ERROR); 173 173 pRegFrame->eip = (uintptr_t)&MMGCRamWrite_Error; 174 174 return VINF_SUCCESS; … … 255 255 } 256 256 257 /* 258 * #PF is not handled - cause guru meditation. 257 /* 258 * #PF is not handled - cause guru meditation. 259 259 */ 260 260 return VERR_INTERNAL_ERROR;
Note:
See TracChangeset
for help on using the changeset viewer.