VirtualBox

Changeset 57052 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Jul 22, 2015 10:05:57 AM (9 years ago)
Author:
vboxsync
Message:

VMM/HM: consistency in error reporting.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/HM.cpp

    r57051 r57052  
    539539            {
    540540                case VERR_UNSUPPORTED_CPU:
    541                     pszMsg = "Unknown CPU, VT-x or AMD-v features cannot be ascertained.";
     541                    pszMsg = "Unknown CPU, VT-x or AMD-v features cannot be ascertained";
    542542                    break;
    543543
    544544                case VERR_VMX_NO_VMX:
    545                     pszMsg = "VT-x is not available.";
     545                    pszMsg = "VT-x is not available";
    546546                    break;
    547547
    548548                case VERR_VMX_MSR_VMX_DISABLED:
    549                     pszMsg = "VT-x is disabled in the BIOS.";
     549                    pszMsg = "VT-x is disabled in the BIOS";
    550550                    break;
    551551
    552552                case VERR_VMX_MSR_ALL_VMX_DISABLED:
    553                     pszMsg = "VT-x is disabled in the BIOS for all CPU modes.";
     553                    pszMsg = "VT-x is disabled in the BIOS for both all CPU modes";
    554554                    break;
    555555
    556556                case VERR_VMX_MSR_LOCKING_FAILED:
    557                     pszMsg = "Failed to enable and lock VT-x features.";
     557                    pszMsg = "Failed to enable and lock VT-x features";
    558558                    break;
    559559
    560560                case VERR_SVM_NO_SVM:
    561                     pszMsg = "AMD-V is not available.";
     561                    pszMsg = "AMD-V is not available";
    562562                    break;
    563563
    564564                case VERR_SVM_DISABLED:
    565                     pszMsg = "AMD-V is disabled in the BIOS (or by the host OS).";
     565                    pszMsg = "AMD-V is disabled in the BIOS (or by the host OS)";
    566566                    break;
    567567
     
    955955        {
    956956            case VERR_VMX_IN_VMX_ROOT_MODE:
    957                 return VM_SET_ERROR(pVM, VERR_VMX_IN_VMX_ROOT_MODE, "VT-x is being used by another hypervisor.");
     957                return VM_SET_ERROR(pVM, VERR_VMX_IN_VMX_ROOT_MODE, "VT-x is being used by another hypervisor");
    958958            case VERR_VMX_NO_VMX:
    959                 return VM_SET_ERROR(pVM, VERR_VMX_NO_VMX, "VT-x is not available.");
     959                return VM_SET_ERROR(pVM, VERR_VMX_NO_VMX, "VT-x is not available");
    960960            case VERR_VMX_MSR_VMX_DISABLED:
    961                 return VM_SET_ERROR(pVM, VERR_VMX_MSR_VMX_DISABLED, "VT-x is disabled in the BIOS.");
     961                return VM_SET_ERROR(pVM, VERR_VMX_MSR_VMX_DISABLED, "VT-x is disabled in the BIOS");
    962962            case VERR_VMX_MSR_ALL_VMX_DISABLED:
    963                 return VM_SET_ERROR(pVM, VERR_VMX_MSR_ALL_VMX_DISABLED, "VT-x is disabled in the BIOS for all CPU modes.");
     963                return VM_SET_ERROR(pVM, VERR_VMX_MSR_ALL_VMX_DISABLED, "VT-x is disabled in the BIOS for all CPU modes");
    964964            case VERR_VMX_MSR_LOCKING_FAILED:
    965                 return VM_SET_ERROR(pVM, VERR_VMX_MSR_LOCKING_FAILED, "Failed to lock VT-x features while trying to enable VT-x.");
     965                return VM_SET_ERROR(pVM, VERR_VMX_MSR_LOCKING_FAILED, "Failed to lock VT-x features while trying to enable VT-x");
    966966            case VERR_VMX_MSR_VMX_ENABLE_FAILED:
    967                 return VM_SET_ERROR(pVM, VERR_VMX_MSR_VMX_ENABLE_FAILED, "Failed to enable VT-x features.");
     967                return VM_SET_ERROR(pVM, VERR_VMX_MSR_VMX_ENABLE_FAILED, "Failed to enable VT-x features");
    968968            case VERR_VMX_MSR_SMX_VMX_ENABLE_FAILED:
    969                 return VM_SET_ERROR(pVM, VERR_VMX_MSR_SMX_VMX_ENABLE_FAILED, "Failed to enable VT-x features in SMX mode.");
     969                return VM_SET_ERROR(pVM, VERR_VMX_MSR_SMX_VMX_ENABLE_FAILED, "Failed to enable VT-x features in SMX mode");
    970970
    971971            case VERR_SVM_IN_USE:
    972                 return VM_SET_ERROR(pVM, VERR_SVM_IN_USE, "AMD-V is being used by another hypervisor.");
     972                return VM_SET_ERROR(pVM, VERR_SVM_IN_USE, "AMD-V is being used by another hypervisor");
    973973            case VERR_SVM_NO_SVM:
    974                 return VM_SET_ERROR(pVM, VERR_SVM_NO_SVM, "AMD-V is not available.");
     974                return VM_SET_ERROR(pVM, VERR_SVM_NO_SVM, "AMD-V is not available");
    975975            case VERR_SVM_DISABLED:
    976                 return VM_SET_ERROR(pVM, VERR_SVM_DISABLED, "AMD-V is disabled in the BIOS.");
     976                return VM_SET_ERROR(pVM, VERR_SVM_DISABLED, "AMD-V is disabled in the BIOS");
    977977        }
    978978        return VMSetError(pVM, pVM->hm.s.lLastError, RT_SRC_POS, "HM ring-0 init failed: %Rrc", pVM->hm.s.lLastError);
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