Init commit for opal vbdev. Opal vbdev is built based on bdev part module. We split nvme namespace to spdk_bdev_part with user specified offset and length. And then use this configuration also to set up locking range for Opal. Use linked list g_opal_vbdev to track all configuration for each vbdev. And use g_opal_base to track the part_base for all vbdevs. This patch only shows the process for creating/deleting a vbdev for an opal-enabled nvme ctrlr. change-Id: I6073637d7360ebdd6b53fb7b6a01ad73f1daa98e Signed-off-by: Chunyang Hui <chunyang.hui@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/468190 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: GangCao <gang.cao@intel.com> Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Ziye Yang <ziye.yang@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> |
||
---|---|---|
.. | ||
bdev | ||
blob | ||
blobfs | ||
copy | ||
event | ||
sock | ||
Makefile |