Spdk/lib/vhost
Liu Xiaodong 762db2a4f4 vhost: register memtable once if unchanged
Move memtable register out of start_device, into
post_handler for vhost-msg SET_MEMTABLE;
And unregister memtable in destroy_connection
instead of destroy_device

If memtable info not changed in the msg, then we
don't need to register it multi times.

Signed-off-by: Liu Xiaodong <xiaodong.liu@intel.com>
Change-Id: I0f8c76c1ee43b6f981d703beeba92da5dac4dbd6
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/14263
Community-CI: Mellanox Build Bot
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Changpeng Liu <changpeng.liu@intel.com>
Reviewed-by: Aleksey Marchuk <alexeymar@nvidia.com>
2022-09-19 13:12:24 +00:00
..
Makefile Replace most BSD 3-clause license text with SPDX identifier. 2022-06-09 07:35:12 +00:00
rte_vhost_user.c vhost: register memtable once if unchanged 2022-09-19 13:12:24 +00:00
spdk_vhost.map event/vhost: separate vhost subsystem to scsi and blk 2022-05-20 09:20:07 +00:00
vhost_blk.c vhost: move the session_start_done calls to common layer 2022-09-09 15:31:06 +00:00
vhost_internal.h vhost: don't kick VM when there are outstanding vhost-user messages 2022-09-09 15:31:06 +00:00
vhost_rpc.c vhost/rpc: return errno from virtio_blk_create_transport 2022-07-11 07:41:22 +00:00
vhost_scsi.c vhost: move the session_start_done calls to common layer 2022-09-09 15:31:06 +00:00
vhost.c Replace most BSD 3-clause license text with SPDX identifier. 2022-06-09 07:35:12 +00:00