VirtualBox

Changeset 49441 in vbox for trunk/src/VBox/VMM/VMMR0


Ignore:
Timestamp:
Nov 11, 2013 9:24:07 PM (11 years ago)
Author:
vboxsync
Message:

PDMAPICHLPR0/RC: Drop pfnChangeFeature.

File:
1 edited

Legend:

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

    r48442 r49441  
    599599
    600600
    601 /** @interface_method_impl{PDMAPICHLPR0,pfnChangeFeature} */
    602 static DECLCALLBACK(void) pdmR0ApicHlp_ChangeFeature(PPDMDEVINS pDevIns, PDMAPICVERSION enmVersion)
    603 {
    604     PDMDEV_ASSERT_DEVINS(pDevIns);
    605     LogFlow(("pdmR0ApicHlp_ChangeFeature: caller=%p/%d: version=%d\n", pDevIns, pDevIns->iInstance, (int)enmVersion));
    606     switch (enmVersion)
    607     {
    608         case PDMAPICVERSION_NONE:
    609             CPUMClearGuestCpuIdFeature(pDevIns->Internal.s.pVMR0, CPUMCPUIDFEATURE_APIC);
    610             CPUMClearGuestCpuIdFeature(pDevIns->Internal.s.pVMR0, CPUMCPUIDFEATURE_X2APIC);
    611             break;
    612         case PDMAPICVERSION_APIC:
    613             CPUMSetGuestCpuIdFeature(pDevIns->Internal.s.pVMR0, CPUMCPUIDFEATURE_APIC);
    614             CPUMClearGuestCpuIdFeature(pDevIns->Internal.s.pVMR0, CPUMCPUIDFEATURE_X2APIC);
    615             break;
    616         case PDMAPICVERSION_X2APIC:
    617             CPUMSetGuestCpuIdFeature(pDevIns->Internal.s.pVMR0, CPUMCPUIDFEATURE_X2APIC);
    618             CPUMSetGuestCpuIdFeature(pDevIns->Internal.s.pVMR0, CPUMCPUIDFEATURE_APIC);
    619             break;
    620         default:
    621             AssertMsgFailed(("Unknown APIC version: %d\n", (int)enmVersion));
    622     }
    623 }
    624 
    625 
    626601/** @interface_method_impl{PDMAPICHLPR0,pfnLock} */
    627602static DECLCALLBACK(int) pdmR0ApicHlp_Lock(PPDMDEVINS pDevIns, int rc)
     
    657632    pdmR0ApicHlp_ClearInterruptFF,
    658633    pdmR0ApicHlp_CalcIrqTag,
    659     pdmR0ApicHlp_ChangeFeature,
    660634    pdmR0ApicHlp_Lock,
    661635    pdmR0ApicHlp_Unlock,
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