VirtualBox

Changeset 100764 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Aug 1, 2023 10:33:34 AM (18 months ago)
Author:
vboxsync
Message:

VMM/NEMR3Native-darwin-armv8: Set CNTV_CTL_EL0 and CNTV_CVAL_EL0 when resuming (so it gets updated after a saved state load), bugref:10390

File:
1 edited

Legend:

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

    r100725 r100764  
    15391539
    15401540        pVCpu->nem.s.fVTimerOffUpdate = false;
     1541
     1542        hrc = hv_vcpu_set_sys_reg(pVCpu->nem.s.hVCpu, HV_SYS_REG_CNTV_CTL_EL0, pVCpu->cpum.GstCtx.CntvCtlEl0);
     1543        if (hrc == HV_SUCCESS)
     1544            hrc = hv_vcpu_set_sys_reg(pVCpu->nem.s.hVCpu, HV_SYS_REG_CNTV_CVAL_EL0, pVCpu->cpum.GstCtx.CntvCValEl0);
     1545        if (hrc != HV_SUCCESS)
     1546            return nemR3DarwinHvSts2Rc(hrc);
    15411547    }
    15421548
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