VirtualBox

Changeset 71165 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Mar 2, 2018 5:47:44 AM (7 years ago)
Author:
vboxsync
Message:

VMM/IEM: Nested Hw.virt: Add VMRUN check when SVM Flush-by-ASID is exposed to the guest.

File:
1 edited

Legend:

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

    r71095 r71165  
    403403        {
    404404            Log(("iemSvmVmrun: Guest ASID is invalid -> #VMEXIT\n"));
     405            return iemSvmVmexit(pVCpu, pCtx, SVM_EXIT_INVALID, 0 /* uExitInfo1 */, 0 /* uExitInfo2 */);
     406        }
     407
     408        /* Flush by ASID. */
     409        if (   !pVM->cpum.ro.GuestFeatures.fSvmFlusbByAsid
     410            &&  pVmcbCtrl->TLBCtrl.n.u8TLBFlush != SVM_TLB_FLUSH_NOTHING
     411            &&  pVmcbCtrl->TLBCtrl.n.u8TLBFlush != SVM_TLB_FLUSH_ENTIRE)
     412        {
     413            Log(("iemSvmVmrun: Flush-by-ASID not supported -> #VMEXIT\n"));
    405414            return iemSvmVmexit(pVCpu, pCtx, SVM_EXIT_INVALID, 0 /* uExitInfo1 */, 0 /* uExitInfo2 */);
    406415        }
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