VirtualBox

Changeset 13744 in vbox


Ignore:
Timestamp:
Nov 3, 2008 12:27:49 PM (16 years ago)
Author:
vboxsync
Message:

Initialize all the VM pointers

File:
1 edited

Legend:

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

    r13742 r13744  
    607607                                    AssertPtr((void *)pVM->pVMR3);
    608608
    609                                     /** @todo SMP - need to get the cpu count and initialize all the VM pointers. */
    610                                     pVM->aCpus[0].pVMR0 = pVM;
    611                                     pVM->aCpus[0].pVMR3 = pVM->pVMR3;
     609                                    /** Initialize all the VM pointers. */
     610                                    for (unsigned i=0;i<cCPUs;i++)
     611                                    {
     612                                        pVM->aCpus[i].pVMR0 = pVM;
     613                                        pVM->aCpus[i].pVMR3 = pVM->pVMR3;
     614                                    }
    612615
    613616                                    rc = RTR0MemObjMapUser(&pGVM->gvmm.s.VMPagesMapObj, pGVM->gvmm.s.VMPagesMemObj, (RTR3PTR)-1, 0,
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