tools/testing/nvdimm: Align test resources to 128M
authorDan Williams <dan.j.williams@intel.com>
Wed, 5 Dec 2018 22:11:48 +0000 (14:11 -0800)
committerDan Williams <dan.j.williams@intel.com>
Wed, 5 Dec 2018 22:11:48 +0000 (14:11 -0800)
commite3f5df762d4a6ef6326c3c09bc9f89ea8a2eab2c
treeadafa4e9e1aa6ab8ac7f496e038fc1486f5ca723
parent9ff01193a20d391e8dbce4403dd5ef87c7eaaca6
tools/testing/nvdimm: Align test resources to 128M

In preparation for libnvdimm growing new restrictions to detect section
conflicts between persistent memory regions, enable nfit_test to
allocate aligned resources. Use a gen_pool to allocate nfit_test's fake
resources in a separate address space from the virtual translation of
the same.

Reviewed-by: Vishal Verma <vishal.l.verma@intel.com>
Tested-by: Vishal Verma <vishal.l.verma@intel.com>
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
tools/testing/nvdimm/test/nfit.c