VirtualBox

Changeset 93449 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Jan 26, 2022 7:57:06 PM (3 years ago)
Author:
vboxsync
Message:

Main,ExtPacks: Don't like with the VMM anymore, use the function table. bugref:10074

Location:
trunk/src/VBox/Main/src-client
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl.cpp

    r93444 r93449  
    67876787    {
    67886788#ifdef VBOX_WITH_EXTPACK
    6789         vrc = mptrExtPackManager->i_callAllVmPowerOnHooks(this, ptrVM.vtable()->pfnVMR3GetVM(ptrVM.rawUVM()));
     6789        vrc = mptrExtPackManager->i_callAllVmPowerOnHooks(this, ptrVM.vtable()->pfnVMR3GetVM(ptrVM.rawUVM()), ptrVM.vtable());
    67906790#else
    67916791        vrc = VINF_SUCCESS;
     
    83888388        vrc = pVMM->pfnVMR3PowerOff(pUVM);
    83898389#ifdef VBOX_WITH_EXTPACK
    8390         mptrExtPackManager->i_callAllVmPowerOffHooks(this, pVMM->pfnVMR3GetVM(pUVM));
     8390        mptrExtPackManager->i_callAllVmPowerOffHooks(this, pVMM->pfnVMR3GetVM(pUVM), pVMM);
    83918391#endif
    83928392        alock.acquire();
     
    1049810498                            /* Start/Resume the VM execution */
    1049910499#ifdef VBOX_WITH_EXTPACK
    10500                             vrc = pConsole->mptrExtPackManager->i_callAllVmPowerOnHooks(pConsole, pVM);
     10500                            vrc = pConsole->mptrExtPackManager->i_callAllVmPowerOnHooks(pConsole, pVM, pVMM);
    1050110501#endif
    1050210502                            if (RT_SUCCESS(vrc))
     
    1051110511                        int vrc2 = pVMM->pfnVMR3PowerOff(pConsole->mpUVM); AssertLogRelRC(vrc2);
    1051210512#ifdef VBOX_WITH_EXTPACK
    10513                         pConsole->mptrExtPackManager->i_callAllVmPowerOffHooks(pConsole, pVM);
     10513                        pConsole->mptrExtPackManager->i_callAllVmPowerOffHooks(pConsole, pVM, pVMM);
    1051410514#endif
    1051510515                    }
     
    1052610526                        int vrc2 = pVMM->pfnVMR3PowerOff(pConsole->mpUVM); AssertLogRelRC(vrc2);
    1052710527#ifdef VBOX_WITH_EXTPACK
    10528                         pConsole->mptrExtPackManager->i_callAllVmPowerOffHooks(pConsole, pVM);
     10528                        pConsole->mptrExtPackManager->i_callAllVmPowerOffHooks(pConsole, pVM, pVMM);
    1052910529#endif
    1053010530                    }
     
    1053710537                    /* Power on the VM (i.e. start executing) */
    1053810538#ifdef VBOX_WITH_EXTPACK
    10539                     vrc = pConsole->mptrExtPackManager->i_callAllVmPowerOnHooks(pConsole, pVM);
     10539                    vrc = pConsole->mptrExtPackManager->i_callAllVmPowerOnHooks(pConsole, pVM, pVMM);
    1054010540#endif
    1054110541                    if (RT_SUCCESS(vrc))
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r93444 r93449  
    37163716    {
    37173717        pAlock->release();
    3718         rc = mptrExtPackManager->i_callAllVmConfigureVmmHooks(this, pVM);
     3718        rc = mptrExtPackManager->i_callAllVmConfigureVmmHooks(this, pVM, pVMM);
    37193719        pAlock->acquire();
    37203720    }
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