Re: [PATCH v11 07/12] x86/mm: use INVLPGB in flush_tlb_all

From: Dave Hansen
Date: Fri Feb 14 2025 - 13:57:38 EST


On 2/13/25 08:13, Rik van Riel wrote:
> void flush_tlb_all(void)
> {
> + if (broadcast_flush_tlb_all())
> + return;
> count_vm_tlb_event(NR_TLB_REMOTE_FLUSH);
> on_each_cpu(do_flush_tlb_all, NULL, 1);
> }

This could use a couple of one-line comments.

Also, let's just keep the NR_TLB_REMOTE_FLUSH manipulation even when
using the INVLPGB. It's still logically a remote flush even if it
doesn't use an IPI.