VirtualBox

Changeset 96826 in vbox


Ignore:
Timestamp:
Sep 22, 2022 6:08:22 AM (2 years ago)
Author:
vboxsync
Message:

VMM/CPUM: Nested VMX: bugref:10092 Init RTGCPHYS virtual-VMX CPU fields to NIL_RTGCPHYS that we really use for comparisons. Fixed missing reset of GCPhysVmcs (typo) as well.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/CPUM.cpp

    r96825 r96826  
    11031103        AssertCompile(sizeof(pCtx->hwvirt.vmx.abVirtApicPage) == VMX_V_VIRT_APIC_PAGES * X86_PAGE_SIZE);
    11041104        AssertCompile(sizeof(pCtx->hwvirt.vmx.abVirtApicPage) == VMX_V_VIRT_APIC_SIZE);
     1105
     1106        /* Initialize non-zero values. */
     1107        pCtx->hwvirt.vmx.GCPhysVmxon       = NIL_RTGCPHYS;
     1108        pCtx->hwvirt.vmx.GCPhysShadowVmcs  = NIL_RTGCPHYS;
     1109        pCtx->hwvirt.vmx.GCPhysVmcs        = NIL_RTGCPHYS;
    11051110    }
    11061111}
     
    11211126    pCtx->hwvirt.vmx.GCPhysVmxon       = NIL_RTGCPHYS;
    11221127    pCtx->hwvirt.vmx.GCPhysShadowVmcs  = NIL_RTGCPHYS;
    1123     pCtx->hwvirt.vmx.GCPhysVmxon       = NIL_RTGCPHYS;
     1128    pCtx->hwvirt.vmx.GCPhysVmcs        = NIL_RTGCPHYS;
    11241129    pCtx->hwvirt.vmx.fInVmxRootMode    = false;
    11251130    pCtx->hwvirt.vmx.fInVmxNonRootMode = false;
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