VirtualBox

Changeset 61738 in vbox


Ignore:
Timestamp:
Jun 17, 2016 8:47:23 AM (9 years ago)
Author:
vboxsync
Message:

VMM/APIC: Comment and nit.

File:
1 edited

Legend:

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

    r61619 r61738  
    285285        uApicBaseMsr |= MSR_IA32_APICBASE_EN;
    286286
     287        /*
     288         * While coming out of a reset the APIC is enabled and in xAPIC mode. If software had previously
     289         * disabled the APIC (which results in the CPUID bit being cleared as well) we re-enable it here.
     290         * See Intel spec. 10.12.5.1 "x2APIC States".
     291         */
    287292        /** @todo CPUID bits needs to be done on a per-VCPU basis! */
    288         CPUMSetGuestCpuIdFeature(pVCpu->CTX_SUFF(pVM), CPUMCPUIDFEATURE_APIC);
    289         LogRel(("APIC%u: Switched mode to xAPIC\n", pVCpu->idCpu));
     293        if (!CPUMGetGuestCpuIdFeature(pVCpu->CTX_SUFF(pVM), CPUMCPUIDFEATURE_APIC))
     294        {
     295            LogRel(("APIC%u: Resetting mode to xAPIC\n", pVCpu->idCpu));
     296            CPUMSetGuestCpuIdFeature(pVCpu->CTX_SUFF(pVM), CPUMCPUIDFEATURE_APIC);
     297        }
    290298    }
    291299
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