VirtualBox

儲存庫 vbox 的更動 62656


忽略:
時間撮記:
2016-7-28 下午10:26:10 (8 年 以前)
作者:
vboxsync
訊息:

VMMR3: warnings

檔案:
修改 1 筆資料

圖例:

未更動
新增
刪除
  • trunk/src/VBox/VMM/VMMR3/APIC.cpp

    r62460 r62656  
    942942 *
    943943 * @returns VBox status code.
    944  * @param   pVM         The cross context VM structure.
    945944 * @param   pVCpu       The cross context virtual CPU structure.
    946945 * @param   pSSM        The SSM handle.
    947946 * @param   uVersion    Data layout version.
    948947 */
    949 static int apicR3LoadLegacyVCpuData(PVM pVM, PVMCPU pVCpu, PSSMHANDLE pSSM, uint32_t uVersion)
     948static int apicR3LoadLegacyVCpuData(PVMCPU pVCpu, PSSMHANDLE pSSM, uint32_t uVersion)
    950949{
    951950    AssertReturn(uVersion <= APIC_SAVED_STATE_VERSION_VBOX_50, VERR_NOT_SUPPORTED);
     
    10561055    PAPICDEV pApicDev = PDMINS_2_DATA(pDevIns, PAPICDEV);
    10571056    PVM      pVM      = PDMDevHlpGetVM(pApicDev->pDevInsR3);
     1057    RT_NOREF1(uPass);
    10581058
    10591059    LogFlow(("APIC: apicR3LiveExec: uPass=%u\n", uPass));
     
    10701070static DECLCALLBACK(int) apicR3SaveExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSM)
    10711071{
    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);
    10751073    AssertReturn(pVM, VERR_INVALID_VM_HANDLE);
    10761074
     
    11271125static DECLCALLBACK(int) apicR3LoadExec(PPDMDEVINS pDevIns, PSSMHANDLE pSSM, uint32_t uVersion, uint32_t uPass)
    11281126{
    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);
    11321128
    11331129    AssertReturn(pVM, VERR_INVALID_VM_HANDLE);
     
    11961192        else
    11971193        {
    1198             rc = apicR3LoadLegacyVCpuData(pVM, pVCpu, pSSM, uVersion);
     1194            rc = apicR3LoadLegacyVCpuData(pVCpu, pSSM, uVersion);
    11991195            AssertRCReturn(rc, rc);
    12001196        }
     
    12351231    Assert(pVCpu);
    12361232    LogFlow(("APIC%u: apicR3TimerCallback\n", pVCpu->idCpu));
     1233    RT_NOREF2(pDevIns, pTimer);
    12371234
    12381235    PXAPICPAGE     pXApicPage = VMCPU_TO_XAPICPAGE(pVCpu);
     1236    uint32_t const uLvtTimer  = pXApicPage->lvt_timer.all.u32LvtTimer;
     1237#ifdef VBOX_WITH_STATISTICS
    12391238    PAPICCPU       pApicCpu   = VMCPU_TO_APICCPU(pVCpu);
    1240     uint32_t const uLvtTimer  = pXApicPage->lvt_timer.all.u32LvtTimer;
    12411239    STAM_COUNTER_INC(&pApicCpu->StatTimerCallback);
     1240#endif
    12421241    if (!XAPIC_LVT_IS_MASKED(uLvtTimer))
    12431242    {
     
    12841283static DECLCALLBACK(void) apicR3Reset(PPDMDEVINS pDevIns)
    12851284{
    1286     PAPICDEV pApicDev = PDMINS_2_DATA(pDevIns, PAPICDEV);
    1287     PVM      pVM      = PDMDevHlpGetVM(pDevIns);
     1285    PVM pVM = PDMDevHlpGetVM(pDevIns);
    12881286    VM_ASSERT_EMT0(pVM);
    12891287    VM_ASSERT_IS_NOT_RUNNING(pVM);
     
    15841582     * Validate inputs.
    15851583     */
    1586     Assert(iInstance == 0);
     1584    Assert(iInstance == 0); NOREF(iInstance);
    15871585    Assert(pDevIns);
    15881586
注意: 瀏覽 TracChangeset 來幫助您使用更動檢視器

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette