On Wed, Apr 11, 2018 at 06:53:13AM -0400, Junjie Chen wrote:
dev_start sets *dev_attached* after setup queues, this sets device to
invalid state since no frontend is attached. Also destroy_device set
*started* to zero which makes *allow_queuing* always zero until dev_start
get called again. Actually, we should not determine queues existence by
*dev_attached* but by queues pointers or other separated variable(s).
Fixes: 30a701a53737 ("net/vhost: fix crash when creating vdev
Signed-off-by: Junjie Chen <junjie.j.c...@intel.com>
Changes in v2:
- use started to determine vhost queues readiness
- revert setting started to zero in destroy_device
This one works for me. Thanks!
Tested-by: Jens Freimann <jfreim...@redhat.com>