Changeset 64626 in vbox for trunk/src/VBox
- Timestamp:
- Nov 10, 2016 10:31:39 AM (8 years ago)
- Location:
- trunk/src/VBox
- Files:
-
- 2 deleted
- 26 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Makefile.kmk
r64509 r64626 1043 1043 IN_VBOXDD2 \ 1044 1044 $(if $(VBOX_WITH_PXE_ROM),VBOX_WITH_PXE_ROM,) \ 1045 $(if $(VBOX_WITH_NEW_APIC),VBOX_WITH_NEW_APIC,) \1046 1045 $(if $(VBOX_WITH_NEW_IOAPIC),VBOX_WITH_NEW_IOAPIC,) 1047 1046 VBoxDD2_INCS := \ … … 1051 1050 build/VBoxDD2.cpp \ 1052 1051 PC/DevLPC.cpp \ 1053 $(if $(VBOX_WITH_NEW_APIC),,PC/DevAPIC.cpp) \ 1054 $(if $(VBOX_WITH_NEW_IOAPIC),,PC/DevIoApic_Old.cpp) 1052 $(if $(VBOX_WITH_NEW_IOAPIC),,PC/DevIoApic_Old.cpp) 1055 1053 VBoxDD2_LIBS = \ 1056 1054 $(PATH_STAGE_LIB)/PcBiosBin$(VBOX_SUFF_LIB) \ … … 1213 1211 VBoxDD2RC_SOURCES = \ 1214 1212 $(if $(VBOX_WITH_NEW_IOAPIC),,PC/DevIoApic_Old.cpp) \ 1215 $(if $(VBOX_WITH_NEW_APIC),,PC/DevAPIC.cpp) \1216 1213 build/VBoxDD2R0.cpp # Dummy to prevent linking errors. 1217 1214 if1of ($(VBOX_LDR_FMT32), pe lx) … … 1232 1229 VBoxDD2R0_SOURCES = \ 1233 1230 build/VBoxDD2R0.cpp \ 1234 $(if $(VBOX_WITH_NEW_IOAPIC),,PC/DevIoApic_Old.cpp) \ 1235 $(if $(VBOX_WITH_NEW_APIC),,PC/DevAPIC.cpp) 1231 $(if $(VBOX_WITH_NEW_IOAPIC),,PC/DevIoApic_Old.cpp) 1236 1232 if1of ($(VBOX_LDR_FMT), pe lx) 1237 1233 VBoxDD2R0_LIBS = \ -
trunk/src/VBox/Devices/build/VBoxDD2.cpp
r62516 r64626 63 63 int rc; 64 64 65 #ifndef VBOX_WITH_NEW_APIC66 rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceAPIC);67 if (RT_FAILURE(rc))68 return rc;69 #endif70 65 #ifndef VBOX_WITH_NEW_IOAPIC 71 66 rc = pCallbacks->pfnRegister(pCallbacks, &g_DeviceIOAPIC); -
trunk/src/VBox/Devices/build/VBoxDD2.h
r62516 r64626 61 61 #endif /* !IN_VBOXDD2 */ 62 62 63 #ifndef VBOX_WITH_NEW_APIC64 extern const PDMDEVREG g_DeviceAPIC;65 #endif66 63 #ifndef VBOX_WITH_NEW_IOAPIC 67 64 extern const PDMDEVREG g_DeviceIOAPIC; -
trunk/src/VBox/Devices/testcase/Makefile.kmk
r62576 r64626 35 35 $(if $(VBOX_WITH_HGSMI),VBOX_WITH_HGSMI,) \ 36 36 $(if $(VBOX_WITH_LSILOGIC),VBOX_WITH_LSILOGIC,) \ 37 $(if $(VBOX_WITH_NEW_APIC),VBOX_WITH_NEW_APIC,) \38 37 $(if $(VBOX_WITH_NEW_IOAPIC),VBOX_WITH_NEW_IOAPIC,) \ 39 38 $(if $(VBOX_WITH_NVME_IMPL),VBOX_WITH_NVME_IMPL,) \ … … 76 75 $(VBOX_PATH_DEVICES_SRC)/Bus \ 77 76 $(VBOX_DEVICES_TEST_OUT_DIR) 78 ifdef VBOX_WITH_NEW_APIC79 77 tstDeviceStructSizeRC_INCS += $(VBOX_PATH_VMM_DEVICES_SRC) 80 endif81 78 endif # VBOX_WITH_RAW_MODE 82 79 … … 98 95 tstDeviceStructSize.cpp_DEPS = $(VBOX_DEVICES_TEST_OUT_DIR)/tstDeviceStructSizeRC.h 99 96 endif 100 ifdef VBOX_WITH_NEW_APIC101 97 tstDeviceStructSize_INCS += $(VBOX_PATH_VMM_DEVICES_SRC) 102 endif103 98 104 99 # -
trunk/src/VBox/Devices/testcase/tstDeviceStructSize.cpp
r64596 r64626 57 57 #include "../PC/DevRTC.cpp" 58 58 # undef LOG_GROUP 59 #ifdef VBOX_WITH_NEW_APIC60 59 # include "../../VMM/VMMR3/APIC.cpp" 61 #else62 # include "../PC/DevAPIC.cpp"63 #endif64 60 #undef LOG_GROUP 65 61 #ifdef VBOX_WITH_NEW_IOAPIC … … 289 285 CHECK_MEMBER_ALIGNMENT(AHCI, lock, 8); 290 286 CHECK_MEMBER_ALIGNMENT(AHCIPort, StatDMA, 8); 291 #ifdef VBOX_WITH_NEW_APIC 287 292 288 CHECK_MEMBER_ALIGNMENT(APICDEV, pDevInsR0, 8); 293 289 CHECK_MEMBER_ALIGNMENT(APICDEV, pDevInsRC, 8); 294 #else 295 # ifdef VBOX_WITH_STATISTICS 296 CHECK_MEMBER_ALIGNMENT(APICDeviceInfo, StatMMIOReadGC, 8); 297 # endif 298 #endif 290 299 291 CHECK_MEMBER_ALIGNMENT(ATADevState, cTotalSectors, 8); 300 292 CHECK_MEMBER_ALIGNMENT(ATADevState, StatATADMA, 8); -
trunk/src/VBox/Devices/testcase/tstDeviceStructSizeRC.cpp
r64572 r64626 59 59 #include "../PC/DevRTC.cpp" 60 60 # undef LOG_GROUP 61 #ifdef VBOX_WITH_NEW_APIC62 61 # include "../../VMM/VMMR3/APIC.cpp" 63 #else64 # include "../PC/DevAPIC.cpp"65 #endif66 62 #undef LOG_GROUP 67 63 #ifdef VBOX_WITH_NEW_IOAPIC … … 693 689 GEN_CHECK_OFF(RTCSTATE, CurHintPeriod); 694 690 695 #ifdef VBOX_WITH_NEW_APIC696 691 GEN_CHECK_SIZE(APIC); 697 692 GEN_CHECK_OFF(APIC, pApicDevR0); … … 752 747 GEN_CHECK_OFF(APICCPU, StatIcrFullWrite); 753 748 # endif /* VBOX_WITH_STATISTICS */ 754 #else755 /* PC/DevAPIC.cpp */756 GEN_CHECK_SIZE(APICState);757 GEN_CHECK_OFF(APICState, apicbase);758 GEN_CHECK_OFF(APICState, id);759 GEN_CHECK_OFF(APICState, arb_id);760 GEN_CHECK_OFF(APICState, tpr);761 GEN_CHECK_OFF(APICState, spurious_vec);762 GEN_CHECK_OFF(APICState, log_dest);763 GEN_CHECK_OFF(APICState, dest_mode);764 GEN_CHECK_OFF(APICState, isr);765 GEN_CHECK_OFF(APICState, isr.au32Bitmap[1]);766 GEN_CHECK_OFF(APICState, tmr);767 GEN_CHECK_OFF(APICState, tmr.au32Bitmap[1]);768 GEN_CHECK_OFF(APICState, irr);769 GEN_CHECK_OFF(APICState, irr.au32Bitmap[1]);770 GEN_CHECK_OFF(APICState, lvt);771 GEN_CHECK_OFF(APICState, lvt[1]);772 GEN_CHECK_OFF(APICState, lvt[APIC_LVT_NB - 1]);773 GEN_CHECK_OFF(APICState, esr);774 GEN_CHECK_OFF(APICState, icr);775 GEN_CHECK_OFF(APICState, icr[1]);776 GEN_CHECK_OFF(APICState, divide_conf);777 GEN_CHECK_OFF(APICState, count_shift);778 GEN_CHECK_OFF(APICState, initial_count);779 GEN_CHECK_OFF(APICState, initial_count_load_time);780 GEN_CHECK_OFF(APICState, next_time);781 GEN_CHECK_OFF(APICState, pTimerR3);782 GEN_CHECK_OFF(APICState, pTimerR0);783 GEN_CHECK_OFF(APICState, pTimerRC);784 GEN_CHECK_OFF(APICState, fTimerArmed);785 GEN_CHECK_OFF(APICState, uHintedInitialCount);786 GEN_CHECK_OFF(APICState, uHintedCountShift);787 GEN_CHECK_OFF(APICState, pszDesc);788 # ifdef VBOX_WITH_STATISTICS789 GEN_CHECK_OFF(APICState, StatTimerSetInitialCount);790 GEN_CHECK_OFF(APICState, StatTimerSetLvtNoRelevantChange);791 # endif792 793 GEN_CHECK_SIZE(APICDeviceInfo);794 GEN_CHECK_OFF(APICDeviceInfo, pDevInsR3);795 GEN_CHECK_OFF(APICDeviceInfo, pApicHlpR3);796 GEN_CHECK_OFF(APICDeviceInfo, paLapicsR3);797 GEN_CHECK_OFF(APICDeviceInfo, pCritSectR3);798 GEN_CHECK_OFF(APICDeviceInfo, pDevInsR0);799 GEN_CHECK_OFF(APICDeviceInfo, pApicHlpR0);800 GEN_CHECK_OFF(APICDeviceInfo, paLapicsR0);801 GEN_CHECK_OFF(APICDeviceInfo, pCritSectR0);802 GEN_CHECK_OFF(APICDeviceInfo, pDevInsRC);803 GEN_CHECK_OFF(APICDeviceInfo, pApicHlpRC);804 GEN_CHECK_OFF(APICDeviceInfo, paLapicsRC);805 GEN_CHECK_OFF(APICDeviceInfo, pCritSectRC);806 GEN_CHECK_OFF(APICDeviceInfo, enmMode);807 GEN_CHECK_OFF(APICDeviceInfo, cTPRPatchAttempts);808 GEN_CHECK_OFF(APICDeviceInfo, cCpus);809 # ifdef VBOX_WITH_STATISTICS810 GEN_CHECK_OFF(APICDeviceInfo, StatMMIOReadGC);811 GEN_CHECK_OFF(APICDeviceInfo, StatMMIOWriteHC);812 # endif813 #endif /* VBOX_WITH_NEW_APIC */814 749 815 750 #ifdef VBOX_WITH_NEW_IOAPIC -
trunk/src/VBox/VMM/Makefile.kmk
r64559 r64626 88 88 VMM_COMMON_DEFS += VBOX_WITH_MORE_RING0_MEM_MAPPINGS 89 89 endif 90 ifdef VBOX_WITH_NEW_APIC91 VMM_COMMON_DEFS += VBOX_WITH_NEW_APIC92 endif93 90 ifdef VBOX_WITH_NEW_IOAPIC 94 91 VMM_COMMON_DEFS += VBOX_WITH_NEW_IOAPIC … … 145 142 VBoxVMM_SOURCES = \ 146 143 VBoxVMM.d \ 144 VMMR3/APIC.cpp \ 147 145 VMMR3/CFGM.cpp \ 148 146 VMMR3/CPUM.cpp \ … … 225 223 VMMR3/PATMR3Dbg.cpp \ 226 224 ,) \ 225 VMMAll/APICAll.cpp \ 227 226 VMMAll/CPUMAllRegs.cpp \ 228 227 VMMAll/CPUMAllMsrs.cpp \ … … 282 281 VMMAll/PDMAllNetShaper.cpp 283 282 endif 284 ifdef VBOX_WITH_NEW_APIC285 VBoxVMM_SOURCES += \286 VMMR3/APIC.cpp \287 VMMAll/APICAll.cpp288 endif289 283 ifdef VBOX_WITH_REM 290 284 VBoxVMM_SOURCES += \ … … 542 536 VMMRZ/PGMRZDynMap.cpp \ 543 537 VMMRZ/VMMRZ.cpp \ 538 VMMAll/APICAll.cpp \ 544 539 VMMAll/CPUMAllRegs.cpp \ 545 540 VMMAll/CPUMAllMsrs.cpp \ … … 587 582 VMMRC_SOURCES += $(VMMRCImp_0_OUTDIR)/VMMRC.def 588 583 endif 589 ifdef VBOX_WITH_NEW_APIC590 VMMRC_SOURCES += \591 VMMAll/APICAll.cpp592 endif593 584 ifdef VBOX_WITH_REM 594 585 VMMRC_SOURCES += \ … … 691 682 VMMRZ/DBGFRZ.cpp \ 692 683 VMMRZ/VMMRZ.cpp \ 684 VMMAll/APICAll.cpp \ 693 685 VMMAll/CPUMAllRegs.cpp \ 694 686 VMMAll/CPUMAllMsrs.cpp \ … … 741 733 VMMAll/PDMAllNetShaper.cpp 742 734 endif 743 ifdef VBOX_WITH_NEW_APIC744 VMMR0_SOURCES += \745 VMMAll/APICAll.cpp746 endif747 735 ifdef VBOX_WITH_REM 748 736 VMMR0_SOURCES += \ -
trunk/src/VBox/VMM/VMMAll/AllPdbTypeHack.cpp
r62245 r64626 46 46 #include "../include/DBGFInternal.h" 47 47 #include "../include/GIMInternal.h" 48 #ifdef VBOX_WITH_NEW_APIC 49 # include "../include/APICInternal.h" 50 #endif 48 #include "../include/APICInternal.h" 51 49 #include "../include/STAMInternal.h" 52 50 #include "../include/VMInternal.h" -
trunk/src/VBox/VMM/VMMAll/PDMAll.cpp
r64597 r64626 26 26 #include <VBox/vmm/vm.h> 27 27 #include <VBox/err.h> 28 #ifdef VBOX_WITH_NEW_APIC 29 # include <VBox/vmm/apic.h> 30 #endif 28 #include <VBox/vmm/apic.h> 31 29 32 30 #include <VBox/log.h> … … 56 54 { 57 55 PVM pVM = pVCpu->CTX_SUFF(pVM); 58 59 #ifndef VBOX_WITH_NEW_APIC60 pdmLock(pVM);61 #endif62 56 63 57 /* … … 78 72 if (rc == VINF_SUCCESS) 79 73 VBOXVMM_PDM_IRQ_GET(pVCpu, RT_LOWORD(uTagSrc), RT_HIWORD(uTagSrc), uVector); 80 #ifndef VBOX_WITH_NEW_APIC81 pdmUnlock(pVM);82 #endif83 74 return rc; 84 75 } … … 87 78 } 88 79 89 #ifdef VBOX_WITH_NEW_APIC90 80 pdmLock(pVM); 91 #endif92 81 93 82 /* … … 295 284 { 296 285 Assert(pVM->pdm.s.Apic.CTX_SUFF(pfnSetBaseMsr)); 297 #ifndef VBOX_WITH_NEW_APIC298 pdmLock(pVM);299 #endif300 286 VBOXSTRICTRC rcStrict = pVM->pdm.s.Apic.CTX_SUFF(pfnSetBaseMsr)(pVM->pdm.s.Apic.CTX_SUFF(pDevIns), pVCpu, u64Base); 301 287 … … 305 291 pCtx->msrApicBase = pVM->pdm.s.Apic.CTX_SUFF(pfnGetBaseMsr)(pVM->pdm.s.Apic.CTX_SUFF(pDevIns), pVCpu); 306 292 307 #ifndef VBOX_WITH_NEW_APIC308 pdmUnlock(pVM);309 #endif310 293 return rcStrict; 311 294 } … … 336 319 { 337 320 Assert(pVM->pdm.s.Apic.CTX_SUFF(pfnGetBaseMsr)); 338 #ifdef VBOX_WITH_NEW_APIC339 321 VMCPU_ASSERT_EMT_OR_NOT_RUNNING(pVCpu); 340 322 *pu64Base = pVM->pdm.s.Apic.CTX_SUFF(pfnGetBaseMsr)(pVM->pdm.s.Apic.CTX_SUFF(pDevIns), pVCpu); 341 #else342 pdmLock(pVM);343 *pu64Base = pVM->pdm.s.Apic.CTX_SUFF(pfnGetBaseMsr)(pVM->pdm.s.Apic.CTX_SUFF(pDevIns), pVCpu);344 pdmUnlock(pVM);345 #endif346 323 return VINF_SUCCESS; 347 324 } … … 374 351 { 375 352 Assert(pVM->pdm.s.Apic.CTX_SUFF(pfnSetTpr)); 376 #ifdef VBOX_WITH_NEW_APIC377 353 pVM->pdm.s.Apic.CTX_SUFF(pfnSetTpr)(pVM->pdm.s.Apic.CTX_SUFF(pDevIns), pVCpu, u8TPR); 378 #else379 pdmLock(pVM);380 pVM->pdm.s.Apic.CTX_SUFF(pfnSetTpr)(pVM->pdm.s.Apic.CTX_SUFF(pDevIns), pVCpu, u8TPR);381 pdmUnlock(pVM);382 #endif383 354 return VINF_SUCCESS; 384 355 } -
trunk/src/VBox/VMM/VMMR0/HMSVMR0.cpp
r62606 r64626 30 30 #include <VBox/vmm/tm.h> 31 31 #include <VBox/vmm/gim.h> 32 #ifdef VBOX_WITH_NEW_APIC 33 # include <VBox/vmm/apic.h> 34 #endif 32 #include <VBox/vmm/apic.h> 35 33 #include "HMInternal.h" 36 34 #include <VBox/vmm/vm.h> … … 2628 2626 PSVMVMCB pVmcb = (PSVMVMCB)pVCpu->hm.s.svm.pvVmcb; 2629 2627 2630 #ifdef VBOX_WITH_NEW_APIC2631 2628 if (VMCPU_FF_TEST_AND_CLEAR(pVCpu, VMCPU_FF_UPDATE_APIC)) 2632 2629 APICUpdatePendingInterrupts(pVCpu); 2633 #endif2634 2630 2635 2631 SVMEVENT Event; -
trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp
r64068 r64626 32 32 #include <VBox/vmm/tm.h> 33 33 #include <VBox/vmm/gim.h> 34 #include <VBox/vmm/apic.h> 34 35 #ifdef VBOX_WITH_REM 35 36 # include <VBox/vmm/rem.h> 36 #endif37 #ifdef VBOX_WITH_NEW_APIC38 # include <VBox/vmm/apic.h>39 37 #endif 40 38 #include "HMInternal.h" … … 2329 2327 } 2330 2328 2331 #ifdef VBOX_WITH_NEW_APIC2332 2329 #if 0 2333 2330 /* Enable posted-interrupt processing. */ … … 2338 2335 val |= VMX_VMCS_CTRL_PIN_EXEC_POSTED_INTR; 2339 2336 } 2340 #endif2341 2337 #endif 2342 2338 … … 2508 2504 val |= VMX_VMCS_CTRL_PROC_EXEC2_UNRESTRICTED_GUEST; /* Enable Unrestricted Execution. */ 2509 2505 2510 #ifdef VBOX_WITH_NEW_APIC2511 2506 #if 0 2512 2507 if (pVM->hm.s.fVirtApicRegs) … … 2518 2513 val |= VMX_VMCS_CTRL_PROC_EXEC2_VIRT_INTR_DELIVERY; /* Enable virtual-interrupt delivery. */ 2519 2514 } 2520 #endif2521 2515 #endif 2522 2516 … … 7541 7535 Assert(!TRPMHasTrap(pVCpu)); 7542 7536 7543 #ifdef VBOX_WITH_NEW_APIC7544 7537 if (VMCPU_FF_TEST_AND_CLEAR(pVCpu, VMCPU_FF_UPDATE_APIC)) 7545 7538 APICUpdatePendingInterrupts(pVCpu); 7546 #endif7547 7539 7548 7540 /* -
trunk/src/VBox/VMM/VMMR0/VMMR0.cpp
r63560 r64626 34 34 # include <VBox/vmm/pdmpci.h> 35 35 #endif 36 #ifdef VBOX_WITH_NEW_APIC 37 # include <VBox/vmm/apic.h> 38 #endif 36 #include <VBox/vmm/apic.h> 39 37 40 38 #include <VBox/vmm/gvmm.h> -
trunk/src/VBox/VMM/VMMR3/CPUM.cpp
r64066 r64626 1159 1159 */ 1160 1160 PDMApicGetBaseMsr(pVCpu, &pCtx->msrApicBase, true /* fIgnoreErrors */); 1161 #ifdef VBOX_WITH_NEW_APIC1162 1161 LogRel(("CPUM%u: Cached APIC base MSR = %#RX64\n", pVCpu->idCpu, pVCpu->cpum.s.Guest.msrApicBase)); 1163 #endif1164 1162 } 1165 1163 … … 1611 1609 /* Cache the local APIC base from the APIC device. During init. this is done in CPUMR3ResetCpu(). */ 1612 1610 PDMApicGetBaseMsr(pVCpu, &pVCpu->cpum.s.Guest.msrApicBase, true /* fIgnoreErrors */); 1613 #ifdef VBOX_WITH_NEW_APIC1614 1611 LogRel(("CPUM%u: Cached APIC base MSR = %#RX64\n", idCpu, pVCpu->cpum.s.Guest.msrApicBase)); 1615 #endif1616 1612 1617 1613 /* During init. this is done in CPUMR3InitCompleted(). */ … … 2535 2531 PVMCPU pVCpu = &pVM->aCpus[i]; 2536 2532 PDMApicGetBaseMsr(pVCpu, &pVCpu->cpum.s.Guest.msrApicBase, true /* fIgnoreErrors */); 2537 #ifdef VBOX_WITH_NEW_APIC2538 2533 LogRel(("CPUM%u: Cached APIC base MSR = %#RX64\n", i, pVCpu->cpum.s.Guest.msrApicBase)); 2539 #endif2540 2534 } 2541 2535 break; -
trunk/src/VBox/VMM/VMMR3/EM.cpp
r63560 r64626 50 50 # include <VBox/vmm/rem.h> 51 51 #endif 52 #ifdef VBOX_WITH_NEW_APIC 53 # include <VBox/vmm/apic.h> 54 #endif 52 #include <VBox/vmm/apic.h> 55 53 #include <VBox/vmm/tm.h> 56 54 #include <VBox/vmm/mm.h> … … 1933 1931 TMR3TimerQueuesDo(pVM); 1934 1932 1935 #ifdef VBOX_WITH_NEW_APIC1936 1933 /* 1937 1934 * Pick up asynchronously posted interrupts into the APIC. … … 1939 1936 if (VMCPU_FF_TEST_AND_CLEAR(pVCpu, VMCPU_FF_UPDATE_APIC)) 1940 1937 APICUpdatePendingInterrupts(pVCpu); 1941 #endif1942 1938 1943 1939 /* … … 2602 2598 if (rc == VINF_SUCCESS) 2603 2599 { 2604 #ifdef VBOX_WITH_NEW_APIC2605 2600 if (VMCPU_FF_TEST_AND_CLEAR(pVCpu, VMCPU_FF_UPDATE_APIC)) 2606 2601 APICUpdatePendingInterrupts(pVCpu); 2607 #endif 2602 2608 2603 if (VMCPU_FF_IS_PENDING(pVCpu, VMCPU_FF_INTERRUPT_APIC | VMCPU_FF_INTERRUPT_PIC 2609 2604 | VMCPU_FF_INTERRUPT_NMI | VMCPU_FF_INTERRUPT_SMI | VMCPU_FF_UNHALT)) -
trunk/src/VBox/VMM/VMMR3/HM.cpp
r64146 r64626 1379 1379 pVM->hm.s.vmx.fVpid = pVM->hm.s.vmx.fAllowVpid; 1380 1380 1381 #ifdef VBOX_WITH_NEW_APIC1382 1381 #if 0 1383 1382 /* … … 1396 1395 && (pVM->hm.s.vmx.Msrs.VmxExit.n.allowed1 & VMX_VMCS_CTRL_EXIT_ACK_EXT_INT)) 1397 1396 pVM->hm.s.fPostedIntrs = true; 1398 #endif1399 1397 #endif 1400 1398 -
trunk/src/VBox/VMM/VMMR3/PDMDevice.cpp
r64373 r64626 28 28 #include <VBox/vmm/hm.h> 29 29 #include <VBox/vmm/cfgm.h> 30 #ifdef VBOX_WITH_NEW_APIC 31 # include <VBox/vmm/apic.h> 32 #endif 30 #include <VBox/vmm/apic.h> 33 31 #ifdef VBOX_WITH_REM 34 32 # include <VBox/vmm/rem.h> … … 504 502 RegCB.pCfgNode = NULL; 505 503 506 #ifdef VBOX_WITH_NEW_APIC507 504 /* 508 505 * Load the internal VMM APIC device. … … 510 507 int rc2 = pdmR3DevReg_Register(&RegCB.Core, &g_DeviceAPIC); 511 508 AssertRCReturn(rc2, rc2); 512 #endif513 509 514 510 /* -
trunk/src/VBox/VMM/VMMR3/VM.cpp
r63648 r64626 61 61 # include <VBox/vmm/rem.h> 62 62 #endif 63 #ifdef VBOX_WITH_NEW_APIC 64 # include <VBox/vmm/apic.h> 65 #endif 63 #include <VBox/vmm/apic.h> 66 64 #include <VBox/vmm/tm.h> 67 65 #include <VBox/vmm/stam.h> -
trunk/src/VBox/VMM/VMMR3/VMM.cpp
r63560 r64626 120 120 #include <VBox/vmm/csam.h> 121 121 #include <VBox/vmm/patm.h> 122 #ifdef VBOX_WITH_NEW_APIC 123 # include <VBox/vmm/apic.h> 124 #endif 122 #include <VBox/vmm/apic.h> 125 123 #ifdef VBOX_WITH_REM 126 124 # include <VBox/vmm/rem.h> … … 1486 1484 PGMR3ResetCpu(pVM, pVCpu); 1487 1485 PDMR3ResetCpu(pVCpu); /* Only clears pending interrupts force flags */ 1488 #ifdef VBOX_WITH_NEW_APIC1489 1486 APICR3InitIpi(pVCpu); 1490 #endif1491 1487 TRPMR3ResetCpu(pVCpu); 1492 1488 CPUMR3ResetCpu(pVM, pVCpu); -
trunk/src/VBox/VMM/VMMRC/TRPMRCHandlers.cpp
r62606 r64626 28 28 #include <VBox/vmm/em.h> 29 29 #include <VBox/vmm/gim.h> 30 #ifdef VBOX_WITH_NEW_APIC 31 # include <VBox/vmm/apic.h> 32 #endif 30 #include <VBox/vmm/apic.h> 33 31 #include <VBox/vmm/csam.h> 34 32 #include <VBox/vmm/patm.h> … … 229 227 else 230 228 { 231 #ifdef VBOX_WITH_NEW_APIC232 229 /* APIC needs updating. */ 233 230 if (VMCPU_FF_TEST_AND_CLEAR(pVCpu, VMCPU_FF_UPDATE_APIC)) 234 231 APICUpdatePendingInterrupts(pVCpu); 235 #endif 232 236 233 if (VMCPU_FF_TEST_AND_CLEAR(pVCpu, VMCPU_FF_CPUM)) 237 234 CPUMRCProcessForceFlag(pVCpu); -
trunk/src/VBox/VMM/testcase/Makefile.kmk
r63996 r64626 151 151 tstVMStructRC_DEFS += VBOX_WITH_VMMR0_DISABLE_LAPIC_NMI 152 152 endif 153 ifdef VBOX_WITH_NEW_APIC154 tstVMStructRC_DEFS += VBOX_WITH_NEW_APIC155 endif156 153 tstVMStructRC_SOURCES = tstVMStructRC.cpp 157 154 tstVMStructRC_INCS = \ … … 179 176 tstVMStructSize_DEFS += VBOX_WITH_VMMR0_DISABLE_LAPIC_NMI 180 177 endif 181 ifdef VBOX_WITH_NEW_APIC182 tstVMStructSize_DEFS += VBOX_WITH_NEW_APIC183 endif184 178 185 179 tstAsmStructs_TEMPLATE = VBOXR3AUTOTST … … 193 187 ifdef VBOX_WITH_VMMR0_DISABLE_LAPIC_NMI 194 188 tstAsmStructs_DEFS += VBOX_WITH_VMMR0_DISABLE_LAPIC_NMI 195 endif196 ifdef VBOX_WITH_NEW_APIC197 tstAsmStructs_DEFS += VBOX_WITH_NEW_APIC198 189 endif 199 190 tstAsmStructs_INCS = \ … … 211 202 ifdef VBOX_WITH_VMMR0_DISABLE_LAPIC_NMI 212 203 tstAsmStructsRC_DEFS += VBOX_WITH_VMMR0_DISABLE_LAPIC_NMI 213 endif214 ifdef VBOX_WITH_NEW_APIC215 tstAsmStructsRC_DEFS += VBOX_WITH_NEW_APIC216 204 endif 217 205 tstAsmStructsRC_INCS = \ … … 496 484 tstVMStructDTrace_DEFS += VBOX_WITH_VMMR0_DISABLE_LAPIC_NMI 497 485 endif 498 ifdef VBOX_WITH_NEW_APIC499 tstVMStructDTrace_DEFS += VBOX_WITH_NEW_APIC500 endif501 486 502 487 … … 540 525 $(DEFS.$(KBUILD_TARGET).$(KBUILD_TARGET_ARCH)) \ 541 526 $(if $(VBOX_WITH_VMMR0_DISABLE_LAPIC_NMI),VBOX_WITH_VMMR0_DISABLE_LAPIC_NMI,) \ 542 $(if $(VBOX_WITH_NEW_APIC),VBOX_WITH_NEW_APIC,) \543 527 ) \ 544 528 -f $(if $(eq $(KBUILD_TARGET),darwin),macho,elf) \ -
trunk/src/VBox/VMM/testcase/tstVMStruct.h
r64373 r64626 1382 1382 #endif 1383 1383 1384 #ifdef VBOX_WITH_NEW_APIC1385 1384 GEN_CHECK_SIZE(APIC); 1386 1385 GEN_CHECK_OFF(APIC, pApicDevR0); … … 1405 1404 GEN_CHECK_OFF(APICCPU, pTimerRC); 1406 1405 GEN_CHECK_OFF(APICCPU, TimerCritSect); 1407 #endif1408 1406 1409 1407 GEN_CHECK_SIZE(VM); … … 1474 1472 GEN_CHECK_OFF(VM, vm); 1475 1473 GEN_CHECK_OFF(VM, cfgm); 1476 #ifdef VBOX_WITH_NEW_APIC1477 1474 GEN_CHECK_OFF(VM, apic); 1478 #endif1479 1475 GEN_CHECK_OFF(VM, aCpus); 1480 1476 … … 1504 1500 GEN_CHECK_OFF(VMCPU, dbgf); 1505 1501 GEN_CHECK_OFF(VMCPU, gim); 1506 #ifdef VBOX_WITH_NEW_APIC1507 1502 GEN_CHECK_OFF(VMCPU, apic); 1508 #endif1509 1503 GEN_CHECK_OFF(VMCPU, pgm); 1510 1504 GEN_CHECK_OFF(VMCPU, cpum); -
trunk/src/VBox/VMM/testcase/tstVMStructDTrace.cpp
r64545 r64626 44 44 #include "REMInternal.h" 45 45 #include "HMInternal.h" 46 #ifdef VBOX_WITH_NEW_APIC 47 # include "APICInternal.h" 48 #endif 46 #include "APICInternal.h" 49 47 #include "VMMInternal.h" 50 48 #include "DBGFInternal.h" -
trunk/src/VBox/VMM/testcase/tstVMStructRC.cpp
r64545 r64626 72 72 #include "REMInternal.h" 73 73 #include "HMInternal.h" 74 #ifdef VBOX_WITH_NEW_APIC 75 # include "APICInternal.h" 76 #endif 74 #include "APICInternal.h" 77 75 #include "PATMInternal.h" 78 76 #include "VMMInternal.h" -
trunk/src/VBox/VMM/testcase/tstVMStructSize.cpp
r64545 r64626 47 47 #include "DBGFInternal.h" 48 48 #include "GIMInternal.h" 49 #ifdef VBOX_WITH_NEW_APIC 50 # include "APICInternal.h" 51 #endif 49 #include "APICInternal.h" 52 50 #include "STAMInternal.h" 53 51 #include "VMInternal.h" … … 239 237 CHECK_PADDING_VM(8, vm); 240 238 CHECK_PADDING_VM(8, cfgm); 241 #ifdef VBOX_WITH_NEW_APIC242 239 CHECK_PADDING_VM(8, apic); 243 #endif244 240 245 241 PRINT_OFFSET(VMCPU, cpum); … … 254 250 CHECK_PADDING_VMCPU(64, dbgf); 255 251 CHECK_PADDING_VMCPU(64, gim); 256 #ifdef VBOX_WITH_NEW_APIC257 252 CHECK_PADDING_VMCPU(64, apic); 258 #endif 253 259 254 PRINT_OFFSET(VMCPU, pgm); 260 255 CHECK_PADDING_VMCPU(4096, pgm); -
trunk/src/VBox/VMM/tools/Makefile.kmk
r63710 r64626 46 46 VBoxVMMPreload_SOURCES = VBoxVMMPreload.cpp 47 47 VBoxVMMPreload_DEFS = \ 48 $(if $(VBOX_WITH_NEW_APIC),VBOX_WITH_NEW_APIC,) \49 48 $(if $(VBOX_WITH_NEW_IOAPIC),VBOX_WITH_NEW_IOAPIC,) 50 49 VBoxVMMPreload_LIBS = $(LIB_RUNTIME) -
trunk/src/VBox/VMM/tools/VBoxVMMPreload.cpp
r63710 r64626 48 48 { "VMMR0.r0", true, NULL }, 49 49 { "VBoxDDR0.r0", true, NULL }, 50 #if !defined(VBOX_WITH_NEW_ APIC) || !defined(VBOX_WITH_NEW_IOAPIC)50 #if !defined(VBOX_WITH_NEW_IOAPIC) 51 51 { "VBoxDD2R0.r0", true, NULL }, 52 52 #endif
Note:
See TracChangeset
for help on using the changeset viewer.