Changeset 45525 in vbox for trunk/src/VBox/VMM/VMMR3
- Timestamp:
- Apr 12, 2013 4:47:57 PM (12 years ago)
- Location:
- trunk/src/VBox/VMM/VMMR3
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/VM.cpp
r45499 r45525 104 104 static int vmR3InitRing3(PVM pVM, PUVM pUVM); 105 105 static int vmR3InitRing0(PVM pVM); 106 static int vmR3InitGC(PVM pVM); 106 #ifdef VBOX_WITH_RAW_MODE 107 static int vmR3InitRC(PVM pVM); 108 #endif 107 109 static int vmR3InitDoCompleted(PVM pVM, VMINITCOMPLETED enmWhat); 108 110 #ifdef LOG_ENABLED … … 737 739 #endif 738 740 /* 739 * Init the GuestContext components.741 * Init the Raw-Mode Context components. 740 742 */ 741 rc = vmR3InitGC(pVM); 743 #ifdef VBOX_WITH_RAW_MODE 744 rc = vmR3InitRC(pVM); 742 745 if (RT_SUCCESS(rc)) 746 #endif 743 747 { 744 748 /* … … 1073 1077 1074 1078 1075 /** 1076 * Initializes all GC components of the VM 1077 */ 1078 static int vmR3InitGC(PVM pVM) 1079 { 1080 LogFlow(("vmR3InitGC:\n")); 1079 #ifdef VBOX_WITH_RAW_MODE 1080 /** 1081 * Initializes all RC components of the VM 1082 */ 1083 static int vmR3InitRC(PVM pVM) 1084 { 1085 LogFlow(("vmR3InitRC:\n")); 1081 1086 1082 1087 /* … … 1093 1098 } 1094 1099 else 1095 Log(("vmR3Init GC: skipping because of VBOX_SUPLIB_FAKE=fake\n"));1100 Log(("vmR3InitRC: skipping because of VBOX_SUPLIB_FAKE=fake\n")); 1096 1101 1097 1102 /* … … 1100 1105 if (RT_SUCCESS(rc)) 1101 1106 rc = vmR3InitDoCompleted(pVM, VMINITCOMPLETED_GC); 1102 LogFlow(("vmR3Init GC: returns %Rrc\n", rc));1107 LogFlow(("vmR3InitRC: returns %Rrc\n", rc)); 1103 1108 return rc; 1104 1109 } 1110 #endif /* VBOX_WITH_RAW_MODE */ 1105 1111 1106 1112 -
trunk/src/VBox/VMM/VMMR3/VMM.cpp
r45293 r45525 536 536 537 537 538 #ifdef VBOX_WITH_RAW_MODE 538 539 /** 539 540 * Initializes the RC VMM. … … 611 612 return rc; 612 613 } 614 #endif /* VBOX_WITH_RAW_MODE */ 613 615 614 616 … … 1096 1098 1097 1099 1100 #ifdef VBOX_WITH_RAW_MODE 1098 1101 /** 1099 1102 * Resolve a builtin RC symbol. … … 1118 1121 else if (!strcmp(pszSymbol, "g_RelLogger")) 1119 1122 { 1120 # ifdef VBOX_WITH_RC_RELEASE_LOGGING1123 # ifdef VBOX_WITH_RC_RELEASE_LOGGING 1121 1124 if (pVM->vmm.s.pRCRelLoggerR3) 1122 1125 pVM->vmm.s.pRCRelLoggerRC = MMHyperR3ToRC(pVM, pVM->vmm.s.pRCRelLoggerR3); 1123 1126 *pRCPtrValue = pVM->vmm.s.pRCRelLoggerRC; 1124 # else1127 # else 1125 1128 *pRCPtrValue = NIL_RTRCPTR; 1126 # endif1129 # endif 1127 1130 } 1128 1131 else … … 1130 1133 return VINF_SUCCESS; 1131 1134 } 1135 #endif /* VBOX_WITH_RAW_MODE */ 1132 1136 1133 1137 … … 1225 1229 1226 1230 1231 #ifdef VBOX_WITH_RAW_MODE 1227 1232 /** 1228 1233 * Executes guest code in the raw-mode context. … … 1299 1304 } 1300 1305 } 1306 #endif /* VBOX_WITH_RAW_MODE */ 1301 1307 1302 1308 … … 1879 1885 } 1880 1886 1887 #ifdef VBOX_WITH_RAW_MODE 1881 1888 1882 1889 /** … … 1978 1985 } 1979 1986 1987 #endif /* VBOX_WITH_RAW_MODE */ 1980 1988 1981 1989 /** … … 2028 2036 2029 2037 2038 #ifdef VBOX_WITH_RAW_MODE 2030 2039 /** 2031 2040 * Resumes executing hypervisor code when interrupted by a queue flush or a … … 2050 2059 do 2051 2060 { 2052 # ifdef NO_SUPCALLR0VMM2061 # ifdef NO_SUPCALLR0VMM 2053 2062 rc = VERR_GENERAL_FAILURE; 2054 # else2063 # else 2055 2064 rc = SUPR3CallVMMR0Fast(pVM->pVMR0, VMMR0_DO_RAW_RUN, 0); 2056 2065 if (RT_LIKELY(rc == VINF_SUCCESS)) 2057 2066 rc = pVCpu->vmm.s.iLastGZRc; 2058 # endif2067 # endif 2059 2068 } while (rc == VINF_EM_RAW_INTERRUPT_HYPER); 2060 2069 … … 2062 2071 * Flush the loggers. 2063 2072 */ 2064 # ifdef LOG_ENABLED2073 # ifdef LOG_ENABLED 2065 2074 PRTLOGGERRC pLogger = pVM->vmm.s.pRCLoggerR3; 2066 2075 if ( pLogger 2067 2076 && pLogger->offScratch > 0) 2068 2077 RTLogFlushRC(NULL, pLogger); 2069 # endif2070 # ifdef VBOX_WITH_RC_RELEASE_LOGGING2078 # endif 2079 # ifdef VBOX_WITH_RC_RELEASE_LOGGING 2071 2080 PRTLOGGERRC pRelLogger = pVM->vmm.s.pRCRelLoggerR3; 2072 2081 if (RT_UNLIKELY(pRelLogger && pRelLogger->offScratch > 0)) 2073 2082 RTLogFlushRC(RTLogRelDefaultInstance(), pRelLogger); 2074 # endif2083 # endif 2075 2084 if (rc == VERR_TRPM_PANIC || rc == VERR_TRPM_DONT_PANIC) 2076 2085 VMMR3FatalDump(pVM, pVCpu, rc); … … 2085 2094 } 2086 2095 } 2096 #endif /* VBOX_WITH_RAW_MODE */ 2087 2097 2088 2098
Note:
See TracChangeset
for help on using the changeset viewer.