Re: vmd(8): fix deadlock during pausing

2023-09-25 Thread Mike Larkin
On Sun, Sep 24, 2023 at 01:07:43AM -0400, Dave Voutila wrote: > vmd has a sneaky little deadlock hidden in the pause logic related to > the use of mutexes and condition variables. > > When pausing, the vcpu is holding the "run" mutex. It then sleeps > waiting for the unpause condition. If the

vmd(8): fix deadlock during pausing

2023-09-23 Thread Dave Voutila
vmd has a sneaky little deadlock hidden in the pause logic related to the use of mutexes and condition variables. When pausing, the vcpu is holding the "run" mutex. It then sleeps waiting for the unpause condition. If the event thread is trying to assert an irq, it will try to lock that "run"