VirtualBox

Ignore:
Timestamp:
Jun 11, 2015 7:01:17 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
100968
Message:

SUPDrv-darwin.cpp: Only get difficult regarding vmx_resume, vmx_suspend and vmx_use_count when raw-mode is included in the VBox build.

File:
1 edited

Legend:

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

    r56357 r56375  
    363363    {
    364364        /*
    365          * The VMX stuff - required (for raw-mode).
     365         * The VMX stuff - required with raw-mode (in theory for 64-bit on
     366         * 32-bit too, but we never did that on darwin).
    366367         */
    367368        int rc1 = RTR0DbgKrnlInfoQuerySymbol(hKrnlInfo, NULL, "vmx_resume", (void **)&g_pfnVmxResume);
     
    379380            g_pfnVmxSuspend = NULL;
    380381            g_pVmxUseCount  = NULL;
     382#ifdef VBOX_WITH_RAW_MODE
    381383            rc = VERR_SYMBOL_NOT_FOUND;
     384#endif
    382385        }
    383386
     
    907910    int rc;
    908911    if (   version_major >= 10 /* 10 = 10.6.x = Snow Leopard */
     912# ifdef VBOX_WITH_RAW_MODE
    909913        && g_pfnVmxSuspend
    910914        && g_pfnVmxResume
    911         && g_pVmxUseCount)
     915        && g_pVmxUseCount
     916# endif
     917       )
    912918    {
    913919        if (fEnable)
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