儲存庫 vbox 的更動 62656
- 時間撮記:
- 2016-7-28 下午10:26:10 (8 年 以前)
- 檔案:
-
- 修改 1 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
trunk/src/VBox/VMM/VMMR3/APIC.cpp
r62460 r62656 942 942 * 943 943 * @returns VBox status code. 944 * @param pVM The cross context VM structure.945 944 * @param pVCpu The cross context virtual CPU structure. 946 945 * @param pSSM The SSM handle. 947 946 * @param uVersion Data layout version. 948 947 */ 949 static int apicR3LoadLegacyVCpuData(PVM pVM, PVMCPU pVCpu, PSSMHANDLE pSSM, uint32_t uVersion)948 static int apicR3LoadLegacyVCpuData(PVMCPU pVCpu, PSSMHANDLE pSSM, uint32_t uVersion) 950 949 { 951 950 AssertReturn(uVersion <= APIC_SAVED_STATE_VERSION_VBOX_50, VERR_NOT_SUPPORTED); … … 1056 1055 PAPICDEV pApicDev = PDMINS_2_DATA(pDevIns, PAPICDEV); 1057 1056 PVM pVM = PDMDevHlpGetVM(pApicDev->pDevInsR3); 1057 RT_NOREF1(uPass); 1058 1058 1059 1059 LogFlow(("APIC: apicR3LiveExec: uPass=%u\n", uPass)); … … 1070 1070 static DECLCALLBACK(int) apicR3SaveExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSM) 1071 1071 { 1072 PAPICDEV pApicDev = PDMINS_2_DATA(pDevIns, PAPICDEV); 1073 PVM pVM = PDMDevHlpGetVM(pDevIns); 1074 PAPIC pApic = VM_TO_APIC(pVM); 1072 PVM pVM = PDMDevHlpGetVM(pDevIns); 1075 1073 AssertReturn(pVM, VERR_INVALID_VM_HANDLE); 1076 1074 … … 1127 1125 static DECLCALLBACK(int) apicR3LoadExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSM, uint32_t uVersion, uint32_t uPass) 1128 1126 { 1129 PAPICDEV pApicDev = PDMINS_2_DATA(pDevIns, PAPICDEV); 1130 PVM pVM = PDMDevHlpGetVM(pDevIns); 1131 PAPIC pApic = VM_TO_APIC(pVM); 1127 PVM pVM = PDMDevHlpGetVM(pDevIns); 1132 1128 1133 1129 AssertReturn(pVM, VERR_INVALID_VM_HANDLE); … … 1196 1192 else 1197 1193 { 1198 rc = apicR3LoadLegacyVCpuData(pV M, pVCpu, pSSM, uVersion);1194 rc = apicR3LoadLegacyVCpuData(pVCpu, pSSM, uVersion); 1199 1195 AssertRCReturn(rc, rc); 1200 1196 } … … 1235 1231 Assert(pVCpu); 1236 1232 LogFlow(("APIC%u: apicR3TimerCallback\n", pVCpu->idCpu)); 1233 RT_NOREF2(pDevIns, pTimer); 1237 1234 1238 1235 PXAPICPAGE pXApicPage = VMCPU_TO_XAPICPAGE(pVCpu); 1236 uint32_t const uLvtTimer = pXApicPage->lvt_timer.all.u32LvtTimer; 1237 #ifdef VBOX_WITH_STATISTICS 1239 1238 PAPICCPU pApicCpu = VMCPU_TO_APICCPU(pVCpu); 1240 uint32_t const uLvtTimer = pXApicPage->lvt_timer.all.u32LvtTimer;1241 1239 STAM_COUNTER_INC(&pApicCpu->StatTimerCallback); 1240 #endif 1242 1241 if (!XAPIC_LVT_IS_MASKED(uLvtTimer)) 1243 1242 { … … 1284 1283 static DECLCALLBACK(void) apicR3Reset(PPDMDEVINS pDevIns) 1285 1284 { 1286 PAPICDEV pApicDev = PDMINS_2_DATA(pDevIns, PAPICDEV); 1287 PVM pVM = PDMDevHlpGetVM(pDevIns); 1285 PVM pVM = PDMDevHlpGetVM(pDevIns); 1288 1286 VM_ASSERT_EMT0(pVM); 1289 1287 VM_ASSERT_IS_NOT_RUNNING(pVM); … … 1584 1582 * Validate inputs. 1585 1583 */ 1586 Assert(iInstance == 0); 1584 Assert(iInstance == 0); NOREF(iInstance); 1587 1585 Assert(pDevIns); 1588 1586
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器