vhost: support config change slave message
authorLi Feng <fengli@smartx.com>
Fri, 20 Dec 2019 08:22:55 +0000 (16:22 +0800)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 17 Jan 2020 18:46:26 +0000 (19:46 +0100)
commit109c38b2e9aacfb2b5f4f4c28cf4025b444b70f1
tree958a175b74f14690a3e6556e9cf60b6cdc112165
parent47ac9661b68275321fae0876cce743b9d17671fe
vhost: support config change slave message

This msg is used to notify qemu that should get the config of backend.

For example, vhost-user-blk uses this msg to notify guest OS the
capacity of backend has changed.

The need_reply flag is not mandatory because it will block the sender
thread and master process will send get_config message to fetch the
configuration, this need an extra thread to process the vhost message.

Signed-off-by: Li Feng <fengli@smartx.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
lib/librte_vhost/rte_vhost.h
lib/librte_vhost/rte_vhost_version.map
lib/librte_vhost/vhost_user.c
lib/librte_vhost/vhost_user.h