vhost: skip access lock when vDPA is configured
authorMatan Azrad <matan@mellanox.com>
Mon, 29 Jun 2020 14:08:17 +0000 (14:08 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 30 Jun 2020 12:52:30 +0000 (14:52 +0200)
commit9f2016b2cee95fecb5356dc15711de8532b63b54
tree4cdb7ff075e07f063bfdb158b9f1f15a50b23d0e
parent0329868d6a46cf1865cdd93f4a2e4ffe5715f29c
vhost: skip access lock when vDPA is configured

No need to take access lock in the vhost-user message handler when
vDPA driver controls all the data-path of the vhost device.

It allows the vDPA set_vring_state operation callback to configure
guest notifications.

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