Changeset 55070 in vbox for trunk/src/VBox/Main/src-client
- Timestamp:
- Apr 1, 2015 11:26:22 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r55068 r55070 1187 1187 * Currently only enabled for HM VMs as raw-mode GIM still needs work. 1188 1188 */ 1189 if (!fHMEnabled) 1190 paravirtProvider = ParavirtProvider_None; 1189 1191 PCFGMNODE pParavirtNode; 1190 1192 InsertConfigNode(pRoot, "GIM", &pParavirtNode); 1191 1193 const char *pcszParavirtProvider; 1192 1194 bool fGimDeviceNeeded = true; 1193 if (fHMEnabled) 1194 { 1195 switch (paravirtProvider) 1196 { 1197 case ParavirtProvider_None: 1198 pcszParavirtProvider = "None"; 1199 fGimDeviceNeeded = false; 1200 break; 1201 1202 case ParavirtProvider_Minimal: 1203 pcszParavirtProvider = "Minimal"; 1204 break; 1205 1206 case ParavirtProvider_HyperV: 1207 pcszParavirtProvider = "HyperV"; 1208 break; 1209 1210 case ParavirtProvider_KVM: 1211 pcszParavirtProvider = "KVM"; 1212 break; 1213 1214 default: 1215 AssertMsgFailed(("Invalid paravirtProvider=%d\n", paravirtProvider)); 1216 return VMR3SetError(pUVM, VERR_INVALID_PARAMETER, RT_SRC_POS, N_("Invalid paravirt. provider '%d'"), 1217 paravirtProvider); 1218 } 1219 InsertConfigString(pParavirtNode, "Provider", pcszParavirtProvider); 1220 } 1221 else 1222 InsertConfigString(pParavirtNode, "Provider", "None"); 1195 switch (paravirtProvider) 1196 { 1197 case ParavirtProvider_None: 1198 pcszParavirtProvider = "None"; 1199 fGimDeviceNeeded = false; 1200 break; 1201 1202 case ParavirtProvider_Minimal: 1203 pcszParavirtProvider = "Minimal"; 1204 break; 1205 1206 case ParavirtProvider_HyperV: 1207 pcszParavirtProvider = "HyperV"; 1208 break; 1209 1210 case ParavirtProvider_KVM: 1211 pcszParavirtProvider = "KVM"; 1212 break; 1213 1214 default: 1215 AssertMsgFailed(("Invalid paravirtProvider=%d\n", paravirtProvider)); 1216 return VMR3SetError(pUVM, VERR_INVALID_PARAMETER, RT_SRC_POS, N_("Invalid paravirt. provider '%d'"), 1217 paravirtProvider); 1218 } 1219 InsertConfigString(pParavirtNode, "Provider", pcszParavirtProvider); 1223 1220 1224 1221 /*
Note:
See TracChangeset
for help on using the changeset viewer.