Spdk/lib/bdev/virtio/rte_virtio/virtio_user
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
..
vhost_user.c rte_virtio: check payload size in vhost_user_read 2017-10-25 18:30:18 -04:00
vhost.h rte_virtio: use spdk/stdinc.h 2017-10-24 17:19:44 -04:00
virtio_user_dev.c rte_virtio: add virtio_dev->ctx field 2017-11-21 17:21:00 -05:00
virtio_user_dev.h rte_virtio: add virtio_dev->ctx field 2017-11-21 17:21:00 -05:00