VirtualBox

Changeset 74306 in vbox for trunk/include/VBox


Ignore:
Timestamp:
Sep 17, 2018 12:02:41 PM (6 years ago)
Author:
vboxsync
Message:

hm_vmx.h: Nested VMX: bugref:9180 Distinguish trap-like vs fault-like VM-exits for handling of RIP for upcoming VM-exit handling.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/VBox/vmm/hm_vmx.h

    r74303 r74306  
    38973897    return true;
    38983898}
     3899
     3900
     3901/**
     3902 * Returns whether or not the VM-exit is trap-like or fault-like.
     3903 *
     3904 * @returns @c true if it's a trap-like VM-exit, @c false otehrwise.
     3905 * @param   uExitReason     The VM-exit reason.
     3906 *
     3907 * @remarks Warning! This does not validate the VM-exit reason.
     3908 */
     3909DECLINLINE(bool) HMVmxIsTrapLikeVmexit(uint32_t uExitReason)
     3910{
     3911    /*
     3912     * Trap-like VM-exits - The instruction causing the VM-exit completes before the
     3913     * VM-exit occurs.
     3914     *
     3915     * Fault-like VM-exits - The instruction causing the VM-exit is not completed before
     3916     * the VM-exit occurs.
     3917     *
     3918     * See Intel spec. 29.1.4 "EOI Virtualization".
     3919     * See Intel spec. 29.4.3.3 "APIC-Write VM Exits".
     3920     * See Intel spec. 29.1.2 "TPR Virtualization".
     3921     */
     3922    switch (uExitReason)
     3923    {
     3924        case VMX_EXIT_VIRTUALIZED_EOI:
     3925        case VMX_EXIT_APIC_WRITE:
     3926        case VMX_EXIT_TPR_BELOW_THRESHOLD:
     3927            return true;
     3928    }
     3929    return false;
     3930}
    38993931/** @} */
    39003932
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