VirtualBox

Ignore:
Timestamp:
Aug 14, 2015 8:54:37 PM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
102134
Message:

SUPDrv-darwin.cpp: A few more EFLAGS/AC saves and restores that I missed, the most relevant one in supdrvOSEnableVTx.

File:
1 edited

Legend:

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

    r57358 r57371  
    960960       )
    961961    {
     962        IPRT_DARWIN_SAVE_EFL_AC();
    962963        if (fEnable)
    963964        {
     
    984985                    }
    985986                    if (RT_FAILURE(rc))
     987                    {
     988                        IPRT_DARWIN_RESTORE_EFL_AC();
    986989                        return rc;
     990                    }
    987991                }
    988992                g_fDoneCleanup = true;
     
    10201024            LogRel(("VBoxDrv: host_vmxoff -> vmx_use_count=%d\n", *g_pVmxUseCount));
    10211025        }
     1026        IPRT_DARWIN_RESTORE_EFL_AC();
    10221027    }
    10231028    else
     
    10501055        && *g_pVmxUseCount > 0)
    10511056    {
     1057        IPRT_DARWIN_SAVE_EFL_AC();
    10521058        g_pfnVmxSuspend();
     1059        IPRT_DARWIN_RESTORE_EFL_AC();
    10531060        return true;
    10541061    }
     
    10731080    if (   fSuspended
    10741081        && g_pfnVmxResume)
     1082    {
     1083        IPRT_DARWIN_SAVE_EFL_AC();
    10751084        g_pfnVmxResume();
     1085        IPRT_DARWIN_RESTORE_EFL_AC();
     1086    }
    10761087    else
    10771088        Assert(!fSuspended);
     
    11951206
    11961207    if (idCpu == NIL_RTCPUID)
     1208    {
     1209        IPRT_DARWIN_SAVE_EFL_AC();
    11971210        supdrvDarwinMsrProberReadOnCpu(idCpu, &Args, NULL);
     1211        IPRT_DARWIN_RESTORE_EFL_AC();
     1212    }
    11981213    else
    11991214    {
     
    12391254
    12401255    if (idCpu == NIL_RTCPUID)
     1256    {
     1257        IPRT_DARWIN_SAVE_EFL_AC();
    12411258        supdrvDarwinMsrProberWriteOnCpu(idCpu, &Args, NULL);
     1259        IPRT_DARWIN_RESTORE_EFL_AC();
     1260    }
    12421261    else
    12431262    {
     
    13221341    if (idCpu == NIL_RTCPUID)
    13231342    {
     1343        IPRT_DARWIN_SAVE_EFL_AC();
    13241344        supdrvDarwinMsrProberModifyOnCpu(idCpu, pReq, NULL);
     1345        IPRT_DARWIN_RESTORE_EFL_AC();
    13251346        return VINF_SUCCESS;
    13261347    }
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