Re: [PATCH v2 06/10] module: introduce MODULE_STATE_GONE

2025-01-24 Thread Petr Mladek
On Fri 2025-01-24 13:59:55, Petr Pavlu wrote: > On 1/24/25 12:06, Mike Rapoport wrote: > > On Thu, Jan 23, 2025 at 03:16:28PM +0100, Petr Pavlu wrote: > >> On 1/21/25 10:57, Mike Rapoport wrote: > >>> In order to use execmem's API for temporal remapping of the memory > >>> allocated from ROX cache

Re: [PATCH 0/5] remove tlb_remove_page_ptdesc()

2025-01-24 Thread Qi Zheng
On 2025/1/24 19:47, Peter Zijlstra wrote: On Thu, Jan 23, 2025 at 09:26:13PM +0800, Qi Zheng wrote: Hi all, As suggested by Peter Zijlstra below [1], this series aims to remove tlb_remove_page_ptdesc(). : Fundamentally tlb_remove_page() is about removing *pages* as from a PTE, : there shoul

Re: [PATCH 4/5] x86: pgtable: unconditionally use tlb_remove_table()

2025-01-24 Thread Qi Zheng
On 2025/1/24 19:38, Peter Zijlstra wrote: On Thu, Jan 23, 2025 at 09:26:17PM +0800, Qi Zheng wrote: If the CONFIG_MMU_GATHER_TABLE_FREE is disabled, the tlb_remove_table() will fall back to pagetable_dtor() + tlb_remove_page(). So let's use tlb_remove_table() unconditionally to free page tabl

Re: [PATCH v2 06/10] module: introduce MODULE_STATE_GONE

2025-01-24 Thread Petr Pavlu
On 1/24/25 12:06, Mike Rapoport wrote: > On Thu, Jan 23, 2025 at 03:16:28PM +0100, Petr Pavlu wrote: >> On 1/21/25 10:57, Mike Rapoport wrote: >>> In order to use execmem's API for temporal remapping of the memory >>> allocated from ROX cache as writable, there is a need to distinguish >>> between

Re: [PATCH 0/5] remove tlb_remove_page_ptdesc()

2025-01-24 Thread Peter Zijlstra
On Thu, Jan 23, 2025 at 09:26:13PM +0800, Qi Zheng wrote: > Hi all, > > As suggested by Peter Zijlstra below [1], this series aims to remove > tlb_remove_page_ptdesc(). > > : Fundamentally tlb_remove_page() is about removing *pages* as from a PTE, > : there should not be a page-table anywhere nea

Re: [PATCH 4/5] x86: pgtable: unconditionally use tlb_remove_table()

2025-01-24 Thread Peter Zijlstra
On Thu, Jan 23, 2025 at 09:26:17PM +0800, Qi Zheng wrote: > If the CONFIG_MMU_GATHER_TABLE_FREE is disabled, the tlb_remove_table() > will fall back to pagetable_dtor() + tlb_remove_page(). So let's use > tlb_remove_table() unconditionally to free page table pages. > > Signed-off-by: Qi Zheng > S

Re: [PATCH v2 06/10] module: introduce MODULE_STATE_GONE

2025-01-24 Thread Mike Rapoport
On Thu, Jan 23, 2025 at 03:16:28PM +0100, Petr Pavlu wrote: > On 1/21/25 10:57, Mike Rapoport wrote: > > In order to use execmem's API for temporal remapping of the memory > > allocated from ROX cache as writable, there is a need to distinguish > > between the state when the module is being formed