VirtualBox

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


Ignore:
Timestamp:
Jan 29, 2021 6:17:10 PM (4 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
142510
Message:

VMM/HMVMX: Moving more stuff to HMR0PERVCPU. bugref:9217

File:
1 edited

Legend:

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

    r87487 r87488  
    10251025DECLINLINE(PVMXVMCSINFO) hmGetVmxActiveVmcsInfo(PVMCPUCC pVCpu)
    10261026{
    1027     if (!pVCpu->hm.s.vmx.fSwitchedToNstGstVmcs)
     1027    if (!pVCpu->hmr0.s.vmx.fSwitchedToNstGstVmcs)
    10281028        return &pVCpu->hmr0.s.vmx.VmcsInfo;
    10291029    return &pVCpu->hmr0.s.vmx.VmcsInfoNstGst;
     
    13981398    if (RT_SUCCESS(rc))
    13991399    {
    1400         pVCpu->hm.s.vmx.fSwitchedToNstGstVmcs = fSwitchToNstGstVmcs;
     1400        pVCpu->hmr0.s.vmx.fSwitchedToNstGstVmcs     = fSwitchToNstGstVmcs;
     1401        pVCpu->hm.s.vmx.fSwitchedToNstGstVmcsShadow = fSwitchToNstGstVmcs;
    14011402
    14021403        /*
     
    92849285    if (RT_SUCCESS(rc))
    92859286    {
    9286         pVCpu->hm.s.vmx.fSwitchedToNstGstVmcs = fInNestedGuestMode;
     9287        pVCpu->hmr0.s.vmx.fSwitchedToNstGstVmcs     = fInNestedGuestMode;
     9288        pVCpu->hm.s.vmx.fSwitchedToNstGstVmcsShadow = fInNestedGuestMode;
    92879289        pVCpu->hmr0.s.fLeaveDone = false;
    92889290        Log4Func(("Loaded Vmcs. HostCpuId=%u\n", RTMpCpuId()));
     
    1128311285     * guest VMCS while entering the VMX ring-0 session.
    1128411286     */
    11285     if (pVCpu->hm.s.vmx.fSwitchedToNstGstVmcs)
     11287    if (pVCpu->hmr0.s.vmx.fSwitchedToNstGstVmcs)
    1128611288    {
    1128711289        int rc = hmR0VmxSwitchToGstOrNstGstVmcs(pVCpu, false /* fSwitchToNstGstVmcs */);
     
    1139511397     * loaded the nested-guest VMCS while entering the VMX ring-0 session.
    1139611398     */
    11397     if (!pVCpu->hm.s.vmx.fSwitchedToNstGstVmcs)
     11399    if (!pVCpu->hmr0.s.vmx.fSwitchedToNstGstVmcs)
    1139811400    {
    1139911401        int rc = hmR0VmxSwitchToGstOrNstGstVmcs(pVCpu, true /* fSwitchToNstGstVmcs */);
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