VirtualBox

Changeset 93397 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jan 21, 2022 1:21:21 PM (3 years ago)
Author:
vboxsync
Message:

VMM/NEMR3Native-darwin: Need to ensure that the A20 gate is actually enabled before running the guest in HV in each run or we might run into semi random memory corruptions, bugref:9044

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/NEMR3Native-darwin.cpp

    r93218 r93397  
    26942694#endif
    26952695
     2696    AssertReturn(NEMR3CanExecuteGuest(pVM, pVCpu), VERR_NEM_IPE_9);
     2697
    26962698    /*
    26972699     * Try switch to NEM runloop state.
     
    27392741            if (rcStrict == VINF_EM_RAW_TO_R3)
    27402742                rcStrict = VINF_SUCCESS;
     2743            break;
     2744        }
     2745
     2746        /*
     2747         * Do not execute in HV if the A20 isn't enabled.
     2748         */
     2749        if (PGMPhysIsA20Enabled(pVCpu))
     2750        { /* likely */ }
     2751        else
     2752        {
     2753            rcStrict = VINF_EM_RESCHEDULE_REM;
     2754            LogFlow(("NEM/%u: breaking: A20 disabled\n", pVCpu->idCpu));
    27412755            break;
    27422756        }
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