VirtualBox

Changeset 12061 in vbox


Ignore:
Timestamp:
Sep 3, 2008 3:37:33 PM (16 years ago)
Author:
vboxsync
Message:

Harmless updates for later logging of fatal errors.

Location:
trunk/src/VBox/VMM
Files:
2 edited

Legend:

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

    r12020 r12061  
    828828
    829829/**
     830 * Check fatal VT-x/AMD-V error and produce some meaningful
     831 * log release message.
     832 *
     833 * @param   pVM         The VM to operate on.
     834 * @param   iStatusCode VBox status code
     835 */
     836HWACCMR3DECL(void) HWACCMR3CheckError(PVM pVM, int iStatusCode)
     837{
     838    switch(iStatusCode)
     839    {
     840    case VERR_VMX_INVALID_VMCS_FIELD:
     841        break;
     842
     843    case VERR_VMX_INVALID_VMCS_PTR:
     844        LogRel(("VERR_VMX_INVALID_VMCS_PTR: Current pointer %VGp vs %VGp\n", pVM->hwaccm.s.vmx.lasterror.u64VMCSPhys, pVM->hwaccm.s.vmx.pVMCSPhys));
     845        LogRel(("VERR_VMX_INVALID_VMCS_PTR: Current VMCS version %x\n", pVM->hwaccm.s.vmx.lasterror.ulVMCSRevision));
     846        break;
     847
     848    case VERR_VMX_INVALID_VMXON_PTR:
     849        break;
     850    }
     851}
     852
     853/**
    830854 * Execute state save operation.
    831855 *
  • trunk/src/VBox/VMM/HWACCMInternal.h

    r11757 r12061  
    282282        /* Last instruction error */
    283283        uint32_t                    ulLastInstrError;
     284
     285        struct
     286        {
     287            uint64_t                u64VMCSPhys;
     288            uint32_t                ulVMCSRevision;
     289        } lasterror;
    284290    } vmx;
    285291
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