VirtualBox

Changeset 30256 in vbox


Ignore:
Timestamp:
Jun 16, 2010 3:14:10 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
62758
Message:

Incorrect queue option resulted in deadlocks

File:
1 edited

Legend:

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

    r30248 r30256  
    161161 *
    162162 * @param   pVM         The VM handle.
    163  */
    164 static DECLCALLBACK(void) pgmR3CheckSharedModulesHelper(PVM pVM)
    165 {
    166     VMCPUID idCpu = VMMGetCpuId(pVM);
    167 
     163 * @param   VMCPUID     VCPU id
     164 */
     165static DECLCALLBACK(void) pgmR3CheckSharedModulesHelper(PVM pVM, VMCPUID idCpu)
     166{
    168167    /* We must stall other VCPUs as we'd otherwise have to send IPI flush commands for every single change we make. */
    169168    int rc = VMMR3EmtRendezvous(pVM, VMMEMTRENDEZVOUS_FLAGS_TYPE_ONE_BY_ONE, pgmR3SharedModuleRegRendezvous, &idCpu);
     
    182181#ifdef VBOX_WITH_PAGE_SHARING
    183182    /* Queue the actual registration as we are under the IOM lock right now. Perform this operation on the way out. */
    184     return VMR3ReqCallNoWait(pVM, VMMGetCpuId(pVM), (PFNRT)pgmR3CheckSharedModulesHelper, 1, pVM);
     183    return VMR3ReqCallNoWait(pVM, VMCPUID_ANY_QUEUE, (PFNRT)pgmR3CheckSharedModulesHelper, 2, pVM, VMMGetCpuId(pVM));
    185184#else
    186185    return VERR_NOT_IMPLEMENTED;
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette