[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen master] smp: assert that all affected CPUs are online in on_selected_cpus()



commit 02bcbb09fda25bb03e7269a2433e17c763e9d6f5
Author:     Jan Beulich <jbeulich@xxxxxxxx>
AuthorDate: Thu Jun 1 10:49:53 2017 +0200
Commit:     Jan Beulich <jbeulich@xxxxxxxx>
CommitDate: Thu Jun 1 10:49:53 2017 +0200

    smp: assert that all affected CPUs are online in on_selected_cpus()
    
    Suggested-by: Boris Ostrovsky <boris.ostrovsky@xxxxxxxxxx>
    Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx>
    Reviewed-by: Wei Liu <wei.liu2@xxxxxxxxxx>
    Reviewed-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
---
 xen/common/smp.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/xen/common/smp.c b/xen/common/smp.c
index 482a203..79f4ebd 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);
 
--
generated by git-patchbot for /home/xen/git/xen.git#master

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxx
https://lists.xenproject.org/xen-changelog

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.