VirtualBox

Changeset 49441 in vbox for trunk/src/VBox


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

PDMAPICHLPR0/RC: Drop pfnChangeFeature.

Location:
trunk/src/VBox/VMM
Files:
2 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,
  • trunk/src/VBox/VMM/VMMRC/PDMRCDevice.cpp

    r46420 r49441  
    562562
    563563
    564 /** @interface_method_impl{PDMAPICHLPRC,pfnChangeFeature} */
    565 static DECLCALLBACK(void) pdmRCApicHlp_ChangeFeature(PPDMDEVINS pDevIns, PDMAPICVERSION enmVersion)
    566 {
    567     PDMDEV_ASSERT_DEVINS(pDevIns);
    568     LogFlow(("pdmRCApicHlp_ChangeFeature: caller=%p/%d: version=%d\n", pDevIns, pDevIns->iInstance, (int)enmVersion));
    569     switch (enmVersion)
    570     {
    571         case PDMAPICVERSION_NONE:
    572             CPUMClearGuestCpuIdFeature(pDevIns->Internal.s.pVMRC, CPUMCPUIDFEATURE_APIC);
    573             CPUMClearGuestCpuIdFeature(pDevIns->Internal.s.pVMRC, CPUMCPUIDFEATURE_X2APIC);
    574             break;
    575         case PDMAPICVERSION_APIC:
    576             CPUMSetGuestCpuIdFeature(pDevIns->Internal.s.pVMRC, CPUMCPUIDFEATURE_APIC);
    577             CPUMClearGuestCpuIdFeature(pDevIns->Internal.s.pVMRC, CPUMCPUIDFEATURE_X2APIC);
    578             break;
    579         case PDMAPICVERSION_X2APIC:
    580             CPUMSetGuestCpuIdFeature(pDevIns->Internal.s.pVMRC, CPUMCPUIDFEATURE_X2APIC);
    581             CPUMSetGuestCpuIdFeature(pDevIns->Internal.s.pVMRC, CPUMCPUIDFEATURE_APIC);
    582             break;
    583         default:
    584             AssertMsgFailed(("Unknown APIC version: %d\n", (int)enmVersion));
    585     }
    586 }
    587 
    588 
    589564/** @interface_method_impl{PDMAPICHLPRC,pfnLock} */
    590565static DECLCALLBACK(int) pdmRCApicHlp_Lock(PPDMDEVINS pDevIns, int rc)
     
    620595    pdmRCApicHlp_ClearInterruptFF,
    621596    pdmRCApicHlp_CalcIrqTag,
    622     pdmRCApicHlp_ChangeFeature,
    623597    pdmRCApicHlp_Lock,
    624598    pdmRCApicHlp_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