VirtualBox

Ignore:
Timestamp:
Nov 26, 2021 9:53:47 PM (3 years ago)
Author:
vboxsync
Message:

SUP,IPRT,++: Adding SUPSECMAIN_FLAGS_DRIVERLESS_IEM_ALLOWED and SUPR3INIT_F_DRIVERLESS_NEM_FALLBACK to SUPLib and RTR3INIT_FLAGS_TRY_SUPLIB to RTR3Init*, the latter probably reflects the actual state there a lot better. Currently only the TRY_SUPLIB option works, the other two aren't really implemented in SUPLib yet. bugref:10138

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxHeadless/VBoxHeadless.cpp

    r92067 r92613  
    15821582int main(int argc, char **argv, char **envp)
    15831583{
    1584     // initialize VBox Runtime
    1585     int rc = RTR3InitExe(argc, &argv, RTR3INIT_FLAGS_SUPLIB);
    1586     if (RT_FAILURE(rc))
    1587     {
    1588         RTPrintf("VBoxHeadless: Runtime Error:\n"
    1589                  " %Rrc -- %Rrf\n", rc, rc);
    1590         switch (rc)
    1591         {
    1592             case VERR_VM_DRIVER_NOT_INSTALLED:
    1593                 RTPrintf("Cannot access the kernel driver. Make sure the kernel module has been \n"
    1594                         "loaded successfully. Aborting ...\n");
    1595                 break;
    1596             default:
    1597                 break;
    1598         }
    1599         return 1;
    1600     }
    1601 
    1602     return TrustedMain(argc, argv, envp);
     1584    int rc = RTR3InitExe(argc, &argv, RTR3INIT_FLAGS_TRY_SUPLIB);
     1585    if (RT_SUCCESS(rc))
     1586        return TrustedMain(argc, argv, envp);
     1587    RTPrintf("VBoxHeadless: Runtime initialization failed: %Rrc - %Rrf\n", rc, rc);
     1588    return RTEXITCODE_FAILURE;
    16031589}
    16041590#endif /* !VBOX_WITH_HARDENING */
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