Re: [PATCH 09/30] x86, kaiser: only populate shadow page tables for userspace

From: Dave Hansen
Date: Wed Nov 22 2017 - 18:30:46 EST

On 11/21/2017 07:44 PM, Andy Lutomirski wrote:
>> So, I guess we could enforce that only PGDs with _PAGE_USER set can ever
>> be cleared. That has a nice symmetry to it because we set the shadow
>> when we see _PAGE_USER and we would then clear the shadow when we see
> Is this code path ever hit in any case other than tearing down an LDT?

Do you mean the PGD clearing? We use it for tearing down userspace
PGDs, but that's it.