VirtualBox

Changeset 60400 in vbox


Ignore:
Timestamp:
Apr 8, 2016 5:06:17 PM (9 years ago)
Author:
vboxsync
Message:

VMM/APIC: No longer needed function.

File:
1 edited

Legend:

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

    r60398 r60400  
    375375
    376376/**
    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 could
    383  *          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     else
    395         pApicCpu->uApicBaseMsr |= MSR_APICBASE_XAPIC_ENABLE_BIT;
    396 }
    397 
    398 
    399 /**
    400377 * Initializes per-VCPU APIC to the state following a power-up or hardware
    401378 * reset.
     
    986963    PAPICDEV pApicDev = PDMINS_2_DATA(pDevIns, PAPICDEV);
    987964
    988     LogFlow(("APIC: apicR3Relocate: pDevIns=%p offDelta=%RGp\n", pDevIns, offDelta));
     965    LogFlow(("APIC: apicR3Relocate: pDevIns=%p offDelta=%RGi\n", pDevIns, offDelta));
    989966
    990967    pApicDev->pDevInsRC   = PDMDEVINS_2_RCPTR(pDevIns);
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