All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 0/6] xen: RCU: x86/ARM: Add support of rcu_idle_{enter, exit}
@ 2017-08-18 18:04 Dario Faggioli
  2017-08-18 18:04 ` [PATCH v3 1/6] xen: in do_softirq() sample smp_processor_id() once and for all Dario Faggioli
                   ` (6 more replies)
  0 siblings, 7 replies; 21+ messages in thread
From: Dario Faggioli @ 2017-08-18 18:04 UTC (permalink / raw)
  To: xen-devel
  Cc: Stefano Stabellini, Wei Liu, George Dunlap, Andrew Cooper,
	Ian Jackson, Tim Deegan, Julien Grall, Jan Beulich

Hey,

I know, v2 of this series just went out. But since I leave for 2 weeks, I
wanted the version with as much as possible comments addressed to be on the
list, and since it was rather quick to do that (and test it), for latest Tim's
comment, here I am.

So, basically, this is v2, as here:

 https://lists.xen.org/archives/html/xen-devel/2017-08/msg01881.html

But with, as Tim suggested, the idle_cpumask initialized to "all clear". The
various CPUs, therefore, are considered busy when they come up, and clear their
own bit in the mask, as soon as they enter the idle loop for the first time
(which is pretty soon). Doing like this, we close another window for a
potential (although, rather unlikely) race/unnecessary extension of the grace
period, and we simplify the code (a.k.a. 'win-win' :-D).

Regards,
Dario
---
Dario Faggioli (6):
      xen: in do_softirq() sample smp_processor_id() once and for all.
      xen: ARM: suspend the tick (if in use) when going idle.
      xen: RCU/x86/ARM: discount CPUs that were idle when grace period started.
      xen: RCU: don't let a CPU with a callback go idle.
      xen: RCU: avoid busy waiting until the end of grace period.
      xen: try to prevent idle timer from firing too often.

 xen/arch/arm/domain.c         |   29 +++++++---
 xen/arch/x86/cpu/mwait-idle.c |    3 -
 xen/common/rcupdate.c         |  123 ++++++++++++++++++++++++++++++++++++++++-
 xen/common/schedule.c         |    4 +
 xen/common/softirq.c          |    8 +--
 xen/include/xen/perfc_defn.h  |    2 +
 xen/include/xen/rcupdate.h    |    6 ++
 xen/include/xen/sched.h       |    6 +-
 8 files changed, 159 insertions(+), 22 deletions(-)
--
<<This happens because I choose it to happen!>> (Raistlin Majere)
-----------------------------------------------------------------
Dario Faggioli, Ph.D, http://about.me/dario.faggioli
Senior Software Engineer, Citrix Systems R&D Ltd., Cambridge (UK)

_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel

^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2017-09-07  9:24 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-18 18:04 [PATCH v3 0/6] xen: RCU: x86/ARM: Add support of rcu_idle_{enter, exit} Dario Faggioli
2017-08-18 18:04 ` [PATCH v3 1/6] xen: in do_softirq() sample smp_processor_id() once and for all Dario Faggioli
2017-08-18 18:04 ` [PATCH v3 2/6] xen: ARM: suspend the tick (if in use) when going idle Dario Faggioli
2017-08-18 18:04 ` [PATCH v3 3/6] xen: RCU/x86/ARM: discount CPUs that were idle when grace period started Dario Faggioli
2017-08-22 12:59   ` Jan Beulich
2017-08-29 14:58   ` George Dunlap
2017-08-18 18:04 ` [PATCH v3 4/6] xen: RCU: don't let a CPU with a callback go idle Dario Faggioli
2017-08-29 15:01   ` George Dunlap
2017-08-18 18:04 ` [PATCH v3 5/6] xen: RCU: avoid busy waiting until the end of grace period Dario Faggioli
2017-08-22 13:04   ` Jan Beulich
2017-08-29 16:06     ` George Dunlap
2017-08-30  7:18       ` Jan Beulich
2017-08-30 11:16         ` George Dunlap
2017-09-05 17:13         ` Dario Faggioli
2017-09-06  9:50           ` Jan Beulich
2017-08-29 16:03   ` George Dunlap
2017-08-18 18:04 ` [PATCH v3 6/6] xen: try to prevent idle timer from firing too often Dario Faggioli
2017-08-29 16:30   ` George Dunlap
2017-09-06 16:51     ` Dario Faggioli
2017-09-07  9:24       ` George Dunlap
2017-08-19  9:45 ` [PATCH v3 0/6] xen: RCU: x86/ARM: Add support of rcu_idle_{enter, exit} Tim Deegan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.