da5ba48996
This is required for future changes. The general idea is to provide separate virtio_dev_construct and virtio_dev_init functions. construct would just allocate and setup the struct data, while init would be the one to start the device via MMIO/vhost-user. If we want to destruct a non-initialized device, there's no need to do a reset. Change-Id: Ib8ce56169e86e43fba8fcd1bf6c2a5b12ed99966 Signed-off-by: Dariusz Stojaczyk <dariuszx.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/385421 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>