]> xenbits.xensource.com Git - xen.git/commitdiff
smp: assert that all affected CPUs are online in on_selected_cpus()
authorJan Beulich <jbeulich@suse.com>
Thu, 1 Jun 2017 08:49:53 +0000 (10:49 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 1 Jun 2017 08:49:53 +0000 (10:49 +0200)
Suggested-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/common/smp.c

index 482a203b02ee6e8f2557f9954b83e53af3406e7d..79f4ebd1450224976176ad2f0111b014a5a4c816 100644 (file)
@@ -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);