VirtualBox

Changeset 97148 in vbox for trunk/src/VBox/VMM/VMMR0


Ignore:
Timestamp:
Oct 14, 2022 6:49:50 AM (3 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
154121
Message:

VMM/HMVMXR0: Nested VMX: bugref:10092 We no longer need to play around with PGMHandlerPhysicalPageTempOff in VT-x code for the virtual-APIC page since introduction of PGMPHYSHANDLER_F_NOT_IN_HM.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp

    r97095 r97148  
    56235623        RTGCPHYS const GCPhysApicAccess = pVmcsNstGst->u64AddrApicAccess.u;
    56245624
    5625         /* Disabling this since we adjust the shadow page table permissions in (SyncHandlerPte). */
    5626 #if 0
    5627         /** @todo NSTVMX: This is not really correct but currently is required to make
    5628          *        things work. We need to re-enable the page handler when we fallback to
    5629          *        IEM execution of the nested-guest! */
    5630         PGMHandlerPhysicalPageTempOff(pVM, GCPhysApicAccess, GCPhysApicAccess);
    5631 #endif
    5632 
    56335625        void          *pvPage;
    56345626        PGMPAGEMAPLOCK PgLockApicAccess;
     
    65596551            break;
    65606552        }
    6561 
    6562         /* Disabling this since we adjust the shadow page table permissions in (SyncHandlerPte). */
    6563 #if 0
    6564         /*
    6565          * Undo temporary disabling of the APIC-access page monitoring we did in hmR0VmxMergeVmcsNested.
    6566          * This is needed for NestedTrap0eHandler (and IEM) to cause nested-guest APIC-access VM-exits.
    6567          */
    6568         if (VmxTransient.pVmcsInfo->u32ProcCtls2 & VMX_PROC_CTLS2_VIRT_APIC_ACCESS)
    6569         {
    6570             PVMXVVMCS const pVmcsNstGst      = &pVCpu->cpum.GstCtx.hwvirt.vmx.Vmcs;
    6571             RTGCPHYS const  GCPhysApicAccess = pVmcsNstGst->u64AddrApicAccess.u;
    6572             PGMHandlerPhysicalReset(pVCpu->CTX_SUFF(pVM), GCPhysApicAccess);
    6573         }
    6574 #endif
    65756553
    65766554        /*
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