Skip to content
Commit 526d3e7f authored by Jason Wang's avatar Jason Wang Committed by Michael S. Tsirkin
Browse files

vhost: introduce vhost_has_work()



This path introduces a helper which can give a hint for whether or not
there's a work queued in the work list. This could be used for busy
polling code to exit the busy loop.

Signed-off-by: default avatarJason Wang <jasowang@redhat.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
parent fd0e21c3
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment