Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1688554 > unrolled thread

[PATCH 7/8] x86/mm: Allow userspace have mapping above 47-bit

Started by"Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
First post2017-07-17 01:10 +0200
Last post2017-07-17 01:10 +0200
Articles 1 — 1 participant

Back to article view | Back to linux.kernel

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  [PATCH 7/8] x86/mm: Allow userspace have mapping above 47-bit "Kirill A. Shutemov" <kirill.shutemov@linux.intel.com> - 2017-07-17 01:10 +0200

#1688554 — [PATCH 7/8] x86/mm: Allow userspace have mapping above 47-bit

From"Kirill A. Shutemov" <kirill.shutemov@linux.intel.com>
Date2017-07-17 01:10 +0200
Subject[PATCH 7/8] x86/mm: Allow userspace have mapping above 47-bit
Message-ID<u40PM-5t4-27@gated-at.bofh.it>
All bits and pieces now in place and we can allow userspace to have VMAs
above 47-bit.

Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
---
 arch/x86/include/asm/processor.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/arch/x86/include/asm/processor.h b/arch/x86/include/asm/processor.h
index 91362921eb05..06d4dd8aca5d 100644
--- a/arch/x86/include/asm/processor.h
+++ b/arch/x86/include/asm/processor.h
@@ -844,9 +844,9 @@ static inline void spin_lock_prefetch(const void *x)
  * particular problem by preventing anything from being mapped
  * at the maximum canonical address.
  */
-#define TASK_SIZE_MAX	((1UL << 47) - PAGE_SIZE)
+#define TASK_SIZE_MAX	((1UL << __VIRTUAL_MASK_SHIFT) - PAGE_SIZE)
 
-#define DEFAULT_MAP_WINDOW	TASK_SIZE_MAX
+#define DEFAULT_MAP_WINDOW	((1UL << 47) - PAGE_SIZE)
 
 /* This decides where the kernel will search for a free chunk of vm
  * space during mmap's.
-- 
2.11.0

[toc] | [standalone]


Back to top | Article view | linux.kernel


csiph-web