VirtualBox

Changeset 56618 in vbox


Ignore:
Timestamp:
Jun 24, 2015 12:12:41 PM (9 years ago)
Author:
vboxsync
Message:

VMM/HMR0: Don't read MSR unnecessarily.

File:
1 edited

Legend:

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

    r56572 r56618  
    344344    {
    345345        /** @todo move this into a separate function. */
    346         g_HmR0.vmx.Msrs.u64FeatureCtrl = ASMRdMsr(MSR_IA32_FEATURE_CONTROL);
    347 
    348346        /*
    349347         * First try use native kernel API for controlling VT-x.
     
    374372        if (RT_SUCCESS(g_HmR0.lLastError))
    375373        {
    376             /* Reread in case it was changed by hmR0InitIntelCpu(). */
    377             g_HmR0.vmx.Msrs.u64FeatureCtrl = ASMRdMsr(MSR_IA32_FEATURE_CONTROL);
    378 
    379374            /*
    380375             * Read all relevant registers and MSRs.
     
    382377            g_HmR0.vmx.u64HostCr4          = ASMGetCR4();
    383378            g_HmR0.vmx.u64HostEfer         = ASMRdMsr(MSR_K6_EFER);
     379            g_HmR0.vmx.Msrs.u64FeatureCtrl = ASMRdMsr(MSR_IA32_FEATURE_CONTROL);
    384380            g_HmR0.vmx.Msrs.u64BasicInfo   = ASMRdMsr(MSR_IA32_VMX_BASIC_INFO);
    385381            g_HmR0.vmx.Msrs.VmxPinCtls.u   = ASMRdMsr(MSR_IA32_VMX_PINBASED_CTLS);
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