VirtualBox

Changeset 19468 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
May 7, 2009 9:03:15 AM (16 years ago)
Author:
vboxsync
Message:

VMM: better SIPI sending, reschedule to R3 as needed

File:
1 edited

Legend:

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

    r19450 r19468  
    9999# endif
    100100}
    101 #endif /* IN_RING3 */
    102 
    103101
    104102/**
     
    108106 * @param   pVM         The VM to operate on.
    109107 * @param   idCpu       Virtual CPU to perform SIPI on
    110  * @param   iVector     SIPI vector
    111  */
    112 VMMDECL(void) VMMSendSipi(PVM pVM, VMCPUID idCpu, int iVector) /** @todo why is iVector signed? */
     108 * @param   uVector     SIPI vector
     109 */
     110VMMR3DECL(void) VMMR3SendSipi(PVM pVM, VMCPUID idCpu,  uint32_t uVector)
    113111{
    114112    AssertReturnVoid(idCpu < pVM->cCPUs);
    115113
    116 #ifdef IN_RING3
    117114    PVMREQ pReq;
    118115    int rc = VMR3ReqCallU(pVM->pUVM, idCpu, &pReq, RT_INDEFINITE_WAIT, 0,
    119                           (PFNRT)vmmR3SendSipi, 3, pVM, idCpu, (uint32_t)iVector);
     116                          (PFNRT)vmmR3SendSipi, 3, pVM, idCpu, uVector);
    120117    AssertRC(rc);
    121118    VMR3ReqFree(pReq);
    122 #else
    123     AssertMsgFailed(("has to be done in ring-3, fix the code.\n"));
    124 #endif
    125 }
     119}
     120#endif /* IN_RING3 */
    126121
    127122
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