[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [RFC 10/16] xen/arm: Introduce alternative runtime patching
Hi Stefano, On 21/05/16 16:09, Stefano Stabellini wrote: On Thu, 5 May 2016, Julien Grall wrote:+void __init apply_alternatives_all(void) +{ + int ret; + + /* better not try code patching on a live SMP system */ + ret = stop_machine_run(__apply_alternatives_multi_stop, NULL, NR_CPUS);Why not just call stop_machine_run, passing 0 as the cpu to run __apply_alternatives_multi_stop on? Given that you already have secondary cpus spinning in __apply_alternatives_multi_stop. What am I missing? Someone as to call __apply_alternatives_multi_stop on secondary CPUs. apply_alternatives is called by the boot CPU, the rest are spinning within the idle_loop. The function stop_machine_run will stop all the CPUs, and call __apply_alternatives_multi_stop on each of them. Regards, -- Julien Grall _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |