Re: [PATCH v2 1/1] s390/spinlock: Provide vcpu_is_preempted

2016-09-29 Thread Boqun Feng
On Fri, Sep 30, 2016 at 12:49:52PM +0800, Pan Xinhui wrote: > > > 在 2016/9/29 23:51, Christian Borntraeger 写道: > > this implements the s390 backend for commit > > "kernel/sched: introduce vcpu preempted check interface" > > by reworking the existing smp_vcpu_scheduled into > >

Re: [PATCH v3 0/4] implement vcpu preempted check

2016-09-29 Thread Pan Xinhui
在 2016/9/29 18:31, Peter Zijlstra 写道: On Thu, Sep 29, 2016 at 12:23:19PM +0200, Christian Borntraeger wrote: On 09/29/2016 12:10 PM, Peter Zijlstra wrote: On Thu, Jul 21, 2016 at 07:45:10AM -0400, Pan Xinhui wrote: change from v2: no code change, fix typos, update some comments

Re: [PATCH v2 1/1] s390/spinlock: Provide vcpu_is_preempted

2016-09-29 Thread Pan Xinhui
在 2016/9/29 23:51, Christian Borntraeger 写道: this implements the s390 backend for commit "kernel/sched: introduce vcpu preempted check interface" by reworking the existing smp_vcpu_scheduled into arch_vcpu_is_preempted. We can then also get rid of the local cpu_is_preempted function by moving

Re: [PATCH v3 0/4] implement vcpu preempted check

2016-09-29 Thread Pan Xinhui
在 2016/9/29 18:10, Peter Zijlstra 写道: On Thu, Jul 21, 2016 at 07:45:10AM -0400, Pan Xinhui wrote: change from v2: no code change, fix typos, update some comments change from v1: a simplier definition of default vcpu_is_preempted skip mahcine type check on ppc, and add

[PATCH v2 0/1] s390 preparation for vcpu preempted check

2016-09-29 Thread Christian Borntraeger
This patch should enable s390 support for the upcoming vcpu preempt check support, but it should compile and work fine without that patch set as well. Christian Borntraeger (1): s390/spinlock: Provide vcpu_is_preempted arch/s390/include/asm/spinlock.h | 3 +++ arch/s390/kernel/smp.c

[PATCH v2 1/1] s390/spinlock: Provide vcpu_is_preempted

2016-09-29 Thread Christian Borntraeger
this implements the s390 backend for commit "kernel/sched: introduce vcpu preempted check interface" by reworking the existing smp_vcpu_scheduled into arch_vcpu_is_preempted. We can then also get rid of the local cpu_is_preempted function by moving the CIF_ENABLED_WAIT test into

Re: [PATCH] s390x/spinlock: Provide vcpu_is_preempted globally

2016-09-29 Thread Christian Borntraeger
On 09/29/2016 03:11 PM, Martin Schwidefsky wrote: > On Thu, 29 Sep 2016 13:54:16 +0200 > Christian Borntraeger wrote: > >> this implements the s390 backend for commit >> "kernel/sched: introduce vcpu preempted check interface" >> by simply reusing the existing

Re: [PATCH] s390x/spinlock: Provide vcpu_is_preempted globally

2016-09-29 Thread Martin Schwidefsky
On Thu, 29 Sep 2016 13:54:16 +0200 Christian Borntraeger wrote: > this implements the s390 backend for commit > "kernel/sched: introduce vcpu preempted check interface" > by simply reusing the existing cpu_is_preempted function. > > Signed-off-by: Christian Borntraeger

[PATCH] s390x/spinlock: Provide vcpu_is_preempted globally

2016-09-29 Thread Christian Borntraeger
this implements the s390 backend for commit "kernel/sched: introduce vcpu preempted check interface" by simply reusing the existing cpu_is_preempted function. Signed-off-by: Christian Borntraeger --- Martin, Heiko, this patch is a minimal change by not touching all

Re: [PATCH v3 0/4] implement vcpu preempted check

2016-09-29 Thread Christian Borntraeger
On 09/29/2016 12:40 PM, Christian Borntraeger wrote: > On 09/29/2016 12:23 PM, Christian Borntraeger wrote: >> On 09/29/2016 12:10 PM, Peter Zijlstra wrote: >>> On Thu, Jul 21, 2016 at 07:45:10AM -0400, Pan Xinhui wrote: change from v2: no code change, fix typos, update some comments

Re: [PATCH v3 0/4] implement vcpu preempted check

2016-09-29 Thread Christian Borntraeger
On 09/29/2016 12:23 PM, Christian Borntraeger wrote: > On 09/29/2016 12:10 PM, Peter Zijlstra wrote: >> On Thu, Jul 21, 2016 at 07:45:10AM -0400, Pan Xinhui wrote: >>> change from v2: >>> no code change, fix typos, update some comments >>> >>> change from v1: >>> a simplier definition of

Re: [PATCH v3 0/4] implement vcpu preempted check

2016-09-29 Thread Peter Zijlstra
On Thu, Sep 29, 2016 at 12:23:19PM +0200, Christian Borntraeger wrote: > On 09/29/2016 12:10 PM, Peter Zijlstra wrote: > > On Thu, Jul 21, 2016 at 07:45:10AM -0400, Pan Xinhui wrote: > >> change from v2: > >>no code change, fix typos, update some comments > >> > >> change from v1: > >>a

Re: [PATCH v3 0/4] implement vcpu preempted check

2016-09-29 Thread Christian Borntraeger
On 09/29/2016 12:10 PM, Peter Zijlstra wrote: > On Thu, Jul 21, 2016 at 07:45:10AM -0400, Pan Xinhui wrote: >> change from v2: >> no code change, fix typos, update some comments >> >> change from v1: >> a simplier definition of default vcpu_is_preempted >> skip mahcine type check on

[PATCH v2 1/1] virtio: update balloon size in balloon "probe"

2016-09-29 Thread Denis V. Lunev
From: Konstantin Neumoin The following commit 'fad7b7b27b6a (virtio_balloon: Use a workqueue instead of "vballoon" kthread)' has added a regression. Original code with kthread starts the thread inside probe and checks the necessity to update balloon inside the thread

Re: [PATCH v3 0/4] implement vcpu preempted check

2016-09-29 Thread Peter Zijlstra
On Thu, Jul 21, 2016 at 07:45:10AM -0400, Pan Xinhui wrote: > change from v2: > no code change, fix typos, update some comments > > change from v1: > a simplier definition of default vcpu_is_preempted > skip mahcine type check on ppc, and add config. remove dedicated macro. >