Linus Torvalds writes: (Summary) On Tue, Oct 31, 2017 at 4:44 PM, Dave Hansen
<dave.hansen@linux.intel.com> wrote:
So the thing that made me think you do all levels was that confusing kaiser_pagetable_walk() code (and to a lesser degree get_pa_from_mapping()).
get_pa_from_mapping()).
That code definitely walks and allocates all levels. That code definitely walks and allocates all levels. So it really doesn't seem to be just sharing the top page table entry. So it really doesn't seem to be just sharing the top page table entry.
<dave.hansen@linux.intel.com> wrote:
[...]
done via the code we add to native_set_pgd().So the thing that made me think you do all levels was that confusing kaiser_pagetable_walk() code (and to a lesser degree get_pa_from_mapping()).
get_pa_from_mapping()).
That code definitely walks and allocates all levels. That code definitely walks and allocates all levels. So it really doesn't seem to be just sharing the top page table entry. So it really doesn't seem to be just sharing the top page table entry.