VirtualBox

Changeset 4078 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Aug 7, 2007 5:23:03 PM (17 years ago)
Author:
vboxsync
Message:

Handle the VMX in root mode error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VM.cpp

    r4074 r4078  
    247247                    else
    248248                        AssertMsgFailed(("VMR3ReqCall failed rc=%Vrc\n", rc));
     249
     250                    const char *pszError;
     251                    /*
     252                     * An error occurred at support library initialization time (before the
     253                     * VM could be created). Set the error message directly using the
     254                     * initial callback, as the callback list doesn't exist yet.
     255                     */
     256                    switch (rc)
     257                    {
     258                    case VERR_VMX_IN_VMX_ROOT_MODE:
     259#ifdef __LINUX
     260                        pszError = N_("VirtualBox can't operate in VMX root mode. "
     261                                      "Please disable the KVM kernel extension, recompile "
     262                                      "your kernel and reboot. ");
     263#else
     264                        pszError = N_("VirtualBox can't operate in VMX root mode.");
     265#endif
     266                        break;
     267                    default:
     268                        pszError = N_("Unknown error creating VM (%Vrc)");
     269                        AssertMsgFailed(("Add error message for rc=%d (%Vrc)\n", rc, rc));
     270                    }
     271                    vmR3CallVMAtError(pfnVMAtError, pvUserVM, rc, RT_SRC_POS, pszError, rc);
    249272
    250273                    /* Forcefully terminate the emulation thread. */
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