VirtualBox

Changeset 48006 in vbox for trunk/src/VBox/VMM/VMMR0


Ignore:
Timestamp:
Aug 22, 2013 7:41:15 PM (11 years ago)
Author:
vboxsync
Message:

VMMR0ThreadCtxHooksCreate: Disabled the preemption hooks on solaris for the moment as the driver seems unwilling to unload after they were enabled.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/VMMR0.cpp

    r48003 r48006  
    441441    VMCPU_ASSERT_EMT(pVCpu);
    442442    Assert(pVCpu->vmm.s.hR0ThreadCtx == NIL_RTTHREADCTX);
     443#if defined(RT_OS_LINUX) /*|| defined(RT_OS_SOLARIS) - leaves the driver loaded, reenable when fixed. */
    443444    int rc = RTThreadCtxHooksCreate(&pVCpu->vmm.s.hR0ThreadCtx);
    444     if (   RT_SUCCESS(rc)
    445         || rc == VERR_NOT_SUPPORTED)
    446     {
    447         return VINF_SUCCESS;
    448     }
    449 
    450     Log(("RTThreadCtxHooksCreate failed! rc=%Rrc pVCpu=%p idCpu=%RU32\n", rc, pVCpu, pVCpu->idCpu));
    451     return rc;
     445    if (   RT_FAILURE(rc)
     446        && rc != VERR_NOT_SUPPORTED)
     447    {
     448        Log(("RTThreadCtxHooksCreate failed! rc=%Rrc pVCpu=%p idCpu=%RU32\n", rc, pVCpu, pVCpu->idCpu));
     449        return rc;
     450    }
     451#endif
     452
     453    return VINF_SUCCESS;
    452454}
    453455
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