79f99ccce0
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>