OSDN Git Service

device-dax: Add support for a dax override driver
authorDan Williams <dan.j.williams@intel.com>
Wed, 7 Nov 2018 23:31:23 +0000 (15:31 -0800)
committerDan Williams <dan.j.williams@intel.com>
Mon, 7 Jan 2019 05:41:55 +0000 (21:41 -0800)
commitd200781ef237a354d918ceff5cee350d88a93d42
treeafd53c6e25a57e31b8c0c8542e086bd50840bc9a
parent89ec9f2cfa36cc5fca2fb445ed221bb9add7b536
device-dax: Add support for a dax override driver

Introduce the 'new_id' concept for enabling a custom device-driver attach
policy for dax-bus drivers. The intended use is to have a mechanism for
hot-plugging device-dax ranges into the page allocator on-demand. With
this in place the default policy of using device-dax for performance
differentiated memory can be overridden by user-space policy that can
arrange for the memory range to be managed as 'System RAM' with
user-defined NUMA and other performance attributes.

Signed-off-by: Dan Williams <dan.j.williams@intel.com>
drivers/dax/bus.c
drivers/dax/bus.h
drivers/dax/device.c