VirtualBox

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


Ignore:
Timestamp:
Jan 20, 2010 12:53:51 PM (15 years ago)
Author:
vboxsync
Message:

More error messages in case of VT-x/AMD-V failures

File:
1 edited

Legend:

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

    r25920 r25929  
    659659        LogRel(("HWACCM: VMX MSR_IA32_FEATURE_CONTROL=%RX64\n", pVM->hwaccm.s.vmx.msr.feature_ctrl));
    660660        if (VMMIsHwVirtExtForced(pVM))
    661             return VM_SET_ERROR(pVM, VERR_VMX_NO_VMX, "VT-x is not available.");
     661        {
     662            switch (pVM->hwaccm.s.lLastError)
     663            {
     664            case VERR_VMX_NO_VMX:
     665                return VM_SET_ERROR(pVM, VERR_VMX_NO_VMX, "VT-x is not available.");
     666            case VERR_VMX_IN_VMX_ROOT_MODE:
     667                return VM_SET_ERROR(pVM, VERR_VMX_IN_VMX_ROOT_MODE, "VT-x is being used by another hypervisor.");
     668            case VERR_SVM_IN_USE:
     669                return VM_SET_ERROR(pVM, VERR_SVM_IN_USE, "AMD-V is being used by another hypervisor.");
     670            case VERR_SVM_NO_SVM:
     671                return VM_SET_ERROR(pVM, VERR_SVM_NO_SVM, "AMD-V is not available.");
     672            case VERR_SVM_DISABLED:
     673                return VM_SET_ERROR(pVM, VERR_SVM_DISABLED, "AMD-V is disabled in the BIOS.");
     674            default:
     675                return pVM->hwaccm.s.lLastError;
     676            }
     677        }
    662678        return VINF_SUCCESS;
    663679    }
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