lkml.org 
[lkml]   [2018]   [Feb]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 1/3] x86/xen: Allow XEN_PV and XEN_PVH to be enabled with X86_5LEVEL
On Fri, Feb 16, 2018 at 02:49:46PM +0300, Kirill A. Shutemov wrote:
> @@ -38,12 +38,12 @@
> *
> */
>
> +#define l4_index(x) (((x) >> 39) & 511)
> #define pud_index(x) (((x) >> PUD_SHIFT) & (PTRS_PER_PUD-1))

Shouldn't that be
+#define p4d_index(x) (((x) >> P4D_SHIFT) & (PTRS_PER_P4D-1))

\
 
 \ /
  Last update: 2018-02-16 15:12    [W:0.045 / U:0.612 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site