VirtualBox

Changeset 75940 in vbox for trunk/include/VBox/vmm


Ignore:
Timestamp:
Dec 4, 2018 10:42:07 AM (6 years ago)
Author:
vboxsync
Message:

VMM: Nested VMX: bugref:9180 Pending guest debug exception injection.

File:
1 edited

Legend:

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

    r75693 r75940  
    41954195 *
    41964196 * @returns @c true if the VM-entry is vectoring, @c false otherwise.
    4197  * @param   uEntryIntInfo   The VM-entry interruption information field.
    4198  */
    4199 DECLINLINE(bool) HMVmxIsVmentryVectoring(uint32_t uEntryIntInfo)
    4200 {
     4197 * @param   uEntryIntInfo       The VM-entry interruption information field.
     4198 * @param   pEntryIntInfoType   The VM-entry interruption information type field.
     4199 *                              Optional, can be NULL. Only updated when this
     4200 *                              function returns @c true.
     4201 */
     4202DECLINLINE(bool) HMVmxIsVmentryVectoring(uint32_t uEntryIntInfo, uint8_t *pEntryIntInfoType)
     4203{
     4204    /*
     4205     * The definition of what is a vectoring VM-entry is taken
     4206     * from Intel spec. 26.6 "Special Features of VM Entry".
     4207     */
    42014208    if (!VMX_ENTRY_INT_INFO_IS_VALID(uEntryIntInfo))
    42024209        return false;
    4203     switch (VMX_ENTRY_INT_INFO_TYPE(uEntryIntInfo))
     4210    uint8_t const uType = VMX_ENTRY_INT_INFO_TYPE(uEntryIntInfo);
     4211    switch (uType)
    42044212    {
    42054213        case VMX_ENTRY_INT_INFO_TYPE_EXT_INT:
     
    42094217        case VMX_ENTRY_INT_INFO_TYPE_PRIV_SW_XCPT:
    42104218        case VMX_ENTRY_INT_INFO_TYPE_SW_XCPT:
     4219        {
     4220            if (pEntryIntInfoType)
     4221                *pEntryIntInfoType = uType;
    42114222            return true;
     4223        }
    42124224    }
    42134225    return false;
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