VirtualBox

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


Ignore:
Timestamp:
Oct 17, 2024 4:53:02 PM (3 months ago)
Author:
vboxsync
Message:

VMM: Filter out some more PMU register accesses Windows/ARM is doing until we have a proper PMU emulation, bugref:10778

File:
1 edited

Legend:

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

    r106373 r106463  
    17371737         * all backends to share (Linux/KVM when running on AppleSilicon hardware). */
    17381738        if (   idSysReg == ARMV8_AARCH64_SYSREG_PMCR_EL0
    1739             || idSysReg == ARMV8_AARCH64_SYSREG_PMCCNTR_EL0)
     1739            || idSysReg == ARMV8_AARCH64_SYSREG_PMCCNTR_EL0
     1740            || idSysReg == ARMV8_AARCH64_SYSREG_PMCNTENCLR_EL0)
    17401741        {
    17411742            if (idSysReg == ARMV8_AARCH64_SYSREG_PMCCNTR_EL0)
     
    17561757    else
    17571758    {
    1758         u64Val = nemR3DarwinGetGReg(pVCpu, uReg);
    1759         rcStrict = CPUMSetGuestSysReg(pVCpu, idSysReg, u64Val);
     1759        if (   idSysReg != ARMV8_AARCH64_SYSREG_PMCNTENCLR_EL0
     1760            && idSysReg != ARMV8_AARCH64_SYSREG_PMOVSCLR_EL0
     1761            && idSysReg != ARMV8_AARCH64_SYSREG_PMINTENCLR_EL1
     1762            && idSysReg != ARMV8_AARCH64_SYSREG_PMCR_EL0
     1763            && idSysReg != ARMV8_AARCH64_SYSREG_PMCCFILTR_EL0
     1764            && idSysReg != ARMV8_AARCH64_SYSREG_PMCNTENSET_EL0
     1765            && idSysReg != ARMV8_AARCH64_SYSREG_PMUSERENR_EL0
     1766            && idSysReg != ARMV8_AARCH64_SYSREG_PMCCNTR_EL0)
     1767        {
     1768            u64Val = nemR3DarwinGetGReg(pVCpu, uReg);
     1769            rcStrict = CPUMSetGuestSysReg(pVCpu, idSysReg, u64Val);
     1770        }
    17601771        Log4(("SysInsnExit/%u: %08RX64: WRITE %u:%u:%u:%u:%u %#RX64 -> rcStrict=%Rrc\n",
    17611772              pVCpu->idCpu, pVCpu->cpum.GstCtx.Pc.u64, uOp0, uOp1, uCRn, uCRm, uOp2, u64Val,
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