VirtualBox

Changeset 19668 in vbox


Ignore:
Timestamp:
May 13, 2009 3:57:19 PM (16 years ago)
Author:
vboxsync
Message:

vmmR3ServiceCallHostRequest: check for pending pdm critical section releases (deadlock).

File:
1 edited

Legend:

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

    r19666 r19668  
    6060#include <VBox/cfgm.h>
    6161#include <VBox/pdmqueue.h>
     62#include <VBox/pdmcritsect.h>
    6263#include <VBox/pdmapi.h>
    6364#include <VBox/cpum.h>
     
    15241525static int vmmR3ServiceCallHostRequest(PVM pVM, PVMCPU pVCpu)
    15251526{
     1527    /* We must also check for pending releases or else we can deadlock when acquiring a new lock here.
     1528     * On return we go straight back to R0/GC.
     1529     */
     1530    if (VMCPU_FF_ISPENDING(pVCpu, VMCPU_FF_PDM_CRITSECT))
     1531        PDMR3CritSectFF(pVCpu);
     1532
    15261533    switch (pVCpu->vmm.s.enmCallHostOperation)
    15271534    {
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