VirtualBox

Changeset 54581 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Mar 2, 2015 2:56:02 PM (10 years ago)
Author:
vboxsync
Message:

HostDrivers/Support: add and use supdrvOSAreCpusOfflinedOnSuspend(). FreeBSD, Darwin, Solaris need verification.

Location:
trunk/src/VBox/HostDrivers/Support
Files:
8 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/Support/SUPDrvGip.cpp

    r54579 r54581  
    876876        ASMAtomicWriteBool(&pDevExt->fInvTscRefinePowerEvent, true);
    877877        if (   RT_LIKELY(pGip)
    878             && pGip->enmUseTscDelta > SUPGIPUSETSCDELTA_ZERO_CLAIMED)
     878            && pGip->enmUseTscDelta > SUPGIPUSETSCDELTA_ZERO_CLAIMED
     879            && !supdrvOSAreCpusOfflinedOnSuspend())
    879880        {
    880881#ifdef SUPDRV_USE_TSC_DELTA_THREAD
  • trunk/src/VBox/HostDrivers/Support/SUPDrvInternal.h

    r54578 r54581  
    805805bool VBOXCALL   supdrvOSObjCanAccess(PSUPDRVOBJ pObj, PSUPDRVSESSION pSession, const char *pszObjName, int *prc);
    806806bool VBOXCALL   supdrvOSGetForcedAsyncTscMode(PSUPDRVDEVEXT pDevExt);
     807bool VBOXCALL   supdrvOSAreCpusOfflinedOnSuspend(void);
    807808bool VBOXCALL   supdrvOSAreTscDeltasInSync(void);
    808809int  VBOXCALL   supdrvOSEnableVTx(bool fEnabled);
  • trunk/src/VBox/HostDrivers/Support/darwin/SUPDrv-darwin.cpp

    r53396 r54581  
    954954
    955955
     956bool VBOXCALL supdrvOSAreCpusOfflinedOnSuspend(void)
     957{
     958    /** @todo verify this. */
     959    return false;
     960}
     961
     962
    956963bool VBOXCALL supdrvOSAreTscDeltasInSync(void)
    957964{
  • trunk/src/VBox/HostDrivers/Support/freebsd/SUPDrv-freebsd.c

    r53396 r54581  
    540540
    541541
     542bool VBOXCALL  supdrvOSAreCpusOfflinedOnSuspend(void)
     543{
     544    /** @todo verify this. */
     545    return false;
     546}
     547
     548
    542549bool VBOXCALL  supdrvOSAreTscDeltasInSync(void)
    543550{
  • trunk/src/VBox/HostDrivers/Support/linux/SUPDrv-linux.c

    r54144 r54581  
    879879
    880880
     881bool VBOXCALL supdrvOSAreCpusOfflinedOnSuspend(void)
     882{
     883    return true;
     884}
     885
     886
    881887bool VBOXCALL supdrvOSAreTscDeltasInSync(void)
    882888{
  • trunk/src/VBox/HostDrivers/Support/os2/SUPDrv-os2.cpp

    r53396 r54581  
    407407
    408408
     409bool VBOXCALL  supdrvOSAreCpusOfflinedOnSuspend(void)
     410{
     411    return false;
     412}
     413
     414
    409415bool VBOXCALL  supdrvOSAreTscDeltasInSync(void)
    410416{
  • trunk/src/VBox/HostDrivers/Support/solaris/SUPDrv-solaris.c

    r53396 r54581  
    965965
    966966
     967bool VBOXCALL  supdrvOSAreCpusOfflinedOnSuspend(void)
     968{
     969    /** @todo verify this. */
     970    return false;
     971}
     972
     973
    967974bool VBOXCALL  supdrvOSAreTscDeltasInSync(void)
    968975{
  • trunk/src/VBox/HostDrivers/Support/win/SUPDrv-win.cpp

    r54502 r54581  
    16561656
    16571657/**
     1658 * Whether the host takes CPUs offline during a suspend/resume operation.
     1659 */
     1660bool VBOXCALL  supdrvOSAreCpusOfflinedOnSuspend(void)
     1661{
     1662    return false;
     1663}
     1664
     1665
     1666/**
    16581667 * Whether the hardware TSC has been synchronized by the OS.
    16591668 */
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