vhost_user: code cleanup 77/10177/3
authorHaiyang Tan <haiyang.tan.dev@gmail.com>
Sat, 20 Jan 2018 09:48:53 +0000 (04:48 -0500)
committerDamjan Marion <dmarion.lists@gmail.com>
Mon, 5 Feb 2018 12:13:35 +0000 (12:13 +0000)
commit7b0933a97d8830e288ab3e350b07656196599847
treeb0143a79afbf9f704df6bb14194650eaf35dd1e3
parent56e6f095e35799cb1fe2080f5242e3d9876baa22
vhost_user: code cleanup

1. Replace the magic number '-1' with MAP_FAILED
2. On x86 platform, QEMU uses vhostuser required the memory back-end is file based,
   the file could be tmpfs(4K page size) or hugetlbfs(2M or 1G page size)

Change-Id: If1818cb6833728d641f68e4d4a3bc645e70f2ee6
Signed-off-by: Haiyang Tan <haiyang.tan.dev@gmail.com>
src/vnet/devices/virtio/vhost-user.c