]> git.baikalelectronics.ru Git - kernel.git/commit
vhost: init used ring after backend was set
authorJason Wang <jasowang@redhat.com>
Tue, 21 Jun 2011 10:04:27 +0000 (18:04 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Tue, 19 Jul 2011 10:28:34 +0000 (13:28 +0300)
commit7b450a39f4f989d7f8a3674d7d28e3b21be3bba0
tree3eacc9fd60396174a94c8bd02326e930ff94351d
parentc2cbbe0993f673042fb650d5c0ebe95826e7be49
vhost: init used ring after backend was set

Move the used ring initialization after backend was set. This
makes it possible to disable the backend and tweak the used ring,
then restart. This will also make it possible to log the used ring
write correctly.

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