Changeset 60400 in vbox
- Timestamp:
- Apr 8, 2016 5:06:17 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR3/APIC.cpp
r60398 r60400 375 375 376 376 /** 377 * Sets the xAPIC enabled bit in the APIC base MSR.378 *379 * @param pVCpu The cross context virtual CPU structure.380 * @param fEnabled Whether to enable or disable the APIC.381 *382 * @remarks Warning!!! This does -not- touch the x2APIC enable bit and could383 * thus lead to invalid states if used incorrectly!384 */385 static void apicR3SetEnabled(PVMCPU pVCpu, bool fEnabled)386 {387 VMCPU_ASSERT_EMT_OR_NOT_RUNNING(pVCpu);388 PAPICCPU pApicCpu = VMCPU_TO_APICCPU(pVCpu);389 if (!fEnabled)390 {391 pApicCpu->uApicBaseMsr &= ~MSR_APICBASE_XAPIC_ENABLE_BIT;392 Assert(!(pApicCpu->uApicBaseMsr & MSR_APICBASE_XAPIC_ENABLE_BIT));393 }394 else395 pApicCpu->uApicBaseMsr |= MSR_APICBASE_XAPIC_ENABLE_BIT;396 }397 398 399 /**400 377 * Initializes per-VCPU APIC to the state following a power-up or hardware 401 378 * reset. … … 986 963 PAPICDEV pApicDev = PDMINS_2_DATA(pDevIns, PAPICDEV); 987 964 988 LogFlow(("APIC: apicR3Relocate: pDevIns=%p offDelta=%RG p\n", pDevIns, offDelta));965 LogFlow(("APIC: apicR3Relocate: pDevIns=%p offDelta=%RGi\n", pDevIns, offDelta)); 989 966 990 967 pApicDev->pDevInsRC = PDMDEVINS_2_RCPTR(pDevIns);
Note:
See TracChangeset
for help on using the changeset viewer.