VirtualBox

Changeset 52004 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Jul 12, 2014 7:37:31 AM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
94938
Message:

Main/src-client: Fix passing the right OS-type for minimal provider as OS X
is always special and in the future we may need to do guest-specific hacks.

File:
1 edited

Legend:

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

    r51899 r52004  
    6767#include <VBox/vmm/pdmapi.h> /* For PDMR3DriverAttach/PDMR3DriverDetach. */
    6868#include <VBox/vmm/pdmusb.h> /* For PDMR3UsbCreateEmulatedDevice. */
     69#include <VBox/vmm/gim.h>    /* For GIMOSID. */
    6970#include <VBox/version.h>
    7071#include <VBox/HostServices/VBoxClipboardSvc.h>
     
    11701171                    fGimDeviceNeeded = false;
    11711172                }
     1173#if 0           /* Activate this soon. */
     1174                else if (  osTypeId == "Windows7"
     1175                        || osTypeId == "Windows7_64"
     1176                        || osTypeId == "Windows8"
     1177                        || osTypeId == "Windows8_64"
     1178                        || osTypeId == "Windows81"
     1179                        || osTypeId == "Windows81_64")
     1180                {
     1181                    pcszParavirtProvider = "HyperV";
     1182                }
     1183#endif
    11721184                else
    11731185                {
    1174                     /** @todo Choose a provider based on guest OS type. There is no "Default" provider. */
    11751186                    pcszParavirtProvider = "None";
    11761187                    fGimDeviceNeeded = false;
     
    12031214        }
    12041215        InsertConfigString(pParavirtNode, "Provider", pcszParavirtProvider);
     1216
     1217        if (   !RTStrCmp(pcszParavirtProvider, "Minimal")
     1218            && fOsXGuest)
     1219        {
     1220            GIMOSID enmOsId = GIMOSID_OSX;
     1221            if (osTypeId == "MacOS_64")
     1222                enmOsId = GIMOSID_OSX_64;
     1223            else if (osTypeId == "MacOS106")
     1224                enmOsId = GIMOSID_OSX_106;
     1225            else if (osTypeId == "MacOS106_64")
     1226                enmOsId = GIMOSID_OSX_106_64;
     1227            else if (osTypeId == "MacOS107")
     1228                enmOsId = GIMOSID_OSX_107;
     1229            else if (osTypeId == "MacOS107_64")
     1230                enmOsId = GIMOSID_OSX_107_64;
     1231            else if (osTypeId == "MacOS108")
     1232                enmOsId = GIMOSID_OSX_108;
     1233            else if (osTypeId == "MacOS108_64")
     1234                enmOsId = GIMOSID_OSX_108_64;
     1235
     1236            InsertConfigInteger(pParavirtNode, "GuestOsId", enmOsId);
     1237        }
     1238
    12051239
    12061240        /*
Note: See TracChangeset for help on using the changeset viewer.

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