VirtualBox

Ignore:
Timestamp:
Jun 30, 2015 3:01:59 PM (10 years ago)
Author:
vboxsync
Message:

supdrvOSEnableVTx: Protect against double disable when we can (#7920).

File:
1 edited

Legend:

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

    r56576 r56702  
    971971             * Call the kernel.
    972972             */
     973            AssertLogRelMsg(!g_pVmxUseCount || *g_pVmxUseCount >= 0,
     974                            ("vmx_use_count=%d (@ %p, expected it to be a positive number\n",
     975                             *g_pVmxUseCount, g_pVmxUseCount));
     976
    973977            rc = host_vmxon(false /* exclusive */);
    974978            if (rc == VMX_OK)
     
    987991        else
    988992        {
     993            AssertLogRelMsgReturn(!g_pVmxUseCount || *g_pVmxUseCount >= 1,
     994                                  ("vmx_use_count=%d (@ %p, expected it to be a non-zero positive number\n",
     995                                   *g_pVmxUseCount, g_pVmxUseCount),
     996                                  VERR_WRONG_ORDER);
    989997            host_vmxoff();
    990998            rc = VINF_SUCCESS;
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