Re: [PATCH v2 4/5] RISC-V: Remove redundant trampoline page table

2019-03-24 Thread Anup Patel
On Fri, Mar 22, 2019 at 7:03 PM Christoph Hellwig wrote: > > > > > - /* Compute satp for kernel page tables, but don't load it yet */ > > + /* Compute satp for kernel page directory, but don't load it yet */ > > > > /* > > - * Load trampoline page directory, which will cause us

Re: [PATCH v2 4/5] RISC-V: Remove redundant trampoline page table

2019-03-22 Thread Christoph Hellwig
> > - /* Compute satp for kernel page tables, but don't load it yet */ > + /* Compute satp for kernel page directory, but don't load it yet */ > /* > - * Load trampoline page directory, which will cause us to trap to > + * Load kernel page directory, which will cause us

[PATCH v2 4/5] RISC-V: Remove redundant trampoline page table

2019-03-21 Thread Anup Patel
The trampoline page table is redundant because: 1. There is no mapping in trampoling page table which is not covered by swapper page table. 2. The relocate() in head.S will first load trampoline page table and after that it will load swapper page table. Same thing can be achieved by