Changeset 45786 in vbox for trunk/src/VBox/VMM/VMMAll
- Timestamp:
- Apr 26, 2013 10:35:59 PM (12 years ago)
- Location:
- trunk/src/VBox/VMM/VMMAll
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMAll/PGMAllMap.cpp
r45739 r45786 259 259 } 260 260 261 262 #ifdef VBOX_WITH_RAW_MODE_NOT_R0 261 #ifndef PGM_WITHOUT_MAPPINGS 262 263 263 /** 264 264 * Sets all PDEs involved with the mapping in the shadow page table. … … 357 357 if (!pgmPoolIsPageLocked(pPoolPagePd)) 358 358 pgmPoolLockPage(pPool, pPoolPagePd); 359 # ifdef VBOX_STRICT359 # ifdef VBOX_STRICT 360 360 else if (pShwPaePd->a[iPaePde].u & PGM_PDFLAGS_MAPPING) 361 361 { … … 369 369 ("%RX64 vs %RX64\n", pShwPaePd->a[iPaePde+1].u & X86_PDE_PAE_PG_MASK, pMap->aPTs[i].HCPhysPaePT1)); 370 370 } 371 # endif371 # endif 372 372 373 373 /* … … 542 542 PGM_DYNMAP_UNUSED_HINT_VM(pVM, pCurrentShwPdpt); 543 543 } 544 #endif /* VBOX_WITH_RAW_MODE_NOT_R0 */ 545 544 545 #endif /* PGM_WITHOUT_MAPPINGS */ 546 546 #if defined(VBOX_STRICT) && !defined(IN_RING0) 547 547 548 /** 548 549 * Clears all PDEs involved with the mapping in the shadow page table. … … 653 654 pgmUnlock(pVM); 654 655 } 656 655 657 #endif /* defined(VBOX_STRICT) && !defined(IN_RING0) */ 656 657 #ifdef VBOX_WITH_RAW_MODE_NOT_R0 658 #ifndef PGM_WITHOUT_MAPPINGS 658 659 659 660 /** … … 741 742 if (!pgmMapAreMappingsFloating(pVM)) 742 743 return false; 743 744 Assert(pVM->cCpus == 1); 744 AssertReturn(pgmMapAreMappingsEnabled(pVM), false); 745 745 746 746 /* This only applies to raw mode where we only support 1 VCPU. */ … … 771 771 STAM_COUNTER_INC(&pVM->pgm.s.CTX_SUFF(pStats)->StatR3DetectedConflicts); 772 772 773 # ifdef IN_RING3773 # ifdef IN_RING3 774 774 Log(("PGMHasMappingConflicts: Conflict was detected at %08RX32 for mapping %s (32 bits)\n" 775 775 " iPDE=%#x iPT=%#x PDE=%RGp.\n", 776 776 (iPT + iPDE) << X86_PD_SHIFT, pCur->pszDesc, 777 777 iPDE, iPT, pPD->a[iPDE + iPT].au32[0])); 778 # else778 # else 779 779 Log(("PGMHasMappingConflicts: Conflict was detected at %08RX32 for mapping (32 bits)\n" 780 780 " iPDE=%#x iPT=%#x PDE=%RGp.\n", 781 781 (iPT + iPDE) << X86_PD_SHIFT, 782 782 iPDE, iPT, pPD->a[iPDE + iPT].au32[0])); 783 # endif783 # endif 784 784 return true; 785 785 } … … 802 802 { 803 803 STAM_COUNTER_INC(&pVM->pgm.s.CTX_SUFF(pStats)->StatR3DetectedConflicts); 804 # ifdef IN_RING3804 # ifdef IN_RING3 805 805 Log(("PGMHasMappingConflicts: Conflict was detected at %RGv for mapping %s (PAE)\n" 806 806 " PDE=%016RX64.\n", 807 807 GCPtr, pCur->pszDesc, Pde.u)); 808 # else808 # else 809 809 Log(("PGMHasMappingConflicts: Conflict was detected at %RGv for mapping (PAE)\n" 810 810 " PDE=%016RX64.\n", 811 811 GCPtr, Pde.u)); 812 # endif812 # endif 813 813 return true; 814 814 } … … 866 866 STAM_COUNTER_INC(&pVM->pgm.s.CTX_SUFF(pStats)->StatR3DetectedConflicts); 867 867 868 # ifdef IN_RING3868 # ifdef IN_RING3 869 869 Log(("PGMHasMappingConflicts: Conflict was detected at %08RX32 for mapping %s (32 bits)\n" 870 870 " iPDE=%#x iPT=%#x PDE=%RGp.\n", … … 874 874 AssertRCReturn(rc, rc); 875 875 break; 876 # else876 # else 877 877 Log(("PGMHasMappingConflicts: Conflict was detected at %08RX32 for mapping (32 bits)\n" 878 878 " iPDE=%#x iPT=%#x PDE=%RGp.\n", … … 880 880 iPDE, iPT, pPD->a[iPDE + iPT].au32[0])); 881 881 return VINF_PGM_SYNC_CR3; 882 # endif882 # endif 883 883 } 884 884 } … … 931 931 } 932 932 933 #endif /* VBOX_WITH_RAW_MODE_NOT_R0*/934 933 #endif /* PGM_WITHOUT_MAPPINGS */ 934 -
trunk/src/VBox/VMM/VMMAll/SELMAll.cpp
r45725 r45786 867 867 #endif 868 868 869 869 870 #ifdef VBOX_WITH_RAW_MODE_NOT_R0 870 871 871 /** 872 872 * Gets ss:esp for ring1 in main Hypervisor's TSS. … … 954 954 return VINF_SUCCESS; 955 955 } 956 956 #endif /* VBOX_WITH_RAW_MODE_NOT_R0 */ 957 958 959 #if defined(VBOX_WITH_RAW_MODE) || (HC_ARCH_BITS != 64 && !defined(VBOX_WITH_HYBRID_32BIT_KERNEL)) 957 960 958 961 /** … … 1028 1031 } 1029 1032 1030 #endif /* VBOX_WITH_RAW_MODE_NOT_R0*/1033 #endif /* defined(VBOX_WITH_RAW_MODE) || (HC_ARCH_BITS != 64 && !defined(VBOX_WITH_HYBRID_32BIT_KERNEL)) */ 1031 1034 1032 1035 /**
Note:
See TracChangeset
for help on using the changeset viewer.