VirtualBox

Changeset 13785 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Nov 4, 2008 1:11:37 PM (16 years ago)
Author:
vboxsync
Message:

More updates

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

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VM.cpp

    r13784 r13785  
    470470     */
    471471    GVMMCREATEVMREQ CreateVMReq;
    472     CreateVMReq.Hdr.u32Magic = SUPVMMR0REQHDR_MAGIC;
    473     CreateVMReq.Hdr.cbReq = sizeof(CreateVMReq);
    474     CreateVMReq.pSession = pUVM->vm.s.pSession;
    475     CreateVMReq.pVMR0 = NIL_RTR0PTR;
    476     CreateVMReq.pVMR3 = NULL;
    477     CreateVMReq.cCPUs = cCPUs;
     472    CreateVMReq.Hdr.u32Magic    = SUPVMMR0REQHDR_MAGIC;
     473    CreateVMReq.Hdr.cbReq       = sizeof(CreateVMReq);
     474    CreateVMReq.pSession        = pUVM->vm.s.pSession;
     475    CreateVMReq.pVMR0           = NIL_RTR0PTR;
     476    CreateVMReq.pVMR3           = NULL;
     477    CreateVMReq.cCPUs           = cCPUs;
    478478    rc = SUPCallVMMR0Ex(NIL_RTR0PTR, VMMR0_DO_GVMM_CREATE_VM, 0, &CreateVMReq.Hdr);
    479479    if (RT_SUCCESS(rc))
     
    490490         */
    491491        pVM->pUVM = pUVM;
    492         pVM->NativeThreadEMT = pVM->aCpu[0].hNativeThreadR3 = pUVM->vm.s.NativeThreadEMT;
     492        pVM->NativeThreadEMT = pUVM->aCpu[0].vm.s.NativeThreadEMT;
     493
     494        for (unsigned i=0;i<pVM->cCPUs;i++)
     495        {
     496            pVM->aCpu[i].hNativeThread = pUVM->aCpu[i].vm.s.NativeThreadEMT;
     497            Assert(pVM->aCpu[i].hNativeThread!= NIL_RTNATIVETHREAD);
     498        }
    493499
    494500        /*
  • trunk/src/VBox/VMM/VMEmt.cpp

    r13782 r13785  
    215215        vmR3DestroyFinalBitFromEMT(pUVM);
    216216
    217         /* we don't reset ThreadEMT here because it's used in waiting. */
    218217        pUVM->vm.s.NativeThreadEMT = NIL_RTNATIVETHREAD;
    219218    }
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