Changeset 43303 in vbox
- Timestamp:
- Sep 11, 2012 11:55:10 PM (12 years ago)
- Location:
- trunk
- Files:
-
- 8 edited
-
. (modified) (1 prop)
-
src/VBox/Runtime/darwin/RTErrConvertFromDarwin.cpp (modified) (1 diff)
-
src/VBox/Runtime/r0drv/darwin/dbgkrnlinfo-r0drv-darwin.cpp (modified) (4 diffs)
-
src/VBox/Runtime/r0drv/darwin/memobj-r0drv-darwin.cpp (modified) (2 diffs)
-
src/VBox/Runtime/r0drv/darwin/the-darwin-kernel.h (modified) (2 diffs)
-
src/VBox/VMM/VMMR0/HWACCMR0.cpp (modified) (2 diffs)
-
src/VBox/VMM/VMMR0/VMMR0.cpp (modified) (1 diff)
-
src/VBox/VMM/include/PGMInline.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk
- Property svn:mergeinfo changed
/branches/VBox-4.1 merged: 78414
- Property svn:mergeinfo changed
-
trunk/src/VBox/Runtime/darwin/RTErrConvertFromDarwin.cpp
r33540 r43303 49 49 */ 50 50 case KERN_INVALID_ADDRESS: return VERR_INVALID_POINTER; 51 //case KERN_PROTECTION_FAILURE:51 case KERN_PROTECTION_FAILURE: return VERR_PERMISSION_DENIED; 52 52 //case KERN_NO_SPACE: 53 53 case KERN_INVALID_ARGUMENT: return VERR_INVALID_PARAMETER; -
trunk/src/VBox/Runtime/r0drv/darwin/dbgkrnlinfo-r0drv-darwin.cpp
r41052 r43303 395 395 extern "C" void OSMalloc(void); 396 396 extern "C" void OSlibkernInit(void); 397 extern "C" int osrelease;398 extern "C" int ostype;399 397 extern "C" void kdp_set_interface(void); 400 398 … … 743 741 RETURN_VERR_BAD_EXE_FORMAT; 744 742 745 if (pSeg->vmaddr != 0) 743 if ( pSeg->vmaddr != 0 744 || !strcmp(pSeg->segname, "__PAGEZERO")) 746 745 { 747 746 if (pSeg->vmaddr + RT_ALIGN_Z(pSeg->vmsize, RT_BIT_32(12)) < pSeg->vmaddr) … … 775 774 case S_MOD_TERM_FUNC_POINTERS: 776 775 case S_COALESCED: 776 case S_4BYTE_LITERALS: 777 777 if ( pSeg->filesize != 0 778 778 ? paSects[i].offset - pSeg->fileoff >= pSeg->filesize … … 792 792 case S_SYMBOL_STUBS: 793 793 case S_INTERPOSING: 794 case S_4BYTE_LITERALS:795 794 case S_8BYTE_LITERALS: 796 795 case S_16BYTE_LITERALS: -
trunk/src/VBox/Runtime/r0drv/darwin/memobj-r0drv-darwin.cpp
r42037 r43303 547 547 RTThreadPreemptRestore(&State); 548 548 # endif 549 550 /* Bug 6226: Ignore KERN_PROTECTION_FAILURE on Leopard and older. */ 551 if ( rc == VERR_PERMISSION_DENIED 552 && version_major <= 9 /* 9 = 10.5.x = Leopard. */) 553 rc = VINF_SUCCESS; 549 554 } 550 555 else … … 1034 1039 fMachProt); 1035 1040 if (krc != KERN_SUCCESS) 1041 { 1042 static int s_cComplaints = 0; 1043 if (s_cComplaints < 10) 1044 { 1045 s_cComplaints++; 1046 printf("rtR0MemObjNativeProtect: vm_protect(%p,%p,%p,false,%#x) -> %d\n", 1047 pVmMap, (void *)Start, (void *)cbSub, fMachProt, krc); 1048 1049 kern_return_t krc2; 1050 vm_offset_t pvReal = Start; 1051 vm_size_t cbReal = 0; 1052 mach_msg_type_number_t cInfo = VM_REGION_BASIC_INFO_COUNT; 1053 struct vm_region_basic_info Info; 1054 RT_ZERO(Info); 1055 krc2 = vm_region(pVmMap, &pvReal, &cbReal, VM_REGION_BASIC_INFO, (vm_region_info_t)&Info, &cInfo, NULL); 1056 printf("rtR0MemObjNativeProtect: basic info - krc2=%d pv=%p cb=%p prot=%#x max=%#x inh=%#x shr=%d rvd=%d off=%#x behavior=%#x wired=%#x\n", 1057 krc2, (void *)pvReal, (void *)cbReal, Info.protection, Info.max_protection, Info.inheritance, 1058 Info.shared, Info.reserved, Info.offset, Info.behavior, Info.user_wired_count); 1059 } 1036 1060 return RTErrConvertFromDarwinKern(krc); 1061 } 1037 1062 1038 1063 /* -
trunk/src/VBox/Runtime/r0drv/darwin/the-darwin-kernel.h
r37575 r43303 60 60 #include <libkern/libkern.h> 61 61 #include <libkern/sysctl.h> 62 #include <libkern/version.h> 62 63 #include <mach/thread_act.h> 63 64 #include <mach/vm_map.h> 65 #include <mach/vm_region.h> 64 66 #include <pexpert/pexpert.h> 65 67 #include <sys/conf.h> … … 142 144 /* osfmk/vm/vm_user.c */ 143 145 extern kern_return_t vm_protect(vm_map_t, vm_offset_t, vm_size_t, boolean_t, vm_prot_t); 146 /*extern kern_return_t vm_region(vm_map_t, vm_address_t *, vm_size_t *, vm_region_flavor_t, vm_region_info_t, 147 mach_msg_type_number_t *, mach_port_t *);*/ 144 148 145 149 /* i386/machine_routines.h */ -
trunk/src/VBox/VMM/VMMR0/HWACCMR0.cpp
r42407 r43303 374 374 if (g_HvmR0.vmx.fUsingSUPR0EnableVTx) 375 375 { 376 Assert Msg(rc == VINF_SUCCESS || rc == VERR_VMX_IN_VMX_ROOT_MODE || rc == VERR_VMX_NO_VMX, ("%Rrc\n", rc));376 AssertLogRelMsg(rc == VINF_SUCCESS || rc == VERR_VMX_IN_VMX_ROOT_MODE || rc == VERR_VMX_NO_VMX, ("%Rrc\n", rc)); 377 377 if (RT_SUCCESS(rc)) 378 378 { 379 379 g_HvmR0.vmx.fSupported = true; 380 380 rc = SUPR0EnableVTx(false /* fEnable */); 381 Assert RC(rc);381 AssertLogRelRC(rc); 382 382 } 383 383 } … … 433 433 */ 434 434 RTR0MEMOBJ hScatchMemObj; 435 rc = RTR0MemObjAllocCont(&hScatchMemObj, PAGE_SIZE, true /* executable R0 mapping*/);435 rc = RTR0MemObjAllocCont(&hScatchMemObj, PAGE_SIZE, true /*fExecutable*/); 436 436 if (RT_FAILURE(rc)) 437 { 438 LogRel(("hmR0InitIntel: RTR0MemObjAllocCont(,PAGE_SIZE,true) -> %Rrc\n", rc)); 437 439 return rc; 440 } 438 441 439 442 void *pvScatchPage = RTR0MemObjAddress(hScatchMemObj); -
trunk/src/VBox/VMM/VMMR0/VMMR0.cpp
r43047 r43303 166 166 #endif 167 167 } 168 else 169 LogRel(("ModuleInit: CPUMR0ModuleInit -> %Rrc\n", rc)); 168 170 #ifdef VBOX_WITH_PCI_PASSTHROUGH 169 171 PciRawR0Term(); 170 172 #endif 171 173 } 174 else 175 LogRel(("ModuleInit: PciRawR0Init -> %Rrc\n", rc)); 172 176 IntNetR0Term(); 173 177 } 178 else 179 LogRel(("ModuleInit: IntNetR0Init -> %Rrc\n", rc)); 174 180 #ifdef VBOX_WITH_2X_4GB_ADDR_SPACE 175 181 PGMR0DynMapTerm(); 176 182 #endif 177 183 } 184 else 185 LogRel(("ModuleInit: PGMR0DynMapInit -> %Rrc\n", rc)); 178 186 PGMDeregisterStringFormatTypes(); 179 187 } 188 else 189 LogRel(("ModuleInit: PGMRegisterStringFormatTypes -> %Rrc\n", rc)); 180 190 HWACCMR0Term(); 181 191 } 192 else 193 LogRel(("ModuleInit: HWACCMR0Init -> %Rrc\n", rc)); 182 194 GMMR0Term(); 183 195 } 184 GVMMR0Term(); 196 else 197 LogRel(("ModuleInit: GMMR0Init -> %Rrc\n", rc)); 198 GVMMR0Term(); 185 199 } 200 else 201 LogRel(("ModuleInit: GVMMR0Init -> %Rrc\n", rc)); 186 202 vmmTermFormatTypes(); 187 203 } 204 else 205 LogRel(("ModuleInit: vmmInitFormatTypes -> %Rrc\n", rc)); 188 206 189 207 LogFlow(("ModuleInit: failed %Rrc\n", rc)); -
trunk/src/VBox/VMM/include/PGMInline.h
r41805 r43303 490 490 rc = VINF_SUCCESS; 491 491 AssertPtr(pTlbe->pv); 492 # if !defined(VBOX_WITH_2X_4GB_ADDR_SPACE) || defined(IN_RING3)492 # ifndef VBOX_WITH_2X_4GB_ADDR_SPACE_IN_R0 493 493 Assert(!pTlbe->pMap || RT_VALID_PTR(pTlbe->pMap->pv)); 494 494 # endif
Note:
See TracChangeset
for help on using the changeset viewer.

