VirtualBox

Changeset 98644 in vbox for trunk/src/VBox/HostDrivers


Ignore:
Timestamp:
Feb 20, 2023 12:05:56 PM (2 years ago)
Author:
vboxsync
Message:

VMM,SUPLib: Adjustments for running tstPDMQueue in driverless mode on hardened windows builds. This adds a fFlags parameter to VMR3Create and defines VMCREATE_F_DRIVERLESS, allowing it to switch between default and driverless suplib initialization. The default CFGM config constructor was amended to enable the IEM fallback option by default (only relevant to amd64/x86).

File:
1 edited

Legend:

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

    r98103 r98644  
    151151#endif
    152152    }
     153
     154#if !defined(IN_SUP_HARDENED_R3)
     155    /*
     156     * Driverless?
     157     */
     158    if (fFlags & SUPR3INIT_F_DRIVERLESS)
     159    {
     160        pThis->fDriverless = true;
     161        return VINF_SUCCESS;
     162    }
     163#endif
    153164
    154165    /*
     
    274285                pErrInfo->pszMsg[0] = '\0';
    275286        }
     287
     288        /*
     289         * Do fallback.
     290         */
     291        if (   (fFlags & SUPR3INIT_F_DRIVERLESS_MASK)
     292            && rcNt != -1 /** @todo */ )
     293        {
     294            LogRel(("Failed to open '%.*ls' rc=%Rrc rcNt=%#x - Switching to driverless mode.\n",
     295                    NtName.Length / sizeof(WCHAR), NtName.Buffer, rc, rcNt));
     296            pThis->fDriverless = true;
     297            return VINF_SUCCESS;
     298        }
     299
    276300#else
    277301        RT_NOREF1(penmWhat);
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