diff options
author | Dan Williams <dan.j.williams@intel.com> | 2016-01-15 16:56:37 -0800 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2016-01-15 17:56:32 -0800 |
commit | 69660fd797c3e52f7f20478a27687f293d1a41be (patch) | |
tree | 10dd8c4c32b756c4bf694f463fddaa226f0c466d /mm/memory.c | |
parent | 6d8113c75a72f80164cc68b1af45f1608f9a36c6 (diff) | |
download | lwn-69660fd797c3e52f7f20478a27687f293d1a41be.tar.gz lwn-69660fd797c3e52f7f20478a27687f293d1a41be.zip |
x86, mm: introduce _PAGE_DEVMAP
_PAGE_DEVMAP is a hardware-unused pte bit that will later be used in the
get_user_pages() path to identify pfns backed by the dynamic allocation
established by devm_memremap_pages. Upon seeing that bit the gup path
will lookup and pin the allocation while the pages are in use.
Since the _PAGE_DEVMAP bit is > 32 it must be cast to u64 instead of a
pteval_t to allow pmd_flags() usage in the realmode boot code to build.
Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Ingo Molnar <mingo@redhat.com>
Cc: "H. Peter Anvin" <hpa@zytor.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm/memory.c')
0 files changed, 0 insertions, 0 deletions