Changeset 54823 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Mar 17, 2015 10:43:02 PM (10 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/Makefile.kmk
r54819 r54823 68 68 ifdef VBOX_WITH_64ON32_CMOS_DEBUG 69 69 VMM_COMMON_DEFS += VBOX_WITH_64ON32_CMOS_DEBUG 70 endif 71 ifeq ($(KBUILD_TARGET),amd64) 72 VMM_COMMON_DEFS += VBOX_WITH_MORE_RING0_MEM_MAPPINGS 70 73 endif 71 74 -
trunk/src/VBox/VMM/VMMR3/MMHyper.cpp
r54737 r54823 816 816 0 /*fFlags*/, 817 817 &pv, 818 #if def VBOX_WITH_2X_4GB_ADDR_SPACE818 #if defined(VBOX_WITH_2X_4GB_ADDR_SPACE) || defined(VBOX_WITH_MORE_RING0_MEM_MAPPINGS) 819 819 &pvR0, 820 820 #else … … 824 824 if (RT_SUCCESS(rc)) 825 825 { 826 #if ndef VBOX_WITH_2X_4GB_ADDR_SPACE826 #if !defined(VBOX_WITH_2X_4GB_ADDR_SPACE) && !defined(VBOX_WITH_MORE_RING0_MEM_MAPPINGS) 827 827 pvR0 = (uintptr_t)pv; 828 828 #endif … … 1012 1012 0 /*fFlags*/, 1013 1013 &pvPages, 1014 #ifdef VBOX_WITH_MORE_RING0_MEM_MAPPINGS 1015 &pvR0, 1016 #else 1014 1017 fFlags & MMHYPER_AONR_FLAGS_KERNEL_MAPPING ? &pvR0 : NULL, 1018 #endif 1015 1019 paPages); 1016 1020 if (RT_SUCCESS(rc)) 1017 1021 { 1022 #ifdef VBOX_WITH_MORE_RING0_MEM_MAPPINGS 1023 Assert(pvR0 != NIL_RTR0PTR); 1024 #else 1018 1025 if (!(fFlags & MMHYPER_AONR_FLAGS_KERNEL_MAPPING)) 1019 # ifdef VBOX_WITH_2X_4GB_ADDR_SPACE1026 # ifdef VBOX_WITH_2X_4GB_ADDR_SPACE 1020 1027 pvR0 = NIL_RTR0PTR; 1021 # else1028 # else 1022 1029 pvR0 = (RTR0PTR)pvPages; 1030 # endif 1023 1031 #endif 1024 1032 -
trunk/src/VBox/VMM/VMMR3/MMPagePool.cpp
r52809 r54823 63 63 */ 64 64 /** @todo @bufref{1865},@bufref{3202}: mapping the page pool page into 65 * ring-0. Need to change the wa sywe allocate it... */65 * ring-0. Need to change the ways we allocate it... */ 66 66 AssertReleaseReturn(sizeof(*pVM->mm.s.pPagePoolR3) + sizeof(*pVM->mm.s.pPagePoolLowR3) < PAGE_SIZE, VERR_INTERNAL_ERROR); 67 67 int rc = SUPR3PageAllocEx(1, 0 /*fFlags*/, (void **)&pVM->mm.s.pPagePoolR3, NULL /*pR0Ptr*/, NULL /*paPages*/); -
trunk/src/VBox/VMM/VMMR3/PGMPhys.cpp
r54820 r54823 1569 1569 void *pvChunk = NULL; 1570 1570 int rc = SUPR3PageAllocEx(cChunkPages, 0 /*fFlags*/, &pvChunk, 1571 #ifdef VBOX_WITH_2X_4GB_ADDR_SPACE 1571 #if defined(VBOX_WITH_MORE_RING0_MEM_MAPPINGS) 1572 &R0PtrChunk, 1573 #elif defined(VBOX_WITH_2X_4GB_ADDR_SPACE) 1572 1574 HMIsEnabled(pVM) ? &R0PtrChunk : NULL, 1573 1575 #else … … 1577 1579 if (RT_SUCCESS(rc)) 1578 1580 { 1579 #ifdef VBOX_WITH_2X_4GB_ADDR_SPACE 1581 #if defined(VBOX_WITH_MORE_RING0_MEM_MAPPINGS) 1582 Assert(R0PtrChunk != NIL_RTR0PTR); 1583 #elif defined(VBOX_WITH_2X_4GB_ADDR_SPACE) 1580 1584 if (!HMIsEnabled(pVM)) 1581 1585 R0PtrChunk = NIL_RTR0PTR; … … 4047 4051 * Flush dangling PGM pointers (R3 & R0 ptrs to GC physical addresses). 4048 4052 */ 4049 /** todo: we should not flush chunks which include cr3 mappings. */4053 /** @todo We should not flush chunks which include cr3 mappings. */ 4050 4054 for (VMCPUID idCpu = 0; idCpu < pVM->cCpus; idCpu++) 4051 4055 {
Note:
See TracChangeset
for help on using the changeset viewer.