VirtualBox

Changeset 95164 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Jun 1, 2022 2:10:36 PM (3 years ago)
Author:
vboxsync
Message:

Devices/Graphics: avoid deadlock on power off.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Devices/Graphics/DevVGA-SVGA.cpp

    r94830 r95164  
    69426942    if (pThisCC->svga.pFIFOIOThread)
    69436943    {
     6944        /* Hack around a deadlock:
     6945         * - the caller holds the device critsect;
     6946         * - FIFO thread may attempt to enter the critsect too (when raising an IRQ).
     6947         */
     6948        PDMDevHlpCritSectLeave(pDevIns, &pThis->CritSect);
     6949
    69446950        int rc = vmsvgaR3RunExtCmdOnFifoThread(pDevIns, pThis, pThisCC,  VMSVGA_FIFO_EXTCMD_POWEROFF,
    69456951                                               NULL /*pvParam*/, 30000 /*ms*/);
    69466952        AssertLogRelRC(rc);
     6953
     6954        int const rcLock = PDMDevHlpCritSectEnter(pDevIns, &pThis->CritSect, VERR_IGNORED);
     6955        PDM_CRITSECT_RELEASE_ASSERT_RC_DEV(pDevIns, &pThis->CritSect, rcLock);
    69476956    }
    69486957}
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