VirtualBox

Changeset 76683 in vbox for trunk/src


Ignore:
Timestamp:
Jan 7, 2019 4:34:47 PM (6 years ago)
Author:
vboxsync
Message:

VMM/HM: Nested VMX: bugref:9180 Get descriptive string for VMCS state.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/HMVMXAll.cpp

    r76638 r76683  
    404404
    405405/**
     406 * Gets the description for a virtual VMCS state.
     407 *
     408 * @returns The descriptive string.
     409 * @param   fVmcsState      The virtual-VMCS state.
     410 */
     411VMM_INT_DECL(const char *) HMVmxGetVmcsStateDesc(uint8_t fVmcsState)
     412{
     413    switch (fVmcsState)
     414    {
     415        case VMX_V_VMCS_STATE_CLEAR:        return "Clear";
     416        case VMX_V_VMCS_STATE_LAUNCHED:     return "Launched";
     417        default:                            return "Unknown";
     418    }
     419}
     420
     421
     422/**
    406423 * Checks if a code selector (CS) is suitable for execution using hardware-assisted
    407424 * VMX when unrestricted execution isn't available.
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