VirtualBox

Changeset 64775 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Dec 2, 2016 10:26:51 AM (8 years ago)
Author:
vboxsync
Message:

VMM/HMVMXR0: nits.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp

    r64770 r64775  
    31103110
    31113111/**
    3112  * Saves certain host MSRs in the VM-Exit MSR-load area and some in the
     3112 * Saves certain host MSRs in the VM-exit MSR-load area and some in the
    31133113 * host-state area of the VMCS. Theses MSRs will be automatically restored on
    31143114 * the host after every successful VM-exit.
     
    90859085 */
    90869086
     9087/**
     9088 * Transient per-VCPU debug state of VMCS and related info. we save/restore in
     9089 * the debug run loop.
     9090 */
    90879091typedef struct VMXRUNDBGSTATE
    90889092{
     
    91149118     *  configured against. */
    91159119    uint32_t    uDtraceSettingsSeqNo;
    9116     /** Exits to check (one bit per exit). */
     9120    /** VM-exits to check (one bit per VM-exit). */
    91179121    uint32_t    bmExitsToCheck[3];
    91189122
     
    92219225{
    92229226    /*
    9223      * Restore exit control settings as we may not reenter this function the
     9227     * Restore VM-exit control settings as we may not reenter this function the
    92249228     * next time around.
    92259229     */
     
    92709274 *
    92719275 * This updates @a pDbgState and the VMCS execution control fields to reflect
    9272  * the necessary exits demanded by DBGF and DTrace.
     9276 * the necessary VM-exits demanded by DBGF and DTrace.
    92739277 *
    92749278 * @param   pVM             The cross context VM structure.
     
    93449348
    93459349    /*
    9346      * Process events and probes for VM exits, making sure we get the wanted exits.
     9350     * Process events and probes for VM-exits, making sure we get the wanted VM-exits.
    93479351     *
    93489352     * Note! This is the reverse of waft hmR0VmxHandleExitDtraceEvents does.
     
    95619565
    95629566/**
    9563  * Fires off DBGF events and dtrace probes for an exit, when it's appropriate.
    9564  *
    9565  * The caller has checked exit against the VMXRUNDBGSTATE::bmExitsToCheck
    9566  * bitmap. The caller has checked for NMIs already, so we don't have to do that
    9567  * either.
     9567 * Fires off DBGF events and dtrace probes for a VM-exit, when it's
     9568 * appropriate.
     9569 *
     9570 * The caller has checked the VM-exit against the
     9571 * VMXRUNDBGSTATE::bmExitsToCheck bitmap. The caller has checked for NMIs
     9572 * already, so we don't have to do that either.
    95689573 *
    95699574 * @returns Strict VBox status code (i.e. informational status codes too).
     
    97729777
    97739778        default:
    9774             AssertMsgFailed(("Unexpected exit=%#x\n", uExitReason));
     9779            AssertMsgFailed(("Unexpected VM-exit=%#x\n", uExitReason));
    97759780            break;
    97769781    }
     
    99509955 * Single-stepping VM-exit filtering.
    99519956 *
    9952  * This is preprocessing the exits and deciding whether we've gotten far enough
    9953  * to return VINF_EM_DBG_STEPPED already.  If not, normal VM-exit handling is
    9954  * performed.
     9957 * This is preprocessing the VM-exits and deciding whether we've gotten far
     9958 * enough to return VINF_EM_DBG_STEPPED already.  If not, normal VM-exit
     9959 * handling is performed.
    99559960 *
    99569961 * @returns Strict VBox status code (i.e. informational status codes too).
     
    99689973{
    99699974    /*
    9970      * Expensive (saves context) generic dtrace exit probe.
     9975     * Expensive (saves context) generic dtrace VM-exit probe.
    99719976     */
    99729977    if (!VBOXVMM_R0_HMVMX_VMEXIT_ENABLED())
     
    1007810083
    1007910084            default:
    10080                 AssertMsgFailed(("Unexpected exit=%#x\n", uExitReason));
     10085                AssertMsgFailed(("Unexpected VM-exit=%#x\n", uExitReason));
    1008110086                break;
    1008210087        }
     
    1051310518            return hmR0VmxExitSetPendingXcptUD(pVCpu, pMixedCtx, pVmxTransient);
    1051410519        case VMX_EXIT_RESERVED_60:
    10515         case VMX_EXIT_RDSEED: /* only spurious exits, so undefined */
     10520        case VMX_EXIT_RDSEED: /* only spurious VM-exits, so undefined */
    1051610521        case VMX_EXIT_RESERVED_62:
    1051710522        default:
     
    1317013175    HM_DISABLE_PREEMPT();
    1317113176
    13172     /* If the guest FPU was active at the time of the #NM exit, then it's a guest fault. */
     13177    /* If the guest FPU was active at the time of the #NM VM-exit, then it's a guest fault. */
    1317313178    if (pVmxTransient->fWasGuestFPUStateActive)
    1317413179    {
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