VirtualBox

Changeset 14914 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Dec 2, 2008 3:33:26 PM (16 years ago)
Author:
vboxsync
Message:

SUPDrv-darwin.c: disabled host_vmxon/off as it doesn't work with VBoxNetFlt dependency. :/

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/darwin/SUPDrv-darwin.cpp

    r14905 r14914  
    665665 * host_vmxon & host_vmxoff in Tiger.
    666666 */
    667 static int g_fWeakHostVmxOnOff = false;
    668 
     667#if 0
    669668__BEGIN_DECLS
     669#if 1
     670#pragma weak host_vmxon
     671int host_vmxon(int exclusive) __attribute__((weak_import));
     672#pragma weak host_vmxoff
     673void host_vmxoff(void) __attribute__((weak_import));
     674#else
    670675int host_vmxon(int exclusive) __attribute__((weak));
    671676void host_vmxoff(void) __attribute__((weak));
     677#endif
    672678__END_DECLS
    673679
     680static int g_fWeakHostVmxOnOff = false;
     681#if 0
    674682/* weak version for Tiger. */
    675683int host_vmxon(int exclusive)
     
    685693    g_fWeakHostVmxOnOff = true;
    686694}
     695#endif
     696#endif
    687697
    688698
     
    695705int VBOXCALL supdrvOSEnableVTx(bool fEnable)
    696706{
     707#if 0
     708    if (host_vmxon == NULL || host_vmxoff == NULL)
     709        g_fWeakHostVmxOnOff = true;
    697710    if (g_fWeakHostVmxOnOff)
    698711        return VERR_NOT_SUPPORTED;
     
    724737    }
    725738    return rc;
     739#else
     740    return VERR_NOT_SUPPORTED;
     741#endif
    726742}
    727743
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