From 02bcbb09fda25bb03e7269a2433e17c763e9d6f5 Mon Sep 17 00:00:00 2001 From: Jan Beulich Date: Thu, 1 Jun 2017 10:49:53 +0200 Subject: [PATCH] smp: assert that all affected CPUs are online in on_selected_cpus() Suggested-by: Boris Ostrovsky Signed-off-by: Jan Beulich Reviewed-by: Wei Liu Reviewed-by: Andrew Cooper --- xen/common/smp.c | 1 + 1 file changed, 1 insertion(+) diff --git a/xen/common/smp.c b/xen/common/smp.c index 482a203b02..79f4ebd145 100644 --- a/xen/common/smp.c +++ b/xen/common/smp.c @@ -53,6 +53,7 @@ void on_selected_cpus( unsigned int nr_cpus; ASSERT(local_irq_is_enabled()); + ASSERT(cpumask_subset(selected, &cpu_online_map)); spin_lock(&call_lock); -- 2.30.2