Re: [PATCH v3 4/7] x86/hyper-v: allocate and use Virtual Processor Assist Pages

2018-03-15 Thread Thomas Gleixner
On Thu, 15 Mar 2018, Peter Zijlstra wrote: > On Thu, Mar 15, 2018 at 12:45:03PM +0100, Thomas Gleixner wrote: > > On Thu, 15 Mar 2018, Vitaly Kuznetsov wrote: > > > The only user of these pages is currently KVM. Can we still have vCPUs > > > running on the outgoing CPU at this point? If case we can

Re: [PATCH v3 4/7] x86/hyper-v: allocate and use Virtual Processor Assist Pages

2018-03-15 Thread Peter Zijlstra
On Thu, Mar 15, 2018 at 12:45:03PM +0100, Thomas Gleixner wrote: > On Thu, 15 Mar 2018, Vitaly Kuznetsov wrote: > > Thomas Gleixner writes: > > > On Fri, 9 Mar 2018, Vitaly Kuznetsov wrote: > > >> @@ -198,6 +218,12 @@ static int hv_cpu_die(unsigned int cpu) > > >> struct hv_reenlightenmen

Re: [PATCH v3 4/7] x86/hyper-v: allocate and use Virtual Processor Assist Pages

2018-03-15 Thread Thomas Gleixner
On Thu, 15 Mar 2018, Vitaly Kuznetsov wrote: > Thomas Gleixner writes: > > On Fri, 9 Mar 2018, Vitaly Kuznetsov wrote: > >> @@ -198,6 +218,12 @@ static int hv_cpu_die(unsigned int cpu) > >>struct hv_reenlightenment_control re_ctrl; > >>unsigned int new_cpu; > >> > >> + if (hv_vp_assist_

Re: [PATCH v3 4/7] x86/hyper-v: allocate and use Virtual Processor Assist Pages

2018-03-15 Thread Vitaly Kuznetsov
Thomas Gleixner writes: > On Fri, 9 Mar 2018, Vitaly Kuznetsov wrote: >> @@ -198,6 +218,12 @@ static int hv_cpu_die(unsigned int cpu) >> struct hv_reenlightenment_control re_ctrl; >> unsigned int new_cpu; >> >> +if (hv_vp_assist_page && hv_vp_assist_page[cpu]) { >> +wr

Re: [PATCH v3 4/7] x86/hyper-v: allocate and use Virtual Processor Assist Pages

2018-03-14 Thread Thomas Gleixner
On Fri, 9 Mar 2018, Vitaly Kuznetsov wrote: > @@ -198,6 +218,12 @@ static int hv_cpu_die(unsigned int cpu) > struct hv_reenlightenment_control re_ctrl; > unsigned int new_cpu; > > + if (hv_vp_assist_page && hv_vp_assist_page[cpu]) { > + wrmsrl(HV_X64_MSR_VP_ASSIST_PAGE

RE: [PATCH v3 4/7] x86/hyper-v: allocate and use Virtual Processor Assist Pages

2018-03-13 Thread Michael Kelley (EOSG)
> -Original Message- > From: Vitaly Kuznetsov > Sent: Friday, March 9, 2018 6:03 AM > To: k...@vger.kernel.org > Cc: x...@kernel.org; Paolo Bonzini ; Radim Krčmář > ; KY Srinivasan ; Haiyang Zhang > ; Stephen Hemminger ; Michael > Kelley (EOSG) ; Mohammed Gamal > ; Cathy Avery ; Bandan Das