VirtualBox

Changeset 79975 in vbox


Ignore:
Timestamp:
Jul 25, 2019 9:39:39 AM (6 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
132406
Message:

VMM/IEM: Nested VMX: bugref:9180 If we are de-registering the page before executing the nested-guest using hardware-assisted VMX, we would need to re-register it when we fallback to IEM execution of the nested-guest to trap memory accesses to the APIC-access page again. Disabled for now.

File:
1 edited

Legend:

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

    r79756 r79975  
    11241124    if (!pVCpu->iem.s.fInPatchCode)
    11251125        CPUMRawLeave(pVCpu, VINF_SUCCESS);
     1126#endif
     1127#if 0
     1128#if defined(VBOX_WITH_NESTED_HWVIRT_VMX) && !defined(IN_RC)
     1129    if (    CPUMIsGuestInVmxNonRootMode(&pVCpu->cpum.GstCtx)
     1130        &&  CPUMIsGuestVmxProcCtls2Set(pVCpu, &pVCpu->cpum.GstCtx, VMX_PROC_CTLS2_VIRT_APIC_ACCESS))
     1131    {
     1132        PCVMXVVMCS pVmcs = pVCpu->cpum.GstCtx.hwvirt.vmx.CTX_SUFF(pVmcs);
     1133        Assert(pVmcs);
     1134        RTGCPHYS const GCPhysApicAccess = pVmcs->u64AddrApicAccess.u;
     1135        if (!PGMHandlerPhysicalIsRegistered(pVCpu->CTX_SUFF(pVM), GCPhysApicAccess))
     1136        {
     1137           int rc = PGMHandlerPhysicalRegister(pVCpu->CTX_SUFF(pVM), GCPhysApicAccess, GCPhysApicAccess + X86_PAGE_4K_SIZE - 1,
     1138                                               pVCpu->iem.s.hVmxApicAccessPage, NIL_RTR3PTR /* pvUserR3 */,
     1139                                               NIL_RTR0PTR /* pvUserR0 */,  NIL_RTRCPTR /* pvUserRC */, NULL /* pszDesc */);
     1140           AssertRC(rc);
     1141        }
     1142    }
     1143#endif
    11261144#endif
    11271145}
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