]> 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)
commit15294ac7f00c566bf8602609579831128946e372
tree3eacc9fd60396174a94c8bd02326e930ff94351d
parent5b9f656c1257fb9646946b5db9d58a49b3e9cf80
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