+1
−0
+1
−1
lib/bdev/virtio/bdev_virtio_blk.c
0 → 100644
+625
−0
Loading
Briefly tested with SPDK target via bdevio through both vhost-user and QEMU's virtio-pci. vhost-blk driver is not mentioned in any doc yet. A virtio-blk bdev can be created as following: `construct_virtio_user_blk_bdev /tmp/virtio.0 MyVirtioBlk0 --vq-count 16` `construct_virtio_pci_blk_bdev 0000:01:00.0 MyVirtioBlk1` or ``` [VirtioUser0] Path /tmp/vhost.0 Type Blk Queues 16 [VirtioPci] Enable Yes ``` If `Type` field is not present, the VirtioUser section will be parsed as a SCSI one, preserving backward compatibility. Change-Id: I3eae9f3b90570fbb0177df4951e5eed86fe07c66 Signed-off-by:Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/393056 Tested-by:
SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by:
Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com>