VirtualBox

Changeset 92699 in vbox for trunk/src/VBox/Frontends


Ignore:
Timestamp:
Dec 2, 2021 12:38:32 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
148598
Message:

FE/Qt: Added a --driverless option. bugref:10138

Location:
trunk/src/VBox/Frontends/VirtualBox/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VirtualBox/src/globals/UICommon.cpp

    r92588 r92699  
    518518            m_fDisablePatm = m_fDisableCsam = m_fExecuteAllInIem = true;
    519519        }
     520        else if (!::strcmp(arg, "--driverless"))
     521            enmOptType = OptType_VMRunner;
    520522        else if (!::strcmp(arg, "--warp-pct"))
    521523        {
  • trunk/src/VBox/Frontends/VirtualBox/src/hardenedmain.cpp

    r92613 r92699  
    5151     * Note! ASSUMES that argv is in an ASCII compatible codeset.
    5252     */
    53     unsigned cOptionsLeft     = 3;
     53    unsigned cOptionsLeft     = 4;
    5454    bool     fStartVM         = false;
    5555    bool     fSeparateProcess = false;
    5656    bool     fExecuteAllInIem = false;
     57    bool     fDriverless      = false;
    5758    for (int i = 1; i < argc && cOptionsLeft > 0; ++i)
    5859    {
     
    7475            cOptionsLeft -= fExecuteAllInIem == false;
    7576            fExecuteAllInIem = true;
     77        }
     78        else if (!MyStrCmp(argv[i], "--driverless"))
     79        {
     80            cOptionsLeft -= fDriverless == false;
     81            fDriverless = true;
    7682        }
    7783    }
     
    95101            fFlags |= SUPSECMAIN_FLAGS_DRIVERLESS_NEM_FALLBACK;
    96102#endif
     103        if (fDriverless)
     104            fFlags |= SUPSECMAIN_FLAGS_DRIVERLESS;
    97105    }
    98106
  • trunk/src/VBox/Frontends/VirtualBox/src/main.cpp

    r92613 r92699  
    286286        "                             code patching and scanning\n"
    287287        "  --execute-all-in-iem       For debugging the interpreted execution mode.\n"
     288        "  --driverless               Do not open the support driver (NEM or IEM mode).\n"
    288289        "  --warp-pct <pct>           time warp factor, 100%% (= 1.0) = normal speed\n"
    289290        "  (*) For AMD-V/VT-x setups the effect is --recompile-all.\n"
     
    660661    uint32_t fFlags = 0;
    661662# ifdef VBOX_RUNTIME_UI
    662     unsigned cOptionsLeft     = 3;
     663    unsigned cOptionsLeft     = 4;
    663664    bool     fStartVM         = false;
    664665    bool     fSeparateProcess = false;
    665666    bool     fExecuteAllInIem = false;
     667    bool     fDriverless      = false;
    666668    for (int i = 1; i < argc && cOptionsLeft > 0; ++i)
    667669    {
     
    683685            cOptionsLeft -= fExecuteAllInIem == false;
    684686            fExecuteAllInIem = true;
     687        }
     688        else if (!strcmp(argv[i], "--driverless"))
     689        {
     690            cOptionsLeft -= fDriverless == false;
     691            fDriverless = true;
    685692        }
    686693    }
     
    690697        if (fExecuteAllInIem)
    691698            fFlags |= SUPR3INIT_F_DRIVERLESS_IEM_ALLOWED << RTR3INIT_FLAGS_SUPLIB_SHIFT;
     699        if (fDriverless)
     700            fFlags |= SUPR3INIT_F_DRIVERLESS << RTR3INIT_FLAGS_SUPLIB_SHIFT;
    692701    }
    693702# endif
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette