VirtualBox

Changeset 43746 in vbox


Ignore:
Timestamp:
Oct 25, 2012 4:35:37 PM (12 years ago)
Author:
vboxsync
Message:

VMM: Some naming adjustments.

Location:
trunk
Files:
4 edited

Legend:

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

    r43394 r43746  
    19061906/** AMD-V CPU extension in-use. */
    19071907#define VERR_SVM_IN_USE                             (-4054)
     1908/** Invalid pVMCB. */
     1909#define VERR_SVM_INVALID_PVMCB                      (-4055)
     1910/** Unexpected SVM exit. */
     1911#define VERR_SVM_UNEXPECTED_EXIT                    (-4056)
     1912/** Unexpected SVM exception exit. */
     1913#define VERR_SVM_UNEXPECTED_XCPT_EXIT               (-4057)
     1914/** Unexpected SVM patch type. */
     1915#define VERR_SVM_UNEXPECTED_PATCH_TYPE              (-4058)
    19081916/** @} */
    19091917
     
    19131921 */
    19141922/** Unable to start VM execution. */
    1915 #define VERR_HM_UNKNOWN_CPU                     (-4100)
     1923#define VERR_HM_UNKNOWN_CPU                         (-4100)
    19161924/** No CPUID support. */
    1917 #define VERR_HM_NO_CPUID                        (-4101)
     1925#define VERR_HM_NO_CPUID                            (-4101)
    19181926/** Host is about to go into suspend mode. */
    1919 #define VERR_HM_SUSPEND_PENDING                 (-4102)
     1927#define VERR_HM_SUSPEND_PENDING                     (-4102)
    19201928/** Conflicting CFGM values. */
    1921 #define VERR_HM_CONFIG_MISMATCH                 (-4103)
     1929#define VERR_HM_CONFIG_MISMATCH                     (-4103)
    19221930/** Internal processing error in the HM init code. */
    19231931#define VERR_HM_ALREADY_ENABLED_IPE                 (-4104)
     
    19261934/** No 32-bit to 64-bit switcher in place. */
    19271935#define VERR_HM_NO_32_TO_64_SWITCHER                (-4106)
    1928 /** Invalid pVMCB. */
    1929 #define VERR_HMSVM_INVALID_PVMCB                    (-4107)
    1930 /** Unexpected SVM exit. */
    1931 #define VERR_HMSVM_UNEXPECTED_EXIT                  (-4108)
    1932 /** Unexpected SVM exception exit. */
    1933 #define VERR_HMSVM_UNEXPECTED_XCPT_EXIT             (-4109)
    1934 /** Unexpected SVM patch type. */
    1935 #define VERR_HMSVM_UNEXPECTED_PATCH_TYPE            (-4110)
    19361936/** HMR0Leave was called on the wrong CPU. */
    1937 #define VERR_HM_WRONG_CPU_1                         (-4111)
     1937#define VERR_HM_WRONG_CPU_1                         (-4107)
    19381938/** Internal processing error \#1 in the HM code.  */
    1939 #define VERR_HM_IPE_1                               (-4112)
     1939#define VERR_HM_IPE_1                               (-4108)
    19401940/** Internal processing error \#2 in the HM code.  */
    1941 #define VERR_HM_IPE_2                               (-4113)
     1941#define VERR_HM_IPE_2                               (-4109)
    19421942/** Wrong 32/64-bit switcher. */
    1943 #define VERR_HM_WRONG_SWITCHER                      (-4114)
     1943#define VERR_HM_WRONG_SWITCHER                      (-4110)
    19441944/** Unknown I/O instruction. */
    1945 #define VERR_HM_UNKNOWN_IO_INSTRUCTION              (-4115)
     1945#define VERR_HM_UNKNOWN_IO_INSTRUCTION              (-4111)
     1946/** Unsupported CPU feature combination. */
     1947#define VERR_HM_UNSUPPORTED_CPU_FEATURE_COMBO       (-4112)
    19461948/** @} */
    19471949
  • trunk/src/VBox/VMM/VMMR0/HWSVMR0.cpp

    r43657 r43746  
    338338        SVM_VMCB *pvVMCB = (SVM_VMCB *)pVM->aCpus[i].hm.s.svm.pvVMCB;
    339339
    340         AssertMsgReturn(pvVMCB, ("Invalid pvVMCB\n"), VERR_HMSVM_INVALID_PVMCB);
     340        AssertMsgReturn(pvVMCB, ("Invalid pvVMCB\n"), VERR_SVM_INVALID_PVMCB);
    341341
    342342        /*
     
    755755
    756756    pvVMCB = (SVM_VMCB *)pVCpu->hm.s.svm.pvVMCB;
    757     AssertMsgReturn(pvVMCB, ("Invalid pvVMCB\n"), VERR_HMSVM_INVALID_PVMCB);
     757    AssertMsgReturn(pvVMCB, ("Invalid pvVMCB\n"), VERR_SVM_INVALID_PVMCB);
    758758
    759759    /* Guest CPU context: ES, CS, SS, DS, FS, GS. */
     
    12231223
    12241224    pvVMCB = (SVM_VMCB *)pVCpu->hm.s.svm.pvVMCB;
    1225     AssertMsgReturn(pvVMCB, ("Invalid pvVMCB\n"), VERR_HMSVM_INVALID_PVMCB);
     1225    AssertMsgReturn(pvVMCB, ("Invalid pvVMCB\n"), VERR_SVM_INVALID_PVMCB);
    12261226
    12271227    /*
     
    20902090        default:
    20912091            AssertMsgFailed(("Unexpected vm-exit caused by exception %x\n", vector));
    2092             rc = VERR_HMSVM_UNEXPECTED_XCPT_EXIT;
     2092            rc = VERR_SVM_UNEXPECTED_XCPT_EXIT;
    20932093            break;
    20942094
     
    27592759    default:
    27602760        /* Unexpected exit codes. */
    2761         rc = VERR_HMSVM_UNEXPECTED_EXIT;
     2761        rc = VERR_SVM_UNEXPECTED_EXIT;
    27622762        AssertMsgFailed(("Unexpected exit code %x\n", exitCode));                 /* Can't happen. */
    27632763        break;
     
    28772877
    28782878            default:
    2879                     AssertMsgFailedReturn(("Unexpected type %d\n", pPatch->enmType), VERR_HMSVM_UNEXPECTED_PATCH_TYPE);
     2879                    AssertMsgFailedReturn(("Unexpected type %d\n", pPatch->enmType), VERR_SVM_UNEXPECTED_PATCH_TYPE);
    28802880        }
    28812881    }
     
    30443044
    30453045        pvVMCB = (SVM_VMCB *)pVCpu->hm.s.svm.pvVMCB;
    3046         AssertMsgReturn(pvVMCB, ("Invalid pvVMCB\n"), VERR_HMSVM_INVALID_PVMCB);
     3046        AssertMsgReturn(pvVMCB, ("Invalid pvVMCB\n"), VERR_SVM_INVALID_PVMCB);
    30473047
    30483048#if HC_ARCH_BITS == 32
  • trunk/src/VBox/VMM/VMMR0/HWVMXR0.cpp

    r43737 r43746  
    22412241    }
    22422242
    2243     pVCpu->hm.s.vmx.cCachedMsrs = idxMsr;
     2243    pVCpu->hm.s.vmx.cGuestMsrs = idxMsr;
    22442244
    22452245    rc = VMXWriteVMCS(VMX_VMCS32_CTRL_ENTRY_MSR_LOAD_COUNT, idxMsr);
     
    24402440     * Save the possibly changed MSRs that we automatically restore and save during a world switch.
    24412441     */
    2442     for (unsigned i = 0; i < pVCpu->hm.s.vmx.cCachedMsrs; i++)
     2442    for (unsigned i = 0; i < pVCpu->hm.s.vmx.cGuestMsrs; i++)
    24432443    {
    24442444        PVMXMSR pMsr = (PVMXMSR)pVCpu->hm.s.vmx.pvGuestMsr;
  • trunk/src/VBox/VMM/VMMR3/HM.cpp

    r43670 r43746  
    27152715                    LogRel(("VERR_VMX_UNABLE_TO_START_VM: Cpu%d GuestMSRPhys  %RHp\n", i, pVM->aCpus[i].hm.s.vmx.HCPhysGuestMsr));
    27162716                    LogRel(("VERR_VMX_UNABLE_TO_START_VM: Cpu%d HostMsrPhys   %RHp\n", i, pVM->aCpus[i].hm.s.vmx.HCPhysHostMsr));
    2717                     LogRel(("VERR_VMX_UNABLE_TO_START_VM: Cpu%d Cached MSRs   %x\n",   i, pVM->aCpus[i].hm.s.vmx.cCachedMsrs));
     2717                    LogRel(("VERR_VMX_UNABLE_TO_START_VM: Cpu%d cGuestMSRs    %x\n",   i, pVM->aCpus[i].hm.s.vmx.cGuestMsrs));
    27182718#endif
    27192719                }
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