Re: [PATCH 00/23] [v4] KAISER: unmap most of the kernel from userspace page tables

From: Dave Hansen
Date: Fri Nov 24 2017 - 01:42:00 EST


On 11/23/2017 10:35 PM, Ingo Molnar wrote:
> So the pteval_t changes break the build on most non-x86 architectures (alpha, arm,
> arm64, etc.), because most of them don't have an asm/pgtable_types.h file.
>
> pteval_t is an x86-ism.
>
> So I left out the changes below.

There was a warning on the non-PAE 32-bit builds saying that there was a
shift larger than the type. I assumed this was because of a reference
to _PAGE_NX, and thus we needed a change to pteval_t.

But, now that I think about it more, that doesn't make sense since
_PAGE_NX should be #defined down to a 0 on those configs unless
something is wrong.