VirtualBox

Changeset 57854 in vbox for trunk


Ignore:
Timestamp:
Sep 22, 2015 1:47:01 PM (9 years ago)
Author:
vboxsync
Message:

VMM: unused parameter warning fixes.

Location:
trunk/src/VBox/VMM/VMMR0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR0/HMSVMR0.cpp

    r57851 r57854  
    10571057    Assert(enmOp > HM64ON32OP_INVALID && enmOp < HM64ON32OP_END);
    10581058
     1059    NOREF(pCtx);
     1060
    10591061    /* Disable interrupts. */
    10601062    RTHCUINTREG uOldEFlags = ASMIntDisableFlags();
  • trunk/src/VBox/VMM/VMMR0/HMVMXR0.cpp

    r57733 r57854  
    29882988    }
    29892989#else
     2990    NOREF(pVM);
    29902991    uintptr_t uTRBase = X86DESC_BASE(pDesc);
    29912992#endif
     
    50775078                                         uint32_t cParams, uint32_t *paParam)
    50785079{
    5079     int             rc, rc2;
    5080     PHMGLOBALCPUINFO pCpu;
    5081     RTHCPHYS        HCPhysCpuPage;
    5082     RTCCUINTREG     fOldEFlags;
     5080    NOREF(pCtx);
    50835081
    50845082    AssertReturn(pVM->hm.s.pfnHost32ToGuest64R0, VERR_HM_NO_32_TO_64_SWITCHER);
     
    50965094
    50975095    /* Disable interrupts. */
    5098     fOldEFlags = ASMIntDisableFlags();
     5096    RTCCUINTREG fOldEFlags = ASMIntDisableFlags();
    50995097
    51005098#ifdef VBOX_WITH_VMMR0_DISABLE_LAPIC_NMI
     
    51035101#endif
    51045102
    5105     pCpu = HMR0GetCurrentCpu();
    5106     HCPhysCpuPage = RTR0MemObjGetPagePhysAddr(pCpu->hMemObj, 0);
     5103    PHMGLOBALCPUINFO pCpu = HMR0GetCurrentCpu();
     5104    RTHCPHYS HCPhysCpuPage = RTR0MemObjGetPagePhysAddr(pCpu->hMemObj, 0);
    51075105
    51085106    /* Clear VMCS. Marking it inactive, clearing implementation-specific data and writing VMCS data back to memory. */
     
    51225120
    51235121    /* Call the switcher. */
    5124     rc = pVM->hm.s.pfnHost32ToGuest64R0(pVM, RT_OFFSETOF(VM, aCpus[pVCpu->idCpu].cpum) - RT_OFFSETOF(VM, cpum));
     5122    int rc = pVM->hm.s.pfnHost32ToGuest64R0(pVM, RT_OFFSETOF(VM, aCpus[pVCpu->idCpu].cpum) - RT_OFFSETOF(VM, cpum));
    51255123    STAM_PROFILE_ADV_STOP(&pVCpu->hm.s.StatWorldSwitch3264, z);
    51265124
     
    51305128
    51315129    /* Re-enter VMX Root Mode */
    5132     rc2 = VMXEnable(HCPhysCpuPage);
     5130    int rc2 = VMXEnable(HCPhysCpuPage);
    51335131    if (RT_FAILURE(rc2))
    51345132    {
     
    51605158DECLASM(int) VMXR0SwitcherStartVM64(RTHCUINT fResume, PCPUMCTX pCtx, PVMCSCACHE pCache, PVM pVM, PVMCPU pVCpu)
    51615159{
    5162     PHMGLOBALCPUINFO pCpu          = NULL;
    5163     RTHCPHYS         HCPhysCpuPage = 0;
    5164     int              rc            = VERR_INTERNAL_ERROR_5;
    5165 
    5166     pCpu = HMR0GetCurrentCpu();
    5167     HCPhysCpuPage = RTR0MemObjGetPagePhysAddr(pCpu->hMemObj, 0);
     5160    NOREF(fResume);
     5161
     5162    PHMGLOBALCPUINFO pCpu = HMR0GetCurrentCpu();
     5163    RTHCPHYS HCPhysCpuPage = RTR0MemObjGetPagePhysAddr(pCpu->hMemObj, 0);
    51685164
    51695165#ifdef VBOX_WITH_CRASHDUMP_MAGIC
     
    51995195    *(uint32_t *)(pVM->hm.s.vmx.pScratch + 16 + 8) = 1;
    52005196#endif
    5201     rc = VMXR0Execute64BitsHandler(pVM, pVCpu, pCtx, HM64ON32OP_VMXRCStartVM64, RT_ELEMENTS(aParam), &aParam[0]);
     5197    int rc = VMXR0Execute64BitsHandler(pVM, pVCpu, pCtx, HM64ON32OP_VMXRCStartVM64, RT_ELEMENTS(aParam), &aParam[0]);
    52025198
    52035199#ifdef VBOX_WITH_CRASHDUMP_MAGIC
Note: See TracChangeset for help on using the changeset viewer.

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