]> git.baikalelectronics.ru Git - kernel.git/commit
vhost: zerocopy: poll vq in zerocopy callback
authorJason Wang <jasowang@redhat.com>
Wed, 2 May 2012 03:42:54 +0000 (11:42 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 2 May 2012 15:22:25 +0000 (18:22 +0300)
commit28b92e21f335f1b63c773ec20bfa6443c37ed52e
treec02be13561a4a9347efd42cb6379950e5e277025
parentdef2dc69694e71ae0d23e0ce82e191f059905344
vhost: zerocopy: poll vq in zerocopy callback

We add used and signal guest in worker thread but did not poll the virtqueue
during the zero copy callback. This may lead the missing of adding and
signalling during zerocopy. Solve this by polling the virtqueue and let it
wakeup the worker during callback.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/vhost.c