Re: [PATCH v3] powerpc/code-patching: Speed up page mapping/unmapping

2022-09-02 Thread Michael Ellerman
On Mon, 15 Aug 2022 21:48:40 +1000, Michael Ellerman wrote: > From: Christophe Leroy > > Since commit 591b4b268435 ("powerpc/code-patching: Pre-map patch area") > the patch area is premapped so intermediate page tables are already > allocated. > > Use __set_pte_at() directly instead of the heavy

[PATCH v3] powerpc/code-patching: Speed up page mapping/unmapping

2022-08-15 Thread Michael Ellerman
From: Christophe Leroy Since commit 591b4b268435 ("powerpc/code-patching: Pre-map patch area") the patch area is premapped so intermediate page tables are already allocated. Use __set_pte_at() directly instead of the heavy map_kernel_page(), at for unmapping just do a pte_clear() followed by a f