VirtualBox

Changeset 51804 in vbox for trunk/src/VBox/Main


Ignore:
Timestamp:
Jul 2, 2014 10:28:42 AM (11 years ago)
Author:
vboxsync
Message:

Main/src-client: Fix GIM provider for default/legacy OS X VMs.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r51797 r51804  
    10021002        }
    10031003
    1004 #if 0
    1005         /* 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 partly
    1017                because older mac releases really doesn't work on newer cpus,
    1018                and partly because mac os x expects more from systems with newer
    1019                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 out
    1030                                                                                 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 out
    1034                                                                                 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 figure
    1038                                                                                 out what is required here. */
    1039             if (uMaxIntelFamilyModelStep != UINT32_MAX)
    1040                 InsertConfigInteger(pCPUM, "MaxIntelFamilyModelStep", uMaxIntelFamilyModelStep);
    1041         }
    1042 #endif
    1043 
    10441004        /* Synthetic CPU */
    10451005        BOOL fSyntheticCpu = false;
     
    12031163                break;
    12041164
    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                }
    12081178                break;
     1179            }
    12091180
    12101181            case ParavirtProvider_Legacy:
     
    12131184                    pcszParavirtProvider = "Minimal";
    12141185                else
    1215                 {
    12161186                    pcszParavirtProvider = "None";
    1217                     fGimDeviceNeeded = false;
    1218                 }
     1187                fGimDeviceNeeded = false;
    12191188                break;
    12201189            }
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette