VirtualBox

Changeset 74729 in vbox


Ignore:
Timestamp:
Oct 10, 2018 3:18:09 AM (6 years ago)
Author:
vboxsync
Message:

VMM/IEM: Nested VMX: bugref:9180 Make sure to update VM-exit qualification for all VM-exits. It must be cleared and isn't
undefined like most other VM-exit read-only information fields.

File:
1 edited

Legend:

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

    r74710 r74729  
    26552655 * @param   pVCpu           The cross context virtual CPU structure.
    26562656 * @param   uExitReason     The VM-exit reason.
     2657 *
     2658 * @remarks Make sure VM-exit qualification is updated before calling this
     2659 *          function!
    26572660 */
    26582661IEM_STATIC VBOXSTRICTRC iemVmxVmexit(PVMCPU pVCpu, uint32_t uExitReason)
     
    35233526         * instruction length field and let the VM-exit handler update the RIP when appropriate.
    35243527         * It will then clear the VM-exit instruction length field before completing the VM-exit.
     3528         *
     3529         * The VM-exit qualification must be cleared.
    35253530         */
    35263531        iemVmxVmcsSetExitInstrLen(pVCpu, cbInstr);
     3532        iemVmxVmcsSetExitQual(pVCpu, 0);
    35273533        return iemVmxVmexit(pVCpu, VMX_EXIT_TPR_BELOW_THRESHOLD);
    35283534    }
     
    56085614                    iemVmxVmentrySaveForceFlags(pVCpu);
    56095615
     5616                    /* Initialize the VM-exit qualification field as it MBZ for VM-exits where it isn't specified. */
     5617                    iemVmxVmcsSetExitQual(pVCpu, 0);
     5618
    56105619                    rc = iemVmxVmentryCheckGuestState(pVCpu, pszInstr);
    56115620                    if (RT_SUCCESS(rc))
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