VirtualBox

Changeset 49479 in vbox


Ignore:
Timestamp:
Nov 14, 2013 3:13:05 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
90631
Message:

VMM: Warnings.

Location:
trunk/src/VBox/VMM
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/CPUMAllRegs.cpp

    r49360 r49479  
    19431943        }
    19441944
     1945        NOREF(type);
    19451946        *pEax |= ((cores - 1) << 26)        |
    19461947                 ((sharing - 1) << 14)      |
  • trunk/src/VBox/VMM/VMMR0/CPUMR0.cpp

    r49019 r49479  
    127127static DECLCALLBACK(void) cpumR0CheckCpuid(RTCPUID idCpu, void *pvUser1, void *pvUser2)
    128128{
     129    NOREF(idCpu); NOREF(pvUser2);
     130
    129131    struct
    130132    {
     
    352354VMMR0_INT_DECL(int) CPUMR0LoadGuestFPU(PVM pVM, PVMCPU pVCpu, PCPUMCTX pCtx)
    353355{
     356
    354357    Assert(!RTThreadPreemptIsEnabled(NIL_RTTHREAD));
    355358#if HC_ARCH_BITS == 32 && defined(VBOX_WITH_64_BITS_GUESTS) && !defined(VBOX_WITH_HYBRID_32BIT_KERNEL)
     
    367370#endif
    368371    {
     372        NOREF(pCtx);
    369373        Assert(!(pVCpu->cpum.s.fUseFlags & CPUM_USED_MANUAL_XMM_RESTORE));
    370374        /** @todo Move the FFXR handling down into
     
    792796static DECLCALLBACK(void) cpumR0MapLocalApicCpuChecker(RTCPUID idCpu, void *pvUser1, void *pvUser2)
    793797{
     798    NOREF(pvUser1); NOREF(pvUser2);
     799
    794800    int iCpu = RTMpCpuIdToSetIndex(idCpu);
    795801    AssertReturnVoid(iCpu >= 0 && (unsigned)iCpu < RT_ELEMENTS(g_aLApics));
  • trunk/src/VBox/VMM/VMMR0/HMR0.cpp

    r49310 r49479  
    231231}
    232232
    233 static DECLCALLBACK(int) hmR0DummyLeave(PVM pVM, PVMCPU pVCpu, PCPUMCTX pCtx)
     233static DECLCALLBACK(void) hmR0DummyThreadCtxCallback(RTTHREADCTXEVENT enmEvent, PVMCPU pVCpu, bool fGlobalInit)
     234{
     235    NOREF(enmEvent); NOREF(pVCpu); NOREF(fGlobalInit);
     236}
     237
     238static DECLCALLBACK(int) hmR0DummyEnableCpu(PHMGLOBALCPUINFO pCpu, PVM pVM, void *pvCpuPage, RTHCPHYS HCPhysCpuPage,
     239                                            bool fEnabledBySystem, void *pvArg)
     240{
     241    NOREF(pCpu); NOREF(pVM); NOREF(pvCpuPage); NOREF(HCPhysCpuPage); NOREF(fEnabledBySystem); NOREF(pvArg);
     242    return VINF_SUCCESS;
     243}
     244
     245static DECLCALLBACK(int) hmR0DummyDisableCpu(PHMGLOBALCPUINFO pCpu, void *pvCpuPage, RTHCPHYS HCPhysCpuPage)
     246{
     247    NOREF(pCpu);  NOREF(pvCpuPage); NOREF(HCPhysCpuPage);
     248    return VINF_SUCCESS;
     249}
     250
     251static DECLCALLBACK(int) hmR0DummyInitVM(PVM pVM)
     252{
     253    NOREF(pVM);
     254    return VINF_SUCCESS;
     255}
     256
     257static DECLCALLBACK(int) hmR0DummyTermVM(PVM pVM)
     258{
     259    NOREF(pVM);
     260    return VINF_SUCCESS;
     261}
     262
     263static DECLCALLBACK(int) hmR0DummySetupVM(PVM pVM)
     264{
     265    NOREF(pVM);
     266    return VINF_SUCCESS;
     267}
     268
     269static DECLCALLBACK(int) hmR0DummyRunGuestCode(PVM pVM, PVMCPU pVCpu, PCPUMCTX pCtx)
    234270{
    235271    NOREF(pVM); NOREF(pVCpu); NOREF(pCtx);
     
    237273}
    238274
    239 static DECLCALLBACK(void) hmR0DummyThreadCtxCallback(RTTHREADCTXEVENT enmEvent, PVMCPU pVCpu, bool fGlobalInit)
    240 {
    241     NOREF(enmEvent); NOREF(pVCpu); NOREF(fGlobalInit);
    242 }
    243 
    244 static DECLCALLBACK(int) hmR0DummyEnableCpu(PHMGLOBALCPUINFO pCpu, PVM pVM, void *pvCpuPage, RTHCPHYS HCPhysCpuPage,
    245                                             bool fEnabledBySystem, void *pvArg)
    246 {
    247     NOREF(pCpu); NOREF(pVM); NOREF(pvCpuPage); NOREF(HCPhysCpuPage); NOREF(fEnabledBySystem); NOREF(pvArg);
    248     return VINF_SUCCESS;
    249 }
    250 
    251 static DECLCALLBACK(int) hmR0DummyDisableCpu(PHMGLOBALCPUINFO pCpu, void *pvCpuPage, RTHCPHYS HCPhysCpuPage)
    252 {
    253     NOREF(pCpu);  NOREF(pvCpuPage); NOREF(HCPhysCpuPage);
    254     return VINF_SUCCESS;
    255 }
    256 
    257 static DECLCALLBACK(int) hmR0DummyInitVM(PVM pVM)
    258 {
    259     NOREF(pVM);
    260     return VINF_SUCCESS;
    261 }
    262 
    263 static DECLCALLBACK(int) hmR0DummyTermVM(PVM pVM)
    264 {
    265     NOREF(pVM);
    266     return VINF_SUCCESS;
    267 }
    268 
    269 static DECLCALLBACK(int) hmR0DummySetupVM(PVM pVM)
    270 {
    271     NOREF(pVM);
    272     return VINF_SUCCESS;
    273 }
    274 
    275 static DECLCALLBACK(int) hmR0DummyRunGuestCode(PVM pVM, PVMCPU pVCpu, PCPUMCTX pCtx)
    276 {
    277     NOREF(pVM); NOREF(pVCpu); NOREF(pCtx);
    278     return VINF_SUCCESS;
    279 }
    280 
    281275static DECLCALLBACK(int) hmR0DummySaveHostState(PVM pVM, PVMCPU pVCpu)
    282276{
    283277    NOREF(pVM); NOREF(pVCpu);
    284     return VINF_SUCCESS;
    285 }
    286 
    287 static DECLCALLBACK(int) hmR0DummyLoadGuestState(PVM pVM, PVMCPU pVCpu, PCPUMCTX pCtx)
    288 {
    289     NOREF(pVM); NOREF(pVCpu); NOREF(pCtx);
    290278    return VINF_SUCCESS;
    291279}
     
    13421330    RTThreadPreemptDisable(&PreemptState);
    13431331    RTCPUID          idCpu  = RTMpCpuId();
    1344     PHMGLOBALCPUINFO pCpu   = &g_HvmR0.aCpuInfo[idCpu];
    13451332
    13461333    /* Enable VT-x or AMD-V if local init is required. */
     
    14601447{
    14611448    Assert(!RTThreadPreemptIsEnabled(NIL_RTTHREAD));
     1449    VMCPU_ASSERT_EMT_RETURN(pVCpu, VERR_HM_WRONG_CPU_1);
    14621450
    14631451    RTCPUID          idCpu = RTMpCpuId();
     
    16941682VMMR0_INT_DECL(int) HMR0EnterSwitcher(PVM pVM, VMMSWITCHER enmSwitcher, bool *pfVTxDisabled)
    16951683{
     1684    NOREF(pVM);
     1685
    16961686    Assert(!(ASMGetFlags() & X86_EFL_IF) || !RTThreadPreemptIsEnabled(NIL_RTTHREAD));
    16971687
Note: See TracChangeset for help on using the changeset viewer.

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