[dpdk-dev] [PATCH v2] vhost: fix mmap failure as len not aligned with hugepage size

Thomas Monjalon thomas.monjalon at 6wind.com
Thu Nov 12 12:18:53 CET 2015


2015-11-12 06:04, Jianfeng Tan:
> -			alignment = region[idx].blksz;
> -			munmap((void *)(uintptr_t)
> -				RTE_ALIGN_FLOOR(
> -					region[idx].mapped_address, alignment),
> -				RTE_ALIGN_CEIL(
> -					region[idx].mapped_size, alignment));
> +			munmap((void *)region[idx].mapped_address,
> +					region[idx].mapped_size);

Sorry, it does not compile for 32-bit:
virtio-net-user.c:84:11: error: cast to pointer from integer of different size



More information about the dev mailing list