VirtualBox

Changeset 93899 in vbox


Ignore:
Timestamp:
Feb 23, 2022 3:27:41 PM (3 years ago)
Author:
vboxsync
Message:

SUPLib: Turn on DRIVERLESS flag when VBOX_WITH_DRIVERLESS_FORCED is defined. bugref:9898

File:
1 edited

Legend:

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

    r93616 r93899  
    225225    Assert(!(RT_UOFFSETOF(SUPGLOBALINFOPAGE, aCPUs[0].u64TSC) & 0x7));
    226226    Assert(!(RT_UOFFSETOF(SUPGLOBALINFOPAGE, aCPUs[0].u64CpuHz) & 0x7));
     227
     228#ifdef VBOX_WITH_DRIVERLESS_FORCED
     229    fFlags |= SUPR3INIT_F_DRIVERLESS;
     230    fFlags &= ~SUPR3INIT_F_UNRESTRICTED;
     231#endif
    227232
    228233    /*
     
    413418SUPR3DECL(int) SUPR3Init(PSUPDRVSESSION *ppSession)
    414419{
     420#ifndef VBOX_WITH_DRIVERLESS_FORCED
    415421    return SUPR3InitEx(SUPR3INIT_F_UNRESTRICTED, ppSession);
     422#else
     423    return SUPR3InitEx(SUPR3INIT_F_DRIVERLESS, ppSession);
     424#endif
    416425}
    417426
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