VirtualBox

Changeset 56619 in vbox


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

VMM/HMR0: revert r101249, added comment to clarify usage.

File:
1 edited

Legend:

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

    r56618 r56619  
    344344    {
    345345        /** @todo move this into a separate function. */
     346        /* Read this MSR now as it may be useful for error reporting when initializing VT-x fails. */
     347        g_HmR0.vmx.Msrs.u64FeatureCtrl = ASMRdMsr(MSR_IA32_FEATURE_CONTROL);
     348
    346349        /*
    347350         * First try use native kernel API for controlling VT-x.
     
    372375        if (RT_SUCCESS(g_HmR0.lLastError))
    373376        {
     377            /* Reread in case it was changed by SUPR0GetVmxUsability(). */
     378            g_HmR0.vmx.Msrs.u64FeatureCtrl = ASMRdMsr(MSR_IA32_FEATURE_CONTROL);
     379
    374380            /*
    375381             * Read all relevant registers and MSRs.
     
    377383            g_HmR0.vmx.u64HostCr4          = ASMGetCR4();
    378384            g_HmR0.vmx.u64HostEfer         = ASMRdMsr(MSR_K6_EFER);
    379             g_HmR0.vmx.Msrs.u64FeatureCtrl = ASMRdMsr(MSR_IA32_FEATURE_CONTROL);
    380385            g_HmR0.vmx.Msrs.u64BasicInfo   = ASMRdMsr(MSR_IA32_VMX_BASIC_INFO);
    381386            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