VirtualBox

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


Ignore:
Timestamp:
Feb 3, 2022 2:15:58 PM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
149718
Message:

VMM/{VMXAllTemplate.cpp.h,NEMR3Native-darwin.cpp}: Temporarily intercept all CR3 accesses to investigate an issue with 32bit guests where we seem to end up with an invalid page table root address under certain circumstances, bugref:9044

File:
1 edited

Legend:

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

    r93457 r93582  
    13271327//#define HMVMX_ALWAYS_TRAP_ALL_XCPTS
    13281328//#define HMVMX_ALWAYS_SYNC_FULL_GUEST_STATE
     1329#define HMVMX_ALAWAYS_INTERCEPT_CR3_ACCESS /* Temporary to investigate an issue with 32bit guests whete seem to end up with an invalid page table root address. */
    13291330#define VCPU_2_VMXSTATE(a_pVCpu)            (a_pVCpu)->nem.s
    13301331#define VCPU_2_VMXSTATS(a_pVCpu)            (*(a_pVCpu)->nem.s.pVmxStats)
     
    21902191         |  VMX_PROC_CTLS_MWAIT_EXIT;                                 /* MWAIT causes a VM-exit. */
    21912192
     2193#ifdef HMVMX_ALAWAYS_INTERCEPT_CR3_ACCESS
     2194    fVal |= VMX_PROC_CTLS_CR3_LOAD_EXIT
     2195         |  VMX_PROC_CTLS_CR3_STORE_EXIT;
     2196#endif
     2197
    21922198    /* We toggle VMX_PROC_CTLS_MOV_DR_EXIT later, check if it's not -always- needed to be set or clear. */
    21932199    if (   !(g_HmMsrs.u.vmx.ProcCtls.n.allowed1 & VMX_PROC_CTLS_MOV_DR_EXIT)
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette