VirtualBox

Changeset 45474 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Apr 10, 2013 8:25:33 PM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
84919
Message:

VMM: Remove unused error codes, use more specific error codes. Restore CR4 on VMXON failures in the new VT-x code.

Location:
trunk/include/VBox
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/err.h

    r45434 r45474  
    18581858/** Invalid VMXON pointer. */
    18591859#define VERR_VMX_INVALID_VMXON_PTR                  (-4002)
    1860 /** Generic VMX failure. */
    1861 #define VERR_VMX_GENERIC                            (-4003)
    18621860/** Invalid CPU mode for VMX execution. */
    18631861#define VERR_VMX_UNSUPPORTED_MODE                   (-4004)
    18641862/** Unable to start VM execution. */
    18651863#define VERR_VMX_UNABLE_TO_START_VM                 (-4005)
    1866 /** Unable to resume VM execution. */
    1867 #define VERR_VMX_UNABLE_TO_RESUME_VM                (-4006)
    18681864/** Unable to switch due to invalid host state. */
    18691865#define VERR_VMX_INVALID_HOST_STATE                 (-4007)
     
    18941890/** Resume guest execution after injecting a double-fault. */
    18951891#define VINF_VMX_DOUBLE_FAULT                       4020
     1892/** VMPTRLD failed; possibly because of invalid VMCS launch-state. */
     1893#define VERR_VMX_VMPTRLD_FAILED                     (-4021)
    18961894/** @} */
    18971895
  • trunk/include/VBox/err.mac

    r43387 r45474  
    682682%define VERR_VMX_INVALID_VMCS_PTR    (-4001)
    683683%define VERR_VMX_INVALID_VMXON_PTR    (-4002)
    684 %define VERR_VMX_GENERIC    (-4003)
    685684%define VERR_VMX_UNSUPPORTED_MODE    (-4004)
    686685%define VERR_VMX_UNABLE_TO_START_VM    (-4005)
     
    698697%define VERR_VMX_UNEXPECTED_INTERRUPTION_EXIT_CODE    (-4017)
    699698%define VERR_VMX_NOT_IN_VMX_ROOT_MODE    (-4018)
     699%define VERR_VMX_UNDEFINED_EXIT_CODE     (-4019)
     700%define VINF_VMX_DOUBLE_FAULT              4020
     701%define VERR_VMX_VMPTRLD_FAILED          (-4021)
    700702%define VERR_SVM_UNABLE_TO_START_VM    (-4050)
    701703%define VERR_SVM_ILLEGAL_EFER_MSR    (-4051)
  • trunk/include/VBox/vmm/hm_vmx.h

    r45411 r45474  
    14731473       "jmp      2f                                             \n\t"
    14741474       "1:                                                      \n\t"
    1475        "movl     $"STR(VERR_VMX_GENERIC)", %0                   \n\t"
     1475       "movl     $"STR(VERR_VMX_VMXON_FAILED)", %0              \n\t"
    14761476       "2:                                                      \n\t"
    14771477       "add      $8, %%esp                                      \n\t"
     
    14981498vmxon_good:
    14991499        jnz     the_end
    1500         mov     dword ptr [rc], VERR_VMX_GENERIC
     1500        mov     dword ptr [rc], VERR_VMX_VMXON_FAILED
    15011501the_end:
    15021502        add     esp, 8
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