The DMA-able vrings are allocated separately, so the general virtqueue object can be allocated with regular malloc - it only contains some local PMD context. While here, also allocate those DMA-able vrings using spdk_zmalloc() instead of spdk_dma_zmalloc(), as spdk_dma_*malloc() is about to be deprecated. Change-Id: I06b9e0256c14c21747c253f05b63ef2361f465c7 Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com> Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/450550 Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Shuhei Matsumoto <shuhei.matsumoto.xt@hitachi.com> |
||
---|---|---|
.. | ||
virtio_user | ||
Makefile | ||
virtio_pci.c | ||
virtio_user.c | ||
virtio.c |