Spdk/lib/vhost
Jim Harris e22df3fbcf vhost: use mmap_size to check for 2MB hugepage multiple
Older versions of QEMU (<= 2.11) expose the VGA BIOS
hole (0xA0000-0xBFFFF) by specifying two separate memory
regions - one before and one after the hole.  This results
in the "size" not being a 2MB multiple.  But the underlying
memory is still mmaped at a 2MB multiple - so that's what
we should be checking to ensure the memory is hugepage backed.

Fixes #673.

Signed-off-by: Jim Harris <james.r.harris@intel.com>
Change-Id: I1644bb6d8a8fb1fd51a548ae7a17da061c18c669
Reviewed-on: https://review.gerrithub.io/c/445764 (master)
Reviewed-on: https://review.gerrithub.io/c/spdk/spdk/+/447457
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
2019-03-08 19:05:07 +00:00
..
rte_vhost vhost: do not close a closed connfd 2019-01-16 05:11:58 +00:00
Makefile vhost_user_nvme: add vhost user nvme target to SPDK 2018-04-03 15:01:24 -04:00
vhost_blk.c vhost: fail I/Os with payload length = 0 2019-01-28 18:54:52 +00:00
vhost_internal.h vhost: move lcore management to the device backend 2019-01-25 09:28:42 +00:00
vhost_nvme.c vhost/nvme: fix vhost-nvme target with session feature 2019-01-29 06:47:18 +00:00
vhost_rpc.c vhost_nvme/rpc: free partially decoded request 2019-01-22 01:09:59 +00:00
vhost_scsi.c vhost: assert to_scsi_dev and to_blk_dev returns 2019-01-25 19:47:23 +00:00
vhost.c vhost: use mmap_size to check for 2MB hugepage multiple 2019-03-08 19:05:07 +00:00