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

« back to all changes in this revision

Viewing changes to src/VBox/VMM/VMMR3/DBGFBp.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:
280
280
VMMR3DECL(int) DBGFR3BpSet(PVM pVM, PCDBGFADDRESS pAddress, uint64_t iHitTrigger, uint64_t iHitDisable, uint32_t *piBp)
281
281
{
282
282
    /*
283
 
     * This must be done in EMT.
 
283
     * This must be done on EMT.
284
284
     */
285
285
    /** @todo SMP? */
286
 
    int rc = VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)dbgfR3BpSetInt3, 5, pVM, pAddress, &iHitTrigger, &iHitDisable, piBp);
 
286
    int rc = VMR3ReqPriorityCallWait(pVM, VMCPUID_ANY, (PFNRT)dbgfR3BpSetInt3, 5, pVM, pAddress, &iHitTrigger, &iHitDisable, piBp);
287
287
    LogFlow(("DBGFR3BpSet: returns %Rrc\n", rc));
288
288
    return rc;
289
289
}
438
438
{
439
439
    /** @todo SMP - broadcast, VT-x/AMD-V. */
440
440
    /*
441
 
     * This must be done in EMT.
 
441
     * This must be done on EMT.
442
442
     */
443
 
    int rc = VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)dbgfR3BpSetReg, 7, pVM, pAddress, &iHitTrigger, &iHitDisable, fType, cb, piBp);
 
443
    int rc = VMR3ReqPriorityCallWait(pVM, VMCPUID_ANY, (PFNRT)dbgfR3BpSetReg, 7, pVM, pAddress, &iHitTrigger, &iHitDisable, fType, cb, piBp);
444
444
    LogFlow(("DBGFR3BpSetReg: returns %Rrc\n", rc));
445
445
    return rc;
446
446
 
605
605
VMMR3DECL(int) DBGFR3BpSetREM(PVM pVM, PCDBGFADDRESS pAddress, uint64_t iHitTrigger, uint64_t iHitDisable, uint32_t *piBp)
606
606
{
607
607
    /*
608
 
     * This must be done in EMT.
 
608
     * This must be done on EMT.
609
609
     */
610
 
    int rc = VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)dbgfR3BpSetREM, 5, pVM, pAddress, &iHitTrigger, &iHitDisable, piBp);
 
610
    int rc = VMR3ReqPriorityCallWait(pVM, VMCPUID_ANY, (PFNRT)dbgfR3BpSetREM, 5, pVM, pAddress, &iHitTrigger, &iHitDisable, piBp);
611
611
    LogFlow(("DBGFR3BpSetREM: returns %Rrc\n", rc));
612
612
    return rc;
613
613
}
697
697
VMMR3DECL(int) DBGFR3BpClear(PVM pVM, uint32_t iBp)
698
698
{
699
699
    /*
700
 
     * This must be done in EMT.
 
700
     * This must be done on EMT.
701
701
     */
702
 
    int rc = VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)dbgfR3BpClear, 2, pVM, iBp);
 
702
    int rc = VMR3ReqPriorityCallWait(pVM, VMCPUID_ANY, (PFNRT)dbgfR3BpClear, 2, pVM, iBp);
703
703
    LogFlow(("DBGFR3BpClear: returns %Rrc\n", rc));
704
704
    return rc;
705
705
}
745
745
                break;
746
746
 
747
747
            default:
748
 
                AssertMsgFailed(("Invalid enmType=%d!\n", pBp->enmType));
749
 
                return VERR_INTERNAL_ERROR;
 
748
                AssertMsgFailedReturn(("Invalid enmType=%d!\n", pBp->enmType), VERR_IPE_NOT_REACHED_DEFAULT_CASE);
750
749
        }
751
750
        AssertRCReturn(rc, rc);
752
751
    }
770
769
VMMR3DECL(int) DBGFR3BpEnable(PVM pVM, uint32_t iBp)
771
770
{
772
771
    /*
773
 
     * This must be done in EMT.
 
772
     * This must be done on EMT.
774
773
     */
775
 
    int rc = VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)dbgfR3BpEnable, 2, pVM, iBp);
 
774
    int rc = VMR3ReqPriorityCallWait(pVM, VMCPUID_ANY, (PFNRT)dbgfR3BpEnable, 2, pVM, iBp);
776
775
    LogFlow(("DBGFR3BpEnable: returns %Rrc\n", rc));
777
776
    return rc;
778
777
}
822
821
            break;
823
822
 
824
823
        default:
825
 
            AssertMsgFailed(("Invalid enmType=%d!\n", pBp->enmType));
826
 
            return VERR_INTERNAL_ERROR;
 
824
            AssertMsgFailedReturn(("Invalid enmType=%d!\n", pBp->enmType), VERR_IPE_NOT_REACHED_DEFAULT_CASE);
827
825
    }
828
826
    if (RT_FAILURE(rc))
829
827
        pBp->fEnabled = false;
843
841
VMMR3DECL(int) DBGFR3BpDisable(PVM pVM, uint32_t iBp)
844
842
{
845
843
    /*
846
 
     * This must be done in EMT.
 
844
     * This must be done on EMT.
847
845
     */
848
 
    int rc = VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)dbgfR3BpDisable, 2, pVM, iBp);
 
846
    int rc = VMR3ReqPriorityCallWait(pVM, VMCPUID_ANY, (PFNRT)dbgfR3BpDisable, 2, pVM, iBp);
849
847
    LogFlow(("DBGFR3BpDisable: returns %Rrc\n", rc));
850
848
    return rc;
851
849
}
895
893
            break;
896
894
 
897
895
        default:
898
 
            AssertMsgFailed(("Invalid enmType=%d!\n", pBp->enmType));
899
 
            return VERR_INTERNAL_ERROR;
 
896
            AssertMsgFailedReturn(("Invalid enmType=%d!\n", pBp->enmType), VERR_IPE_NOT_REACHED_DEFAULT_CASE);
900
897
    }
901
898
 
902
899
    return rc;
915
912
VMMR3DECL(int) DBGFR3BpEnum(PVM pVM, PFNDBGFBPENUM pfnCallback, void *pvUser)
916
913
{
917
914
    /*
918
 
     * This must be done in EMT.
 
915
     * This must be done on EMT.
919
916
     */
920
 
    int rc = VMR3ReqCallWait(pVM, VMCPUID_ANY, (PFNRT)dbgfR3BpEnum, 3, pVM, pfnCallback, pvUser);
 
917
    int rc = VMR3ReqPriorityCallWait(pVM, VMCPUID_ANY, (PFNRT)dbgfR3BpEnum, 3, pVM, pfnCallback, pvUser);
921
918
    LogFlow(("DBGFR3BpClear: returns %Rrc\n", rc));
922
919
    return rc;
923
920
}