VirtualBox

Ignore:
Timestamp:
Aug 15, 2019 7:29:37 AM (5 years ago)
Author:
vboxsync
Message:

VMM,++: Refactoring code to use VMMC & VMMCPUCC. bugref:9217

File:
1 edited

Legend:

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

    r80268 r80281  
    323323 *
    324324 * @returns @c true if it is suitable, @c false otherwise.
     325 * @param   pVM     The cross context VM structure.
    325326 * @param   pVCpu   The cross context virtual CPU structure.
    326327 * @param   pCtx    Pointer to the guest CPU context.
     
    329330 *          pVCpu->cpum.GstCtx.
    330331 */
    331 VMMDECL(bool) HMCanExecuteGuest(PVMCPUCC pVCpu, PCCPUMCTX pCtx)
    332 {
    333     PVM pVM = pVCpu->CTX_SUFF(pVM);
     332VMMDECL(bool) HMCanExecuteGuest(PVMCC pVM, PVMCPUCC pVCpu, PCCPUMCTX pCtx)
     333{
    334334    Assert(HMIsEnabled(pVM));
    335335
     
    380380 * @param   GCVirt      Page to invalidate.
    381381 */
    382 VMM_INT_DECL(int) HMInvalidatePage(PVMCPU pVCpu, RTGCPTR GCVirt)
     382VMM_INT_DECL(int) HMInvalidatePage(PVMCPUCC pVCpu, RTGCPTR GCVirt)
    383383{
    384384    STAM_COUNTER_INC(&pVCpu->hm.s.StatFlushPageManual);
     
    514514    for (VMCPUID idCpu = 0; idCpu < pVM->cCpus; idCpu++)
    515515    {
    516         PVMCPU pVCpu = VMCC_GET_CPU(pVM, idCpu);
     516        PVMCPUCC pVCpu = VMCC_GET_CPU(pVM, idCpu);
    517517
    518518        /* Nothing to do if a TLB flush is already pending; the VCPU should
     
    551551    for (VMCPUID idCpu = 0; idCpu < pVM->cCpus; idCpu++)
    552552    {
    553         PVMCPU pVCpu = VMCC_GET_CPU(pVM, idCpu);
     553        PVMCPUCC pVCpu = VMCC_GET_CPU(pVM, idCpu);
    554554
    555555        /* Nothing to do if a TLB flush is already pending; the VCPU should
     
    702702 * @param   pVM         The cross context VM structure.
    703703 */
    704 VMM_INT_DECL(bool) HMHasPendingIrq(PVM pVM)
    705 {
    706     PVMCPU pVCpu = VMMGetCpu(pVM);
     704VMM_INT_DECL(bool) HMHasPendingIrq(PVMCC pVM)
     705{
     706    PVMCPUCC pVCpu = VMMGetCpu(pVM);
    707707    return !!pVCpu->hm.s.Event.fPending;
    708708}
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