Re: [PATCH 6/9] KVM: x86: Provide paravirtualized flush_tlb_multi()

2019-06-26 Thread Andy Lutomirski
On Wed, Jun 26, 2019 at 10:41 AM Vitaly Kuznetsov wrote: > > Andy Lutomirski writes: > > > All this being said, do we currently have any system that supports > > PCID *and* remote flushes? I guess KVM has some mechanism, but I'm > > not that familiar with its exact capabilities. If I remember

Re: [PATCH 6/9] KVM: x86: Provide paravirtualized flush_tlb_multi()

2019-06-26 Thread Vitaly Kuznetsov
Andy Lutomirski writes: > All this being said, do we currently have any system that supports > PCID *and* remote flushes? I guess KVM has some mechanism, but I'm > not that familiar with its exact capabilities. If I remember right, > Hyper-V doesn't expose PCID yet. > It already does (and

Re: [PATCH 6/9] KVM: x86: Provide paravirtualized flush_tlb_multi()

2019-06-26 Thread Andy Lutomirski
On Tue, Jun 25, 2019 at 11:30 PM Nadav Amit wrote: > > > On Jun 25, 2019, at 8:56 PM, Andy Lutomirski wrote: > > > > On Tue, Jun 25, 2019 at 8:41 PM Nadav Amit wrote: > >>> On Jun 25, 2019, at 8:35 PM, Andy Lutomirski wrote: > >>> > >>> On Tue, Jun 25, 2019 at 7:39 PM Nadav Amit wrote: >

Re: [PATCH 6/9] KVM: x86: Provide paravirtualized flush_tlb_multi()

2019-06-26 Thread Nadav Amit
> On Jun 25, 2019, at 8:56 PM, Andy Lutomirski wrote: > > On Tue, Jun 25, 2019 at 8:41 PM Nadav Amit wrote: >>> On Jun 25, 2019, at 8:35 PM, Andy Lutomirski wrote: >>> >>> On Tue, Jun 25, 2019 at 7:39 PM Nadav Amit wrote: > On Jun 25, 2019, at 2:40 PM, Dave Hansen wrote: > > On

Re: [PATCH 6/9] KVM: x86: Provide paravirtualized flush_tlb_multi()

2019-06-25 Thread Andy Lutomirski
On Tue, Jun 25, 2019 at 8:41 PM Nadav Amit wrote: > > > On Jun 25, 2019, at 8:35 PM, Andy Lutomirski wrote: > > > > On Tue, Jun 25, 2019 at 7:39 PM Nadav Amit wrote: > >>> On Jun 25, 2019, at 2:40 PM, Dave Hansen wrote: > >>> > >>> On 6/12/19 11:48 PM, Nadav Amit wrote: > Support the new

Re: [PATCH 6/9] KVM: x86: Provide paravirtualized flush_tlb_multi()

2019-06-25 Thread Nadav Amit
> On Jun 25, 2019, at 8:35 PM, Andy Lutomirski wrote: > > On Tue, Jun 25, 2019 at 7:39 PM Nadav Amit wrote: >>> On Jun 25, 2019, at 2:40 PM, Dave Hansen wrote: >>> >>> On 6/12/19 11:48 PM, Nadav Amit wrote: Support the new interface of flush_tlb_multi, which also flushes the local

Re: [PATCH 6/9] KVM: x86: Provide paravirtualized flush_tlb_multi()

2019-06-25 Thread Andy Lutomirski
On Tue, Jun 25, 2019 at 7:39 PM Nadav Amit wrote: > > > On Jun 25, 2019, at 2:40 PM, Dave Hansen wrote: > > > > On 6/12/19 11:48 PM, Nadav Amit wrote: > >> Support the new interface of flush_tlb_multi, which also flushes the > >> local CPU's TLB, instead of flush_tlb_others that does not. This >

Re: [PATCH 6/9] KVM: x86: Provide paravirtualized flush_tlb_multi()

2019-06-25 Thread Nadav Amit
> On Jun 25, 2019, at 2:40 PM, Dave Hansen wrote: > > On 6/12/19 11:48 PM, Nadav Amit wrote: >> Support the new interface of flush_tlb_multi, which also flushes the >> local CPU's TLB, instead of flush_tlb_others that does not. This >> interface is more performant since it parallelize remote and

Re: [PATCH 6/9] KVM: x86: Provide paravirtualized flush_tlb_multi()

2019-06-25 Thread Dave Hansen
On 6/12/19 11:48 PM, Nadav Amit wrote: > Support the new interface of flush_tlb_multi, which also flushes the > local CPU's TLB, instead of flush_tlb_others that does not. This > interface is more performant since it parallelize remote and local TLB > flushes. > > The actual implementation of

[PATCH 6/9] KVM: x86: Provide paravirtualized flush_tlb_multi()

2019-06-13 Thread Nadav Amit
Support the new interface of flush_tlb_multi, which also flushes the local CPU's TLB, instead of flush_tlb_others that does not. This interface is more performant since it parallelize remote and local TLB flushes. The actual implementation of flush_tlb_multi() is almost identical to that of