Changeset 49441 in vbox for trunk/src/VBox
- Timestamp:
- Nov 11, 2013 9:24:07 PM (11 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 2 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, -
trunk/src/VBox/VMM/VMMRC/PDMRCDevice.cpp
r46420 r49441 562 562 563 563 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 589 564 /** @interface_method_impl{PDMAPICHLPRC,pfnLock} */ 590 565 static DECLCALLBACK(int) pdmRCApicHlp_Lock(PPDMDEVINS pDevIns, int rc) … … 620 595 pdmRCApicHlp_ClearInterruptFF, 621 596 pdmRCApicHlp_CalcIrqTag, 622 pdmRCApicHlp_ChangeFeature,623 597 pdmRCApicHlp_Lock, 624 598 pdmRCApicHlp_Unlock,
Note:
See TracChangeset
for help on using the changeset viewer.