VirtualBox

Changeset 93107 in vbox for trunk/src/VBox/VMM


Ignore:
Timestamp:
Dec 31, 2021 12:11:12 AM (3 years ago)
Author:
vboxsync
Message:

VMM/IEM: IEMExecStringIoRead must roll back memory mappings. Can happen for non-repeating instructions being forced to go to ring-3 or similar.

File:
1 edited

Legend:

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

    r92757 r93107  
    1511215112    }
    1511315113
    15114     Assert(pVCpu->iem.s.cActiveMappings == 0 || VMCPU_FF_IS_SET(pVCpu, VMCPU_FF_IEM));
     15114    if (   pVCpu->iem.s.cActiveMappings == 0
     15115        || VMCPU_FF_IS_SET(pVCpu, VMCPU_FF_IEM))
     15116    { /* likely */ }
     15117    else
     15118    {
     15119        AssertMsg(!IOM_SUCCESS(rcStrict), ("%#x\n", VBOXSTRICTRC_VAL(rcStrict)));
     15120        iemMemRollback(pVCpu);
     15121    }
    1511515122    return iemUninitExecAndFiddleStatusAndMaybeReenter(pVCpu, rcStrict);
    1511615123}
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