numam-spdk/lib/virtio
Darek Stojaczyk 12f622b769 virtio: zero-out virtqueue structures at init
They used to be allocated with spdk_dma_zmalloc() which did
provide zeroed memory, but we unintentionally changed that
when switching to posix_memalign.

The structure might have some unitialized memory, so with
this patch we just memset it right after allocating it.

Change-Id: Id5a5685e09419901513925abaeed605c36f5199a
Signed-off-by: Darek Stojaczyk <dariusz.stojaczyk@intel.com>
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/451546
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2019-04-22 16:49:39 +00:00
..
virtio_user virtio: export spec-defined structures into a separate header 2019-03-13 14:26:20 +00:00
Makefile virtio: add new library virtio 2017-12-26 13:03:29 -05:00
virtio_pci.c virtio: allocate virtqueue structs using regular calloc 2019-04-17 22:53:05 +00:00
virtio_user.c virtio: allocate virtqueue structs using regular calloc 2019-04-17 22:53:05 +00:00
virtio.c virtio: zero-out virtqueue structures at init 2019-04-22 16:49:39 +00:00