vhost: configure vDPA device after set vring call message
authorXiaolong Ye <xiaolong.ye@intel.com>
Mon, 14 Jan 2019 07:34:24 +0000 (15:34 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Jan 2019 08:47:26 +0000 (09:47 +0100)
commit9f90145128229b57a10bc6a37ff3c17a01b1f58f
tree79e5187d9ed86b0208c688028f243fc124ea1505
parent329054ed1df3771df4b59214b5f69b7e6c5b2e8e
vhost: configure vDPA device after set vring call message

As qemu will only send VHOST_USER_SET_VRING_ENABLE message for guest
enabled vrings (only first queue pair will be enabled at initialized
stage), this will cause trouble for multiqueue case, vDPA's dev_conf
callback will get no chance be invoked. Decouple the dev_conf callback from
VHOST_USER_SET_VRING_ENABLE solves this issue.

Signed-off-by: Xiaolong Ye <xiaolong.ye@intel.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/vhost_user.c