VirtualBox

Changeset 72386 in vbox


Ignore:
Timestamp:
May 29, 2018 2:59:15 PM (7 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
122846
Message:

NEM/win: intel MSR register import/export adjustments. bugref:9044

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/NEMR0Native-win.cpp

    r72358 r72386  
    11541154        iReg++;
    11551155
     1156#if 0 /** @todo Why can't we write these on Intel systems? Not that we really care... */
    11561157        const CPUMCPUVENDOR enmCpuVendor = CPUMGetHostCpuVendor(pGVM->pVM);
    11571158        if (enmCpuVendor != CPUMCPUVENDOR_AMD)
     
    11661167            iReg++;
    11671168        }
     1169#endif
    11681170    }
    11691171
     
    14561458    }
    14571459
     1460#ifdef LOG_ENABLED
    14581461    const CPUMCPUVENDOR enmCpuVendor = CPUMGetHostCpuVendor(pGVM->pVM);
     1462#endif
    14591463    if (fWhat & CPUMCTX_EXTRN_OTHER_MSRS)
    14601464    {
     
    14761480        pInput->Names[iReg++] = HvX64RegisterMtrrFix4kF0000;
    14771481        pInput->Names[iReg++] = HvX64RegisterMtrrFix4kF8000;
     1482#if 0 /** @todo why can't we read HvX64RegisterIa32MiscEnable? */
    14781483        if (enmCpuVendor != CPUMCPUVENDOR_AMD)
    1479         {
    14801484            pInput->Names[iReg++] = HvX64RegisterIa32MiscEnable;
     1485#endif
    14811486#ifdef LOG_ENABLED
     1487        if (enmCpuVendor != CPUMCPUVENDOR_AMD)
    14821488            pInput->Names[iReg++] = HvX64RegisterIa32FeatureControl;
    14831489#endif
    1484         }
    14851490    }
    14861491
     
    20432048        iReg++;
    20442049
     2050#if 0 /** @todo why can't we even read HvX64RegisterIa32MiscEnable? */
    20452051        if (enmCpuVendor != CPUMCPUVENDOR_AMD)
    20462052        {
     
    20502056            pCtxMsrs->msr.MiscEnable = paValues[iReg].Reg64;
    20512057            iReg++;
     2058        }
     2059#endif
    20522060#ifdef LOG_ENABLED
     2061        if (enmCpuVendor != CPUMCPUVENDOR_AMD)
     2062        {
    20532063            Assert(pInput->Names[iReg] == HvX64RegisterIa32FeatureControl);
    20542064            if (paValues[iReg].Reg64 != CPUMGetGuestIa32FeatureControl(pVCpu))
    20552065                Log7(("NEM/%u: MSR FEATURE_CONTROL changed %RX64 -> %RX64 (!!)\n", pVCpu->idCpu, CPUMGetGuestIa32FeatureControl(pVCpu), paValues[iReg].Reg64));
    20562066            iReg++;
     2067        }
    20572068#endif
    2058         }
    2059 
    2060         /** @todo we don't save state for HvX64RegisterIa32FeatureControl */
    20612069    }
    20622070
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