Changeset 51804 in vbox for trunk/src/VBox/Main
- Timestamp:
- Jul 2, 2014 10:28:42 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp
r51797 r51804 1002 1002 } 1003 1003 1004 #if 01005 /* Expose extended MWAIT features to Mac OS X guests. */1006 if (fOsXGuest)1007 {1008 LogRel(("Using MWAIT extensions\n"));1009 InsertConfigInteger(pCPUM, "MWaitExtensions", true);1010 }1011 1012 if (fOsXGuest)1013 {1014 InsertConfigInteger(pCPUM, "EnableHVP", 1);1015 1016 /* Fake the CPU family/model so the guest works. This is partly1017 because older mac releases really doesn't work on newer cpus,1018 and partly because mac os x expects more from systems with newer1019 cpus (MSRs, power features, whatever). */1020 uint32_t uMaxIntelFamilyModelStep = UINT32_MAX;1021 if ( osTypeId == "MacOS"1022 || osTypeId == "MacOS_64")1023 uMaxIntelFamilyModelStep = RT_MAKE_U32_FROM_U8(1, 23, 6, 7); /* Penryn / X5482. */1024 else if ( osTypeId == "MacOS106"1025 || osTypeId == "MacOS106_64")1026 uMaxIntelFamilyModelStep = RT_MAKE_U32_FROM_U8(1, 23, 6, 7); /* Penryn / X5482 */1027 else if ( osTypeId == "MacOS107"1028 || osTypeId == "MacOS107_64")1029 uMaxIntelFamilyModelStep = RT_MAKE_U32_FROM_U8(1, 23, 6, 7); /* Penryn / X5482 */ /** @todo figure out1030 what is required here. */1031 else if ( osTypeId == "MacOS108"1032 || osTypeId == "MacOS108_64")1033 uMaxIntelFamilyModelStep = RT_MAKE_U32_FROM_U8(1, 23, 6, 7); /* Penryn / X5482 */ /** @todo figure out1034 what is required here. */1035 else if ( osTypeId == "MacOS109"1036 || osTypeId == "MacOS109_64")1037 uMaxIntelFamilyModelStep = RT_MAKE_U32_FROM_U8(1, 23, 6, 7); /* Penryn / X5482 */ /** @todo figure1038 out what is required here. */1039 if (uMaxIntelFamilyModelStep != UINT32_MAX)1040 InsertConfigInteger(pCPUM, "MaxIntelFamilyModelStep", uMaxIntelFamilyModelStep);1041 }1042 #endif1043 1044 1004 /* Synthetic CPU */ 1045 1005 BOOL fSyntheticCpu = false; … … 1203 1163 break; 1204 1164 1205 case ParavirtProvider_Default: /** @todo Choose a provider based on guest OS type. There is no "Default" provider. */ 1206 pcszParavirtProvider = "None"; 1207 fGimDeviceNeeded = false; 1165 case ParavirtProvider_Default: 1166 { 1167 if (fOsXGuest) 1168 { 1169 pcszParavirtProvider = "Minimal"; 1170 fGimDeviceNeeded = false; 1171 } 1172 else 1173 { 1174 /** @todo Choose a provider based on guest OS type. There is no "Default" provider. */ 1175 pcszParavirtProvider = "None"; 1176 fGimDeviceNeeded = false; 1177 } 1208 1178 break; 1179 } 1209 1180 1210 1181 case ParavirtProvider_Legacy: … … 1213 1184 pcszParavirtProvider = "Minimal"; 1214 1185 else 1215 {1216 1186 pcszParavirtProvider = "None"; 1217 fGimDeviceNeeded = false; 1218 } 1187 fGimDeviceNeeded = false; 1219 1188 break; 1220 1189 }
Note:
See TracChangeset
for help on using the changeset viewer.