Re: [PATCH v4 2/2] locking/pvqspinlock, hv: Enable PV qspinlock for Hyper-V

2018-10-10 Thread Yi Sun
On 18-10-10 07:50:26, Ingo Molnar wrote: > > * Yi Sun wrote: > > > On 18-10-09 12:54:27, Ingo Molnar wrote: > > > > > > * Yi Sun wrote: > > > > > > > Follow PV spinlock mechanism to implement the callback functions > > > > to allow the CPU idling and kicking operations on Hyper-V. > > > > >

Re: [PATCH v4 2/2] locking/pvqspinlock, hv: Enable PV qspinlock for Hyper-V

2018-10-09 Thread Ingo Molnar
* Yi Sun wrote: > On 18-10-09 12:54:27, Ingo Molnar wrote: > > > > * Yi Sun wrote: > > > > > Follow PV spinlock mechanism to implement the callback functions > > > to allow the CPU idling and kicking operations on Hyper-V. > > > > > +#if defined(CONFIG_SMP) > > > + smp_ops.smp_prepare_boot_

Re: [PATCH v4 2/2] locking/pvqspinlock, hv: Enable PV qspinlock for Hyper-V

2018-10-09 Thread Yi Sun
On 18-10-09 12:54:27, Ingo Molnar wrote: > > * Yi Sun wrote: > > > Follow PV spinlock mechanism to implement the callback functions > > to allow the CPU idling and kicking operations on Hyper-V. > > > +#if defined(CONFIG_SMP) > > + smp_ops.smp_prepare_boot_cpu = hv_smp_prepare_boot_cpu; > > +

Re: [PATCH v4 2/2] locking/pvqspinlock, hv: Enable PV qspinlock for Hyper-V

2018-10-09 Thread Ingo Molnar
* Yi Sun wrote: > Follow PV spinlock mechanism to implement the callback functions > to allow the CPU idling and kicking operations on Hyper-V. > +#if defined(CONFIG_SMP) > + smp_ops.smp_prepare_boot_cpu = hv_smp_prepare_boot_cpu; > +#endif What's wrong with using the common pattern of:

Re: [PATCH v4 2/2] locking/pvqspinlock, hv: Enable PV qspinlock for Hyper-V

2018-10-08 Thread Juergen Gross
On 08/10/2018 10:29, Yi Sun wrote: > Follow PV spinlock mechanism to implement the callback functions > to allow the CPU idling and kicking operations on Hyper-V. > > Cc: "K. Y. Srinivasan" > Cc: Haiyang Zhang > Cc: Stephen Hemminger > Cc: Thomas Gleixner > Cc: Michael Kelley (EOSG) > Cc: Jue

[PATCH v4 2/2] locking/pvqspinlock, hv: Enable PV qspinlock for Hyper-V

2018-10-08 Thread Yi Sun
Follow PV spinlock mechanism to implement the callback functions to allow the CPU idling and kicking operations on Hyper-V. Cc: "K. Y. Srinivasan" Cc: Haiyang Zhang Cc: Stephen Hemminger Cc: Thomas Gleixner Cc: Michael Kelley (EOSG) Cc: Juergen Gross Signed-off-by: Yi Sun --- v3->v4: -