VirtualBox

Changeset 47442 in vbox for trunk


Ignore:
Timestamp:
Jul 28, 2013 4:28:28 PM (11 years ago)
Author:
vboxsync
Message:

Adjusted some HMVMX status codes so that VERR_VMX_INVALID_VMCS_PTR and VERR_VMX_INVALID_VMCS_FIELD can be ORed together with (according to my calculator) with VERR_VMX_INVALID_VMCS_PTR as the result.

Location:
trunk/include
Files:
4 edited

Legend:

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

    r47072 r47442  
    18711871 * @{
    18721872 */
     1873/** VMXON failed; possibly because it was already run before. */
     1874#define VERR_VMX_VMXON_FAILED                       (-4000)
     1875/** Invalid VMCS pointer.
     1876 * (Can be OR'ed with VERR_VMX_INVALID_VMCS_FIELD.) */
     1877#define VERR_VMX_INVALID_VMCS_PTR                   (-4001)
    18731878/** Invalid VMCS index or write to read-only element. */
    1874 #define VERR_VMX_INVALID_VMCS_FIELD                 (-4000)
    1875 /** Invalid VMCS pointer. */
    1876 #define VERR_VMX_INVALID_VMCS_PTR                   (-4001)
     1879#define VERR_VMX_INVALID_VMCS_FIELD                 (-4002)
     1880/** Reserved for future status code that we wish to OR with
     1881 *  VERR_VMX_INVALID_VMCS_PTR and VERR_VMX_INVALID_VMCS_FIELD. */
     1882#define VERR_VMX_RESERVED                           (-4003)
    18771883/** Invalid VMXON pointer. */
    1878 #define VERR_VMX_INVALID_VMXON_PTR                  (-4002)
    1879 /** Invalid CPU mode for VMX execution. */
    1880 #define VERR_VMX_UNSUPPORTED_MODE                   (-4004)
     1884#define VERR_VMX_INVALID_VMXON_PTR                  (-4004)
    18811885/** Unable to start VM execution. */
    18821886#define VERR_VMX_UNABLE_TO_START_VM                 (-4005)
    18831887/** Unable to switch due to invalid host state. */
    1884 #define VERR_VMX_INVALID_HOST_STATE                 (-4007)
     1888#define VERR_VMX_INVALID_HOST_STATE                 (-4006)
    18851889/** IA32_FEATURE_CONTROL MSR not setup correcty (turn on VMX in the host system BIOS) */
    1886 #define VERR_VMX_ILLEGAL_FEATURE_CONTROL_MSR        (-4008)
     1890#define VERR_VMX_ILLEGAL_FEATURE_CONTROL_MSR        (-4007)
     1891/** Invalid CPU mode for VMX execution. */
     1892#define VERR_VMX_UNSUPPORTED_MODE                   (-4008)
    18871893/** VMX CPU extension not available */
    18881894#define VERR_VMX_NO_VMX                             (-4009)
    1889 /** VMXON failed; possibly because it was already run before */
    1890 #define VERR_VMX_VMXON_FAILED                       (-4010)
    18911895/** CPU was incorrectly left in VMX root mode; incompatible with VirtualBox */
    18921896#define VERR_VMX_IN_VMX_ROOT_MODE                   (-4011)
  • trunk/include/VBox/err.mac

    r47267 r47442  
    688688%define VINF_GVM_NOT_BUSY_IN_GC    3902
    689689%define VINF_GVM_YIELDED    3903
    690 %define VERR_VMX_INVALID_VMCS_FIELD    (-4000)
     690%define VERR_VMX_VMXON_FAILED    (-4000)
    691691%define VERR_VMX_INVALID_VMCS_PTR    (-4001)
    692 %define VERR_VMX_INVALID_VMXON_PTR    (-4002)
    693 %define VERR_VMX_UNSUPPORTED_MODE    (-4004)
     692%define VERR_VMX_INVALID_VMCS_FIELD    (-4002)
     693%define VERR_VMX_RESERVED    (-4003)
     694%define VERR_VMX_INVALID_VMXON_PTR    (-4004)
    694695%define VERR_VMX_UNABLE_TO_START_VM    (-4005)
    695 %define VERR_VMX_INVALID_HOST_STATE    (-4007)
    696 %define VERR_VMX_ILLEGAL_FEATURE_CONTROL_MSR    (-4008)
     696%define VERR_VMX_INVALID_HOST_STATE    (-4006)
     697%define VERR_VMX_ILLEGAL_FEATURE_CONTROL_MSR    (-4007)
     698%define VERR_VMX_UNSUPPORTED_MODE    (-4008)
    697699%define VERR_VMX_NO_VMX    (-4009)
    698 %define VERR_VMX_VMXON_FAILED    (-4010)
    699700%define VERR_VMX_IN_VMX_ROOT_MODE    (-4011)
    700701%define VERR_VMX_X86_CR4_VMXE_CLEARED    (-4012)
  • trunk/include/VBox/various.sed

    r30969 r47442  
    33/ASM-INC/basm-inc
    44/ASM-NOINC/basm-noinc
     5
     6# Newline escapes.
     7:check-newline-escape
     8/\\$/!bno-more-newline-escapes
     9N
     10b check-newline-escape
     11:no-more-newline-escapes
    512
    613# Strip comments and trailing space.
  • trunk/include/iprt/x86.mac

    r47305 r47442  
    3232%define X86_EFL_IOPL_SHIFT  12
    3333%define X86_EFL_GET_IOPL(efl)   (((efl) >> X86_EFL_IOPL_SHIFT) & 3)
    34 %define X86_EFL_POPF_BITS       (X86_EFL_CF | X86_EFL_PF | X86_EFL_AF | X86_EFL_ZF | X86_EFL_SF | X86_EFL_TF | X86_EFL_IF | X86_EFL_DF | X86_EFL_OF | X86_EFL_IOPL | X86_EFL_NT | X86_EFL_AC | X86_EFL_ID)
     34%define X86_EFL_POPF_BITS       (  X86_EFL_CF | X86_EFL_PF | X86_EFL_AF | X86_EFL_ZF | X86_EFL_SF | X86_EFL_TF | X86_EFL_IF \
     35                                 | X86_EFL_DF | X86_EFL_OF | X86_EFL_IOPL | X86_EFL_NT | X86_EFL_AC | X86_EFL_ID )
    3536%ifndef VBOX_FOR_DTRACE_LIB
    3637%else
     
    204205%define X86_DR6_B2                          RT_BIT(2)
    205206%define X86_DR6_B3                          RT_BIT(3)
     207%define X86_DR6_B_MASK                      0x0000000f
    206208%define X86_DR6_BD                          RT_BIT(13)
    207209%define X86_DR6_BS                          RT_BIT(14)
    208210%define X86_DR6_BT                          RT_BIT(15)
    209211%define X86_DR6_INIT_VAL                    0xFFFF0FF0
     212%define X86_DR6_RA1_MASK                    0xffff0ff0
     213%define X86_DR6_RAZ_MASK                    RT_BIT_64(12)
     214%define X86_DR6_MBZ_MASK                    0xffffffff00000000
     215%define X86_DR6_B(iBp)                      RT_BIT_64(iBp)
    210216%define X86_DR7_L0                          RT_BIT(0)
    211217%define X86_DR7_G0                          RT_BIT(1)
     
    227233%define X86_DR7_RW3_MASK                    (3 << 28)
    228234%define X86_DR7_LEN3_MASK                   (3 << 30)
    229 %define X86_DR7_MB1_MASK                    (RT_BIT(10))
     235%define X86_DR7_RA1_MASK                    (RT_BIT(10))
     236%define X86_DR7_RAZ_MASK                    0x0000d800
     237%define X86_DR7_MBZ_MASK                    0xffffffff00000000
    230238%define X86_DR7_L(iBp)                      ( 1 << (iBp * 2) )
    231239%define X86_DR7_G(iBp)                      ( 1 << (iBp * 2 + 1) )
     240%define X86_DR7_L_G(iBp)                    ( 3 << (iBp * 2) )
    232241%define X86_DR7_RW_EO                       0
    233242%define X86_DR7_RW_WO                       1
     
    235244%define X86_DR7_RW_RW                       3
    236245%define X86_DR7_RW(iBp, fRw)                ( (fRw) << ((iBp) * 4 + 16) )
     246%define X86_DR7_GET_RW(uDR7, iBp)            ( ( (uDR7) >> ((iBp) * 4 + 16) ) & 3 )
     247%define X86_DR7_RW_ALL_MASKS                0x33330000
     248%define X86_DR7_ANY_RW_IO(uDR7) \
     249    (   (    0x22220000 & (uDR7) )
    237250%define X86_DR7_LEN_BYTE                    0
    238251%define X86_DR7_LEN_WORD                    1
     
    240253%define X86_DR7_LEN_DWORD                   3
    241254%define X86_DR7_LEN(iBp, cb)                ( (cb) << ((iBp) * 4 + 18) )
    242 %define X86_DR7_GET_LEN(uDR7, iBp)          ( ( (uDR7) >> ((iBp) * 4 + 18) ) & 0x3)
    243 %define X86_DR7_ENABLED_MASK                (RT_BIT(0) | RT_BIT(1) | RT_BIT(2) | RT_BIT(3) | RT_BIT(4) | RT_BIT(5) | RT_BIT(6) | RT_BIT(7))
    244 %define X86_DR7_IO_ENABLED_MASK             (X86_DR7_RW(0, X86_DR7_RW_IO) | X86_DR7_RW(1, X86_DR7_RW_IO) | X86_DR7_RW(2, X86_DR7_RW_IO) | X86_DR7_RW(3, X86_DR7_RW_IO))
     255%define X86_DR7_GET_LEN(uDR7, iBp)          ( ( (uDR7) >> ((iBp) * 4 + 18) ) & 0x3 )
     256%define X86_DR7_ENABLED_MASK                0x000000ff
    245257%define X86_DR7_INIT_VAL                    0x400
    246258%define MSR_IA32_TSC                        0x10
     
    546558%define X86_FCW_RC_ZERO     0x0c00
    547559%define X86_FCW_ZERO_MASK   0xf080
     560%define X86_MSXCR_IE          RT_BIT(0)
     561%define X86_MSXCR_DE          RT_BIT(1)
     562%define X86_MSXCR_ZE          RT_BIT(2)
     563%define X86_MSXCR_OE          RT_BIT(3)
     564%define X86_MSXCR_UE          RT_BIT(4)
     565%define X86_MSXCR_PE          RT_BIT(5)
     566%define X86_MSXCR_DAZ         RT_BIT(6)
     567%define X86_MSXCR_IM          RT_BIT(7)
     568%define X86_MSXCR_DM          RT_BIT(8)
     569%define X86_MSXCR_ZM          RT_BIT(9)
     570%define X86_MSXCR_OM          RT_BIT(10)
     571%define X86_MSXCR_UM          RT_BIT(11)
     572%define X86_MSXCR_PM          RT_BIT(12)
     573%define X86_MSXCR_RC_MASK     0x6000
     574%define X86_MSXCR_RC_NEAREST  0x0000
     575%define X86_MSXCR_RC_DOWN     0x2000
     576%define X86_MSXCR_RC_UP       0x4000
     577%define X86_MSXCR_RC_ZERO     0x6000
     578%define X86_MSXCR_FZ          RT_BIT(15)
     579%define X86_MSXCR_MM          RT_BIT(16)
    548580%ifndef VBOX_FOR_DTRACE_LIB
    549581%endif
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