vhost: notify virtq file descriptor update
authorMatan Azrad <matan@mellanox.com>
Mon, 29 Jun 2020 14:08:20 +0000 (14:08 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 30 Jun 2020 12:52:31 +0000 (14:52 +0200)
commitb213af9aa4804ceb628cff7a248a8025068915cb
tree7150eb73cca3618691efe9bf958d15c963ae9471
parent127f9c6f7b78a47b73b3e1c39e021cc81a30b4c9
vhost: notify virtq file descriptor update

When virtq call or kick file descriptors are changed in the device
configuration when the queue is ready, the application and the vDPA
driver should be notified to be aligned to the new file descriptors.

Notify the state to be disabled before the file descriptor update and
return it back to be enabled after the update.

Signed-off-by: Matan Azrad <matan@mellanox.com>
Reviewed-by: Maxime Coquelin <maxime.coquelin@redhat.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
lib/librte_vhost/vhost_user.c