Re: [RFC PATCH 0/3] x86/mm/tlb: Defer TLB flushes with PTI

2019-09-03 Thread Andy Lutomirski
On Thu, Aug 29, 2019 at 10:24 AM Nadav Amit wrote: > > > On Aug 27, 2019, at 5:30 PM, Andy Lutomirski wrote: > > > > On Tue, Aug 27, 2019 at 4:52 PM Nadav Amit wrote: > >>> On Aug 27, 2019, at 4:18 PM, Andy Lutomirski wrote: > >>> > >>> On Fri, Aug 23, 2019 at 11:07 PM Nadav Amit wrote: >

Re: [RFC PATCH 0/3] x86/mm/tlb: Defer TLB flushes with PTI

2019-08-29 Thread Nadav Amit
> On Aug 27, 2019, at 5:30 PM, Andy Lutomirski wrote: > > On Tue, Aug 27, 2019 at 4:52 PM Nadav Amit wrote: >>> On Aug 27, 2019, at 4:18 PM, Andy Lutomirski wrote: >>> >>> On Fri, Aug 23, 2019 at 11:07 PM Nadav Amit wrote: INVPCID is considerably slower than INVLPG of a single PTE, but i

Re: [RFC PATCH 0/3] x86/mm/tlb: Defer TLB flushes with PTI

2019-08-27 Thread Andy Lutomirski
On Tue, Aug 27, 2019 at 4:52 PM Nadav Amit wrote: > > > On Aug 27, 2019, at 4:18 PM, Andy Lutomirski wrote: > > > > On Fri, Aug 23, 2019 at 11:07 PM Nadav Amit wrote: > >> INVPCID is considerably slower than INVLPG of a single PTE, but it is > >> currently used to flush PTEs in the user page-tab

Re: [RFC PATCH 0/3] x86/mm/tlb: Defer TLB flushes with PTI

2019-08-27 Thread Nadav Amit
> On Aug 27, 2019, at 4:18 PM, Andy Lutomirski wrote: > > On Fri, Aug 23, 2019 at 11:07 PM Nadav Amit wrote: >> INVPCID is considerably slower than INVLPG of a single PTE, but it is >> currently used to flush PTEs in the user page-table when PTI is used. >> >> Instead, it is possible to defer T

Re: [RFC PATCH 0/3] x86/mm/tlb: Defer TLB flushes with PTI

2019-08-27 Thread Andy Lutomirski
On Fri, Aug 23, 2019 at 11:07 PM Nadav Amit wrote: > > INVPCID is considerably slower than INVLPG of a single PTE, but it is > currently used to flush PTEs in the user page-table when PTI is used. > > Instead, it is possible to defer TLB flushes until after the user > page-tables are loaded. Preve

Re: [RFC PATCH 0/3] x86/mm/tlb: Defer TLB flushes with PTI

2019-08-23 Thread Nadav Amit
Sorry, I made a mistake and included the wrong patches. I will send RFC v2 in few minutes. > On Aug 23, 2019, at 3:46 PM, Nadav Amit wrote: > > INVPCID is considerably slower than INVLPG of a single PTE, but it is > currently used to flush PTEs in the user page-table when PTI is used. > > Inst