Spdk/lib/vhost
Shuhei Matsumoto e008db08e7 rpc: Add state_mask to each RPC method to make sets of RPCs
Add state_mask to each RPC method and state to RPC server, respectively.
State mask of RPC method is set at registration. State of RPC server
is changed according to the state of the SPDK.

When any RPC method is recieved, if the bit of the RPC server is on in
the state mask of the RPC method, it is allowed. Otherwise, it is
rejected.

When any RPC is rejected by state_mask control, the new error code
is returned to describe the error clearly.

Change-Id: I84e52b8725a286e9329d61c56f498aa2c8664ec1
Signed-off-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com>
Reviewed-on: https://review.gerrithub.io/407397
Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com>
Reviewed-by: Pawel Wodkowski <pawelx.wodkowski@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
2018-05-03 19:48:15 +00:00
..
rte_vhost vhost: fix build with DPDK 17.02 and older 2018-04-25 22:27:02 +00:00
Makefile vhost_user_nvme: add vhost user nvme target to SPDK 2018-04-03 15:01:24 -04:00
vhost_blk.c vhost_scsi: support initiators without eventq/controlq 2018-04-23 20:23:30 +00:00
vhost_internal.h vhost_scsi: support initiators without eventq/controlq 2018-04-23 20:23:30 +00:00
vhost_nvme.c vhost_nvme: add JSON config dump 2018-05-03 19:45:42 +00:00
vhost_rpc.c rpc: Add state_mask to each RPC method to make sets of RPCs 2018-05-03 19:48:15 +00:00
vhost_scsi.c vhost/scsi: handle spdk_vhost_gpa_to_vva() failure 2018-04-24 16:02:58 +00:00
vhost.c vhost_scsi: support initiators without eventq/controlq 2018-04-23 20:23:30 +00:00