~ubuntu-branches/ubuntu/vivid/virtualbox/vivid

« back to all changes in this revision

Viewing changes to src/VBox/VMM/VMMR3/DBGF.cpp

  • Committer: Package Import Robot
  • Author(s): Felix Geyer
  • Date: 2011-12-29 12:29:25 UTC
  • mfrom: (3.1.8 sid)
  • Revision ID: package-import@ubuntu.com-20111229122925-8ota2o33fuk0bkf8
Tags: 4.1.8-dfsg-1
* New upstream release.
* Move all transitional packages to section oldlibs and priority extra.
* Refresh 16-no-update.patch.
* Drop 36-kernel-3.2.patch, applied upstream.

Show diffs side-by-side

added added

removed removed

Lines of Context:
649
649
                     || VMCPU_FF_ISPENDING(pVCpu, VMCPU_FF_REQUEST))
650
650
            {
651
651
                LogFlow(("dbgfR3VMMWait: Processes requests...\n"));
652
 
                rc = VMR3ReqProcessU(pVM->pUVM, VMCPUID_ANY);
 
652
                rc = VMR3ReqProcessU(pVM->pUVM, VMCPUID_ANY, false /*fPriorityOnly*/);
653
653
                if (rc == VINF_SUCCESS)
654
 
                    rc = VMR3ReqProcessU(pVM->pUVM, pVCpu->idCpu);
 
654
                    rc = VMR3ReqProcessU(pVM->pUVM, pVCpu->idCpu, false /*fPriorityOnly*/);
655
655
                LogFlow(("dbgfR3VMMWait: VMR3ReqProcess -> %Rrc rcRet=%Rrc\n", rc, rcRet));
656
656
                cPollHack = 1;
657
657
            }
853
853
 */
854
854
VMMR3DECL(int) DBGFR3Attach(PVM pVM)
855
855
{
856
 
    /*
857
 
     * Some validations first.
858
 
     */
859
 
    if (!VALID_PTR(pVM))
860
 
    {
861
 
        Log(("DBGFR3Attach: bad VM handle: %p\n", pVM));
862
 
        return VERR_INVALID_HANDLE;
863
 
    }
864
 
    VMSTATE enmVMState = pVM->enmVMState;
865
 
    if (    enmVMState >= VMSTATE_DESTROYING
866
 
        ||  enmVMState <  VMSTATE_CREATING)
867
 
    {
868
 
        Log(("DBGFR3Attach: Invalid VM state: %s\n", VMGetStateName(enmVMState)));
869
 
        return VERR_INVALID_HANDLE;
870
 
    }
 
856
    VM_ASSERT_VALID_EXT_RETURN(pVM, VERR_INVALID_VM_HANDLE);
871
857
 
872
858
    /*
873
859
     * Call the VM, use EMT for serialization.