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

2025-01-27 Thread Peter Zijlstra
On Fri, Jan 24, 2025 at 09:00:58PM +0800, Qi Zheng wrote: > > > 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_remo

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 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

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

2025-01-23 Thread Qi Zheng
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 Suggested-by: Peter Zijlstra (Intel) --- arch/x86/kernel/paravirt.c |