Changeset 49441 in vbox for trunk/src/VBox/VMM/VMMR0
- Timestamp:
- Nov 11, 2013 9:24:07 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/VMMR0/PDMR0Device.cpp
r48442 r49441 599 599 600 600 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 626 601 /** @interface_method_impl{PDMAPICHLPR0,pfnLock} */ 627 602 static DECLCALLBACK(int) pdmR0ApicHlp_Lock(PPDMDEVINS pDevIns, int rc) … … 657 632 pdmR0ApicHlp_ClearInterruptFF, 658 633 pdmR0ApicHlp_CalcIrqTag, 659 pdmR0ApicHlp_ChangeFeature,660 634 pdmR0ApicHlp_Lock, 661 635 pdmR0ApicHlp_Unlock,
Note:
See TracChangeset
for help on using the changeset viewer.