Spdk/lib/bdev/virtio
Dariusz Stojaczyk 79f99ccce0 rte_virtio: add virtio_dev->ctx field
This patch initiates the removal
of the vtpci layer from rte_virtio.

The general idea is to provide separate
virtio_dev_construct and virtio_dev_init
functions. construct would just allocate
and setup the struct data. init would
be the one to start the device via
MMIO/vhost-user. virtio_dev_construct
takes 2 params - backend ops and backend
context. The context is kept as void*
and can be cast to proper structs inside
backend ops callbacks.

Change-Id: I1d6d92e1cf09b9d0c9fa4fd2cb70203e3fc7e65b
Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/387553
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>
2017-11-21 17:21:00 -05:00
..
rte_virtio rte_virtio: add virtio_dev->ctx field 2017-11-21 17:21:00 -05:00
bdev_virtio_rpc.c bdev_virtio/rpc: add construct_virtio_user_scsi_bdev 2017-10-25 18:31:56 -04:00
bdev_virtio.c rte_virtio: move vtpci reset out of virtio_dev_free 2017-11-21 17:21:00 -05:00
bdev_virtio.h bdev_virtio/rpc: add construct_virtio_user_scsi_bdev 2017-10-25 18:31:56 -04:00
Makefile bdev_virtio/rpc: add construct_virtio_user_scsi_bdev 2017-10-25 18:31:56 -04:00