Re: [PATCH 1/2] x86/idle: add halt poll for halt idle

2017-08-17 Thread Yang Zhang
On 2017/8/16 12:04, Michael S. Tsirkin wrote: On Thu, Jun 22, 2017 at 11:22:13AM +, root wrote: From: Yang Zhang This patch introduce a new mechanism to poll for a while before entering idle state. David has a topic in KVM forum to describe the problem on current KVM VM when running some

Re: [PATCH 1/2] x86/idle: add halt poll for halt idle

2017-08-15 Thread Michael S. Tsirkin
On Thu, Jun 22, 2017 at 11:22:13AM +, root wrote: > From: Yang Zhang > > This patch introduce a new mechanism to poll for a while before > entering idle state. > > David has a topic in KVM forum to describe the problem on current KVM VM > when running some message passing workload in KVM for

Re: [PATCH 1/2] x86/idle: add halt poll for halt idle

2017-06-22 Thread Yang Zhang
On 2017/6/22 22:23, Thomas Gleixner wrote: On Thu, 22 Jun 2017, root wrote: --- a/arch/x86/kernel/process.c +++ b/arch/x86/kernel/process.c @@ -39,6 +39,10 @@ #include #include +#ifdef CONFIG_HYPERVISOR_GUEST +unsigned long poll_threshold_ns; +#endif + /* * per-CPU TSS segments. Threads

Re: [PATCH 1/2] x86/idle: add halt poll for halt idle

2017-06-22 Thread Thomas Gleixner
On Thu, 22 Jun 2017, root wrote: > --- a/arch/x86/kernel/process.c > +++ b/arch/x86/kernel/process.c > @@ -39,6 +39,10 @@ > #include > #include > > +#ifdef CONFIG_HYPERVISOR_GUEST > +unsigned long poll_threshold_ns; > +#endif > + > /* > * per-CPU TSS segments. Threads are completely 'soft'

[PATCH 1/2] x86/idle: add halt poll for halt idle

2017-06-22 Thread root
From: Yang Zhang This patch introduce a new mechanism to poll for a while before entering idle state. David has a topic in KVM forum to describe the problem on current KVM VM when running some message passing workload in KVM forum. Also, there are some work to improve the performance in KVM, lik