summaryrefslogtreecommitdiff
path: root/usr.sbin/lpd/lp.h
diff options
context:
space:
mode:
authorpd <pd@cvs.openbsd.org>2019-12-11 06:45:18 +0000
committerpd <pd@cvs.openbsd.org>2019-12-11 06:45:18 +0000
commit8d7817e44147a6a9edd122bc90b6e206018c544f (patch)
treef700966027033239fbb9ba973043263dbc728a02 /usr.sbin/lpd/lp.h
parentd33d30f8367dacbf9c8da4d835866eeb9522b9a0 (diff)
vmd: proper concurrency control when pausing a vm
Removes an XXX which slept for 1s waiting for the vcpu thread to reach HLT and pause. We now define a paused and unpaused condition so that a call to pause_vm() / vmctl pause blocks till the vm really reaches a paused state. Also, detach events for devices from event loop when pausing and add them back when unpausing. This is because some callbacks call pthread_mutex_lock and if the vm is paused, it would block also causing the libevent thread to block. This would mean that we would not be able to process any IMSGs received from vmm (parent process) including a message to unpause. ok mlarkin@
Diffstat (limited to 'usr.sbin/lpd/lp.h')
0 files changed, 0 insertions, 0 deletions