> On Jul 18, 2018, at 2:23 PM, Peter Zijlstra <[email protected]> wrote: > > On Wed, Jul 18, 2018 at 01:22:19PM -0400, Rik van Riel wrote: >>> On Jul 18, 2018, at 12:00 PM, Peter Zijlstra <[email protected]> wrote: > >>> Also, I don't suppose you've looked at the paravirt instances of >>> flush_tlb_other() ? They don't elide the flushes because of lazy. >> >> Let me look at those now :) > > <snip xen> > >> kvm_flush_tlb_other takes out preempted VCPUs from the flush mask, >> before calling native_flush_tlb_others, so it should get the optimization >> automatically. > > Ah, ok. I wasn't entirely sure the new lazy was purely for the idle > case. But yes, the KVM paravirt thing should get the idle case right. > Not just idle, but also running in kernel threads like ksoftirqd, kworker, kswapd, etc. However, kvm_flush_tlb_other calls native_flush_tlb_other, so it should get that optimization automatically from my patch series.
- [PATCH 6/7] x86,mm: always use lazy TLB mode Rik van Riel
- [tip:x86/mm] x86/mm/tlb: Always use lazy TLB... tip-bot for Rik van Riel
- [PATCH 3/7] x86,mm: restructure switch_mm_irqs_of... Rik van Riel
- [tip:x86/mm] x86/mm/tlb: Restructure switch_... tip-bot for Rik van Riel
- [PATCH 4/7] x86,tlb: make lazy TLB mode lazier Rik van Riel
- [tip:x86/mm] x86/mm/tlb: Make lazy TLB mode ... tip-bot for Rik van Riel
- Re: [tip:x86/mm] x86/mm/tlb: Make lazy T... Peter Zijlstra
- Re: [tip:x86/mm] x86/mm/tlb: Make la... Rik van Riel
- Re: [tip:x86/mm] x86/mm/tlb: Mak... Peter Zijlstra
- Re: [tip:x86/mm] x86/mm/tlb... Peter Zijlstra
- Re: [tip:x86/mm] x86/mm... Rik van Riel
- Re: [tip:x86/mm] x86/mm... Peter Zijlstra
- Re: [PATCH 4/7] x86,tlb: make lazy TLB mode ... Andy Lutomirski
- Re: [PATCH 4/7] x86,tlb: make lazy TLB m... Andy Lutomirski
- Re: [PATCH 4/7] x86,tlb: make lazy T... Rik van Riel
- Re: [PATCH 4/7] x86,tlb: make la... Andy Lutomirski
- Re: [PATCH 4/7] x86,tlb: make lazy TLB m... Rik van Riel
- Re: [PATCH 4/7] x86,tlb: make lazy T... Andy Lutomirski
- [PATCH 5/7] x86,tlb: only send page table free TL... Rik van Riel
- [tip:x86/mm] x86/mm/tlb: Only send page tabl... tip-bot for Rik van Riel
- Re: [tip:x86/mm] x86/mm/tlb: Only send p... Peter Zijlstra

