Re: [PATCH 03/10] smp,cpumask: introduce on_each_cpu_cond_mask

2018-07-29 Thread Linus Torvalds
On Sun, Jul 29, 2018 at 11:55 AM Andy Lutomirski wrote: > > On Jul 29, 2018, at 10:51 AM, Rik van Riel wrote: > > > > This seems to result in systems with ->has_wbinvd_exit > > only calling wbinvd_ipi on OTHER CPUs, and not on the > > CPU where the guest exited with wbinvd? > > > > This seems uni

Re: [PATCH 03/10] smp,cpumask: introduce on_each_cpu_cond_mask

2018-07-29 Thread Andy Lutomirski
> On Jul 29, 2018, at 10:51 AM, Rik van Riel wrote: > >> On Sun, 2018-07-29 at 08:36 -0700, Andy Lutomirski wrote: >>> On Jul 29, 2018, at 5:00 AM, Rik van Riel wrote: >>> On Sat, 2018-07-28 at 19:57 -0700, Andy Lutomirski wrote: On Sat, Jul 28, 2018 at 2:53 PM, Rik van Riel

Re: [PATCH 03/10] smp,cpumask: introduce on_each_cpu_cond_mask

2018-07-29 Thread Rik van Riel
On Sun, 2018-07-29 at 08:36 -0700, Andy Lutomirski wrote: > On Jul 29, 2018, at 5:00 AM, Rik van Riel wrote: > > > On Sat, 2018-07-28 at 19:57 -0700, Andy Lutomirski wrote: > > > On Sat, Jul 28, 2018 at 2:53 PM, Rik van Riel > > > wrote: > > > > Introduce a variant of on_each_cpu_cond that itera

Re: [PATCH 03/10] smp,cpumask: introduce on_each_cpu_cond_mask

2018-07-29 Thread Rik van Riel
On Sun, 2018-07-29 at 08:36 -0700, Andy Lutomirski wrote: > On Jul 29, 2018, at 5:00 AM, Rik van Riel wrote: > > > On Sat, 2018-07-28 at 19:57 -0700, Andy Lutomirski wrote: > > > On Sat, Jul 28, 2018 at 2:53 PM, Rik van Riel > > > wrote: > > > > Introduce a variant of on_each_cpu_cond that itera

Re: [PATCH 03/10] smp,cpumask: introduce on_each_cpu_cond_mask

2018-07-29 Thread Andy Lutomirski
>> On Jul 29, 2018, at 5:00 AM, Rik van Riel wrote: >> >> On Sat, 2018-07-28 at 19:57 -0700, Andy Lutomirski wrote: >> On Sat, Jul 28, 2018 at 2:53 PM, Rik van Riel >> wrote: >>> Introduce a variant of on_each_cpu_cond that iterates only over the >>> CPUs in a cpumask, in order to avoid making

Re: [PATCH 03/10] smp,cpumask: introduce on_each_cpu_cond_mask

2018-07-29 Thread Rik van Riel
On Sat, 2018-07-28 at 19:57 -0700, Andy Lutomirski wrote: > On Sat, Jul 28, 2018 at 2:53 PM, Rik van Riel > wrote: > > Introduce a variant of on_each_cpu_cond that iterates only over the > > CPUs in a cpumask, in order to avoid making callbacks for every > > single > > CPU in the system when we on

Re: [PATCH 03/10] smp,cpumask: introduce on_each_cpu_cond_mask

2018-07-28 Thread Andy Lutomirski
On Sat, Jul 28, 2018 at 2:53 PM, Rik van Riel wrote: > Introduce a variant of on_each_cpu_cond that iterates only over the > CPUs in a cpumask, in order to avoid making callbacks for every single > CPU in the system when we only need to test a subset. Nice. Although, if you want to be really fan

[PATCH 03/10] smp,cpumask: introduce on_each_cpu_cond_mask

2018-07-28 Thread Rik van Riel
Introduce a variant of on_each_cpu_cond that iterates only over the CPUs in a cpumask, in order to avoid making callbacks for every single CPU in the system when we only need to test a subset. Signed-off-by: Rik van Riel --- include/linux/smp.h | 4 kernel/smp.c| 17 +--