Changeset 12976 in vbox for trunk/src/VBox/VMM
- Timestamp:
- Oct 3, 2008 10:40:40 PM (16 years ago)
- Location:
- trunk/src/VBox/VMM
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/VMM/PDMDevice.cpp
r12975 r12976 236 236 static DECLCALLBACK(void) pdmR3ApicHlp_SetInterruptFF(PPDMDEVINS pDevIns, VMCPUID idCpu); 237 237 static DECLCALLBACK(void) pdmR3ApicHlp_ClearInterruptFF(PPDMDEVINS pDevIns, VMCPUID idCpu); 238 static DECLCALLBACK(void) pdmR3ApicHlp_ChangeFeature(PPDMDEVINS pDevIns, PDMAPICVERSION version);238 static DECLCALLBACK(void) pdmR3ApicHlp_ChangeFeature(PPDMDEVINS pDevIns, PDMAPICVERSION enmVersion); 239 239 static DECLCALLBACK(int) pdmR3ApicHlp_Lock(PPDMDEVINS pDevIns, int rc); 240 240 static DECLCALLBACK(void) pdmR3ApicHlp_Unlock(PPDMDEVINS pDevIns); … … 4171 4171 4172 4172 /** @copydoc PDMAPICHLPR3::pfnChangeFeature */ 4173 static DECLCALLBACK(void) pdmR3ApicHlp_ChangeFeature(PPDMDEVINS pDevIns, PDMAPICVERSION version)4173 static DECLCALLBACK(void) pdmR3ApicHlp_ChangeFeature(PPDMDEVINS pDevIns, PDMAPICVERSION enmVersion) 4174 4174 { 4175 4175 PDMDEV_ASSERT_DEVINS(pDevIns); 4176 4176 LogFlow(("pdmR3ApicHlp_ChangeFeature: caller='%s'/%d: version=%d\n", 4177 pDevIns->pDevReg->szDeviceName, pDevIns->iInstance, (int) version));4178 switch ( version)4179 { 4180 case APIC_NONE:4177 pDevIns->pDevReg->szDeviceName, pDevIns->iInstance, (int)enmVersion)); 4178 switch (enmVersion) 4179 { 4180 case PDMAPICVERSION_NONE: 4181 4181 CPUMClearGuestCpuIdFeature(pDevIns->Internal.s.pVMR3, CPUMCPUIDFEATURE_APIC); 4182 4182 CPUMClearGuestCpuIdFeature(pDevIns->Internal.s.pVMR3, CPUMCPUIDFEATURE_X2APIC); 4183 4183 break; 4184 case APIC_XAPIC:4184 case PDMAPICVERSION_APIC: 4185 4185 CPUMSetGuestCpuIdFeature(pDevIns->Internal.s.pVMR3, CPUMCPUIDFEATURE_APIC); 4186 4186 CPUMClearGuestCpuIdFeature(pDevIns->Internal.s.pVMR3, CPUMCPUIDFEATURE_X2APIC); 4187 4187 break; 4188 case APIC_X2APIC:4188 case PDMAPICVERSION_X2APIC: 4189 4189 CPUMSetGuestCpuIdFeature(pDevIns->Internal.s.pVMR3, CPUMCPUIDFEATURE_X2APIC); 4190 4190 CPUMSetGuestCpuIdFeature(pDevIns->Internal.s.pVMR3, CPUMCPUIDFEATURE_APIC); 4191 4191 break; 4192 4192 default: 4193 AssertMsgFailed(("Unknown APIC version: %d\n", (int) version));4193 AssertMsgFailed(("Unknown APIC version: %d\n", (int)enmVersion)); 4194 4194 } 4195 4195 } -
trunk/src/VBox/VMM/VMMGC/PDMGCDevice.cpp
r12972 r12976 101 101 static DECLCALLBACK(void) pdmRCApicHlp_SetInterruptFF(PPDMDEVINS pDevIns, VMCPUID idCpu); 102 102 static DECLCALLBACK(void) pdmRCApicHlp_ClearInterruptFF(PPDMDEVINS pDevIns, VMCPUID idCpu); 103 static DECLCALLBACK(void) pdmRCApicHlp_ChangeFeature(PPDMDEVINS pDevIns, PDMAPICVERSION version);103 static DECLCALLBACK(void) pdmRCApicHlp_ChangeFeature(PPDMDEVINS pDevIns, PDMAPICVERSION enmVersion); 104 104 static DECLCALLBACK(int) pdmRCApicHlp_Lock(PPDMDEVINS pDevIns, int rc); 105 105 static DECLCALLBACK(void) pdmRCApicHlp_Unlock(PPDMDEVINS pDevIns); … … 415 415 416 416 /** @copydoc PDMAPICHLPRC::pfnChangeFeature */ 417 static DECLCALLBACK(void) pdmRCApicHlp_ChangeFeature(PPDMDEVINS pDevIns, PDMAPICVERSION version)418 { 419 PDMDEV_ASSERT_DEVINS(pDevIns); 420 LogFlow(("pdmRCApicHlp_ChangeFeature: caller=%p/%d: version=%d\n", pDevIns, pDevIns->iInstance, version));421 switch ( version)417 static DECLCALLBACK(void) pdmRCApicHlp_ChangeFeature(PPDMDEVINS pDevIns, PDMAPICVERSION enmVersion) 418 { 419 PDMDEV_ASSERT_DEVINS(pDevIns); 420 LogFlow(("pdmRCApicHlp_ChangeFeature: caller=%p/%d: version=%d\n", pDevIns, pDevIns->iInstance, (int)enmVersion)); 421 switch (enmVersion) 422 422 { 423 case APIC_NONE:423 case PDMAPICVERSION_NONE: 424 424 CPUMClearGuestCpuIdFeature(pDevIns->Internal.s.pVMRC, CPUMCPUIDFEATURE_APIC); 425 425 CPUMClearGuestCpuIdFeature(pDevIns->Internal.s.pVMRC, CPUMCPUIDFEATURE_X2APIC); 426 426 break; 427 case APIC_XAPIC:427 case PDMAPICVERSION_APIC: 428 428 CPUMSetGuestCpuIdFeature(pDevIns->Internal.s.pVMRC, CPUMCPUIDFEATURE_APIC); 429 429 CPUMClearGuestCpuIdFeature(pDevIns->Internal.s.pVMRC, CPUMCPUIDFEATURE_X2APIC); 430 430 break; 431 case APIC_X2APIC:431 case PDMAPICVERSION_X2APIC: 432 432 CPUMSetGuestCpuIdFeature(pDevIns->Internal.s.pVMRC, CPUMCPUIDFEATURE_X2APIC); 433 433 CPUMSetGuestCpuIdFeature(pDevIns->Internal.s.pVMRC, CPUMCPUIDFEATURE_APIC); 434 434 break; 435 435 default: 436 AssertMsgFailed(("Unknown APIC version: %d\n", (int) version));436 AssertMsgFailed(("Unknown APIC version: %d\n", (int)enmVersion)); 437 437 } 438 438 } -
trunk/src/VBox/VMM/VMMR0/PDMR0Device.cpp
r12972 r12976 101 101 static DECLCALLBACK(void) pdmR0ApicHlp_SetInterruptFF(PPDMDEVINS pDevIns, VMCPUID idCpu); 102 102 static DECLCALLBACK(void) pdmR0ApicHlp_ClearInterruptFF(PPDMDEVINS pDevIns, VMCPUID idCpu); 103 static DECLCALLBACK(void) pdmR0ApicHlp_ChangeFeature(PPDMDEVINS pDevIns, PDMAPICVERSION version);103 static DECLCALLBACK(void) pdmR0ApicHlp_ChangeFeature(PPDMDEVINS pDevIns, PDMAPICVERSION enmVersion); 104 104 static DECLCALLBACK(int) pdmR0ApicHlp_Lock(PPDMDEVINS pDevIns, int rc); 105 105 static DECLCALLBACK(void) pdmR0ApicHlp_Unlock(PPDMDEVINS pDevIns); … … 420 420 421 421 /** @copydoc PDMAPICHLPR0::pfnChangeFeature */ 422 static DECLCALLBACK(void) pdmR0ApicHlp_ChangeFeature(PPDMDEVINS pDevIns, PDMAPICVERSION version)423 { 424 PDMDEV_ASSERT_DEVINS(pDevIns); 425 LogFlow(("pdmR0ApicHlp_ChangeFeature: caller=%p/%d: version=%d\n", pDevIns, pDevIns->iInstance, version));426 switch ( version)422 static DECLCALLBACK(void) pdmR0ApicHlp_ChangeFeature(PPDMDEVINS pDevIns, PDMAPICVERSION enmVersion) 423 { 424 PDMDEV_ASSERT_DEVINS(pDevIns); 425 LogFlow(("pdmR0ApicHlp_ChangeFeature: caller=%p/%d: version=%d\n", pDevIns, pDevIns->iInstance, (int)enmVersion)); 426 switch (enmVersion) 427 427 { 428 case APIC_NONE:428 case PDMAPICVERSION_NONE: 429 429 CPUMClearGuestCpuIdFeature(pDevIns->Internal.s.pVMR0, CPUMCPUIDFEATURE_APIC); 430 430 CPUMClearGuestCpuIdFeature(pDevIns->Internal.s.pVMR0, CPUMCPUIDFEATURE_X2APIC); 431 431 break; 432 case APIC_XAPIC:432 case PDMAPICVERSION_APIC: 433 433 CPUMSetGuestCpuIdFeature(pDevIns->Internal.s.pVMR0, CPUMCPUIDFEATURE_APIC); 434 434 CPUMClearGuestCpuIdFeature(pDevIns->Internal.s.pVMR0, CPUMCPUIDFEATURE_X2APIC); 435 435 break; 436 case APIC_X2APIC:436 case PDMAPICVERSION_X2APIC: 437 437 CPUMSetGuestCpuIdFeature(pDevIns->Internal.s.pVMR0, CPUMCPUIDFEATURE_X2APIC); 438 438 CPUMSetGuestCpuIdFeature(pDevIns->Internal.s.pVMR0, CPUMCPUIDFEATURE_APIC); 439 439 break; 440 440 default: 441 AssertMsgFailed(("Unknown APIC version: %d\n", (int) version));441 AssertMsgFailed(("Unknown APIC version: %d\n", (int)enmVersion)); 442 442 } 443 443 }
Note:
See TracChangeset
for help on using the changeset viewer.