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)
commitf59281dafb832b161133743fcf3dc29051e6fdb8
tree3eacc9fd60396174a94c8bd02326e930ff94351d
parent81fc70d86527a1450560709500ca5f52e661da1f
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