Changeset 61738 in vbox
- Timestamp:
- Jun 17, 2016 8:47:23 AM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/APIC.cpp
r61619 r61738 285 285 uApicBaseMsr |= MSR_IA32_APICBASE_EN; 286 286 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 */ 287 292 /** @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 } 290 298 } 291 299
Note:
See TracChangeset
for help on using the changeset viewer.