Implemented vhost abstraction layer in preparations for vhost-blk. Generalized vhost interface and separated vhost-scsi code. Code placement: vhost.h * vhost_startup() & shutdown() * public generic controller API vhost_internal.h * includes rte_vhost.h from DPDK * struct spdk_vhost_dev (it has to be inherited by vhost_scsi) * vhost_dev management * register/unregister() to be used in new_device()/destroy_device() * construct/destruct() to be used on permanent creation/destruction. * reactor core management vhost_scsi.h * spdk_vhost_scsi_dev management * reading VhostScsi section of vhost config file * creating/removing controllers * adding/removing devices to controllers vhost_scsi.c * virtio scsi logic * new_device(), destroy_device() Change-Id: Iaf661b14eba034593bef24853c525935d9b18e46 Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/361963 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Pawel Wodkowski <pawelx.wodkowski@intel.com> |
||
---|---|---|
.. | ||
linux | ||
rte_vhost | ||
Makefile | ||
task.c | ||
task.h | ||
vhost_internal.h | ||
vhost_iommu.c | ||
vhost_iommu.h | ||
vhost_rpc.c | ||
vhost_scsi.c | ||
vhost_scsi.h | ||
vhost.c |