Loading
test/unit: use posix_memalign() to allocate vsession and virtqueue
The local struct variables on the stack are not properly aligned as expected if we build and run the vhost_ut under Fedora 38, similar to #3004. Declaring the variables with the aligned attribute doesn't work either, so just use posix_memalign() to work around this. Fixes #3310. Signed-off-by:Yuhua He <yuhua@smartx.com> Change-Id: Id5b2ec1966cb1bfca7471740f64955510b27f452 Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/22449 Reviewed-by:
Shuhei Matsumoto <smatsumoto@nvidia.com> Reviewed-by:
Jim Harris <jim.harris@samsung.com> Reviewed-by:
Tomasz Zawadzki <tomasz.zawadzki@intel.com> Community-CI: Mellanox Build Bot Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com>