VirtualBox

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


Ignore:
Timestamp:
May 7, 2009 10:55:17 AM (16 years ago)
Author:
vboxsync
Message:

VMM: sending init IPI

File:
1 edited

Legend:

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

    r19468 r19475  
    100100}
    101101
     102DECLCALLBACK(int) vmmR3SendInitIpi(PVM pVM, VMCPUID idCpu)
     103{
     104    PVMCPU pVCpu = VMMGetCpuById(pVM, idCpu);
     105    VMCPU_ASSERT_EMT(pVCpu);
     106
     107    /** @todo: reset CPU and halt till SIPI */
     108
     109    return VINF_SUCCESS;
     110}
     111
    102112/**
    103113 * Sends SIPI to the virtual CPU by setting CS:EIP into vector-dependent state
     
    115125    int rc = VMR3ReqCallU(pVM->pUVM, idCpu, &pReq, RT_INDEFINITE_WAIT, 0,
    116126                          (PFNRT)vmmR3SendSipi, 3, pVM, idCpu, uVector);
     127    AssertRC(rc);
     128    VMR3ReqFree(pReq);
     129}
     130
     131/**
     132 * Sends init IPI to the virtual CPU.
     133 *
     134 * @param   pVM         The VM to operate on.
     135 * @param   idCpu       Virtual CPU to perform int IPI on
     136 */
     137VMMR3DECL(void) VMMR3SendInitIpi(PVM pVM, VMCPUID idCpu)
     138{
     139    AssertReturnVoid(idCpu < pVM->cCPUs);
     140
     141    PVMREQ pReq;
     142    int rc = VMR3ReqCallU(pVM->pUVM, idCpu, &pReq, RT_INDEFINITE_WAIT, 0,
     143                          (PFNRT)vmmR3SendInitIpi, 2, pVM, idCpu);
    117144    AssertRC(rc);
    118145    VMR3ReqFree(pReq);
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