lkml.org 
[lkml]   [2016]   [Dec]   [17]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [RFC PATCH 05/14] sparc64: Add PAGE_SHR_CTX flag
From
From: Mike Kravetz <mike.kravetz@oracle.com>
Date: Fri, 16 Dec 2016 10:35:28 -0800

> @@ -166,6 +166,7 @@ bool kern_addr_valid(unsigned long addr);
> #define _PAGE_EXEC_4V _AC(0x0000000000000080,UL) /* Executable Page */
> #define _PAGE_W_4V _AC(0x0000000000000040,UL) /* Writable */
> #define _PAGE_SOFT_4V _AC(0x0000000000000030,UL) /* Software bits */
> +#define _PAGE_SHR_CTX_4V _AC(0x0000000000000020,UL) /* Shared Context */
> #define _PAGE_PRESENT_4V _AC(0x0000000000000010,UL) /* Present */
> #define _PAGE_RESV_4V _AC(0x0000000000000008,UL) /* Reserved */
> #define _PAGE_SZ16GB_4V _AC(0x0000000000000007,UL) /* 16GB Page */

You really don't need this.

The VMA is available, and you can obtain the information you need
about whether this is a shared mapping or not from the. It just isn't
being passed down into things like set_huge_pte_at(). Simply make it
do so.

\
 
 \ /
  Last update: 2016-12-18 04:13    [W:0.146 / U:0.452 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site