search for: stop_machine_run

Displaying 14 results from an estimated 14 matches for "stop_machine_run".

2008 Aug 13
1
[PATCH] stop_machine: wean Xen off stop_machine_run
This is the last use of (the deprecated) stop_machine_run in the tree. Signed-off-by: Rusty Russell <rusty at rustcorp.com.au> diff -r 332ec042cb4d drivers/xen/manage.c --- a/drivers/xen/manage.c Wed Aug 13 10:48:27 2008 +1000 +++ b/drivers/xen/manage.c Wed Aug 13 15:50:02 2008 +1000 @@ -102,7 +102,7 @@ static void do_suspend(void) /* XXX use no...
2008 Aug 25
0
[PULL] lguest comments, virtio fix and final stop_machine_run() remove
...cer_wmi driver (acer_wmi_init) are available in the git repository at: ssh://master.kernel.org/pub/scm/linux/kernel/git/rusty/linux-2.6-for-linus.git master Anthony Liguori (1): virtio_balloon: fix towards_target when deflating balloon Rusty Russell (3): stop_machine: wean Xen off stop_machine_run stop_machine: Remove deprecated stop_machine_run lguest: update commentry Documentation/lguest/lguest.c | 8 ++++++++ drivers/lguest/lguest_device.c | 8 ++++++++ drivers/virtio/virtio_balloon.c | 2 +- drivers/xen/manage.c | 2 +- include/linux/stop_machine....
2008 May 08
2
[PATCH/RFC] stop_machine: make stop_machine_run more virtualization friendly
...problem for me. While I am not completely happy with this patch, I think it causes no harm and it really improves the situation for me. I used cpu_relax for yielding to the hypervisor, does that work on all architectures? p.s.: If you want to reproduce the problem, cpu hotplug and kprobes use stop_machine_run and both triggered the problem after some retries. Signed-off-by: Christian Borntraeger <borntraeger at de.ibm.com> CC: Ingo Molnar <mingo at elte.hu> CC: Rusty Russell <rusty at rustcorp.com.au> --- kernel/stop_machine.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 del...
2008 May 08
2
[PATCH/RFC] stop_machine: make stop_machine_run more virtualization friendly
...problem for me. While I am not completely happy with this patch, I think it causes no harm and it really improves the situation for me. I used cpu_relax for yielding to the hypervisor, does that work on all architectures? p.s.: If you want to reproduce the problem, cpu hotplug and kprobes use stop_machine_run and both triggered the problem after some retries. Signed-off-by: Christian Borntraeger <borntraeger at de.ibm.com> CC: Ingo Molnar <mingo at elte.hu> CC: Rusty Russell <rusty at rustcorp.com.au> --- kernel/stop_machine.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 del...
2008 Sep 09
29
[PATCH 1/4] CPU online/offline support in Xen
This patch implements cpu offline feature. Best Regards Haitao Shan _______________________________________________ Xen-devel mailing list Xen-devel@lists.xensource.com http://lists.xensource.com/xen-devel
2008 Jun 10
0
[PATCH] xen: add xen_arch_resume()/xen_timer_resume hook for ia64 support.
...e done after event channel is resumed. add xen_arch_resume() hook when ipi becomes usable after resume. After resume, some cpu specific resource must be reinitialized on ia64 that can't be set by another cpu. However available hooks is run once on only one cpu so that ipi has to be used. During stop_machine_run() ipi can't be used because interrupt is masked. So add another hook after stop_machine_run(). Another approach might be use resume hook which is run by device_resume(). However device_resume() may be executed on suspend error recovery path. So it is necessary to determine whether it is execute...
2008 Jun 10
0
[PATCH] xen: add xen_arch_resume()/xen_timer_resume hook for ia64 support.
...e done after event channel is resumed. add xen_arch_resume() hook when ipi becomes usable after resume. After resume, some cpu specific resource must be reinitialized on ia64 that can't be set by another cpu. However available hooks is run once on only one cpu so that ipi has to be used. During stop_machine_run() ipi can't be used because interrupt is masked. So add another hook after stop_machine_run(). Another approach might be use resume hook which is run by device_resume(). However device_resume() may be executed on suspend error recovery path. So it is necessary to determine whether it is execute...
2008 Jun 10
0
[PATCH] xen: add xen_arch_resume()/xen_timer_resume hook for ia64 support.
...e done after event channel is resumed. add xen_arch_resume() hook when ipi becomes usable after resume. After resume, some cpu specific resource must be reinitialized on ia64 that can't be set by another cpu. However available hooks is run once on only one cpu so that ipi has to be used. During stop_machine_run() ipi can't be used because interrupt is masked. So add another hook after stop_machine_run(). Another approach might be use resume hook which is run by device_resume(). However device_resume() may be executed on suspend error recovery path. So it is necessary to determine whether it is execute...
2008 Dec 19
2
FW: [patch 0/4]Enable CMCI (Corrected Machine Check Error Interrupt) for Intel CPUs
...XEN. --------------------------------------------------------------------------- Patch 1: remove_intel_mce_old.patch is to remove old p4/p6 files. The reason is that machine check architecture for Intel families including p4/p6/latest are similar. We need not keep duplicated codes. Patch 2: change_stop_machine_run.patch changes stopmachine_run interface so that we can designate the callback function running on the cpu_map instead of single one. We do this change because *cmci owner change* callback (please refer to note 3 below) needs to be executed on each of online cpus when do CPU hotplug. Patch 3: apic_c...
2008 Jul 17
1
[PATCH] stopmachine: add stopmachine_timeout v4
...linux/stop_machine.h index 0a7815c..4c934f7 100644 --- a/include/linux/stop_machine.h +++ b/include/linux/stop_machine.h @@ -13,6 +13,9 @@ /* Deprecated, but useful for transition. */ #define ALL_CPUS CPU_MASK_ALL_PTR +/* for sysctl entry */ +extern unsigned long stopmachine_timeout; + /** * stop_machine_run: freeze the machine on all CPUs and run this function * @fn: the function to run diff --git a/kernel/stop_machine.c b/kernel/stop_machine.c index 5b72c2b..9059b9e 100644 --- a/kernel/stop_machine.c +++ b/kernel/stop_machine.c @@ -35,15 +35,18 @@ struct stop_machine_data { }; /* Like num_onlin...
2008 Jul 17
1
[PATCH] stopmachine: add stopmachine_timeout v4
...linux/stop_machine.h index 0a7815c..4c934f7 100644 --- a/include/linux/stop_machine.h +++ b/include/linux/stop_machine.h @@ -13,6 +13,9 @@ /* Deprecated, but useful for transition. */ #define ALL_CPUS CPU_MASK_ALL_PTR +/* for sysctl entry */ +extern unsigned long stopmachine_timeout; + /** * stop_machine_run: freeze the machine on all CPUs and run this function * @fn: the function to run diff --git a/kernel/stop_machine.c b/kernel/stop_machine.c index 5b72c2b..9059b9e 100644 --- a/kernel/stop_machine.c +++ b/kernel/stop_machine.c @@ -35,15 +35,18 @@ struct stop_machine_data { }; /* Like num_onlin...
2008 Jul 16
2
[PATCH] stopmachine: add stopmachine_timeout v2
...te machine */ do { /* Chill out and ensure we re-read stopmachine_state. */ @@ -90,6 +95,7 @@ static int stop_cpu(struct stop_machine_data *smdata) } } while (curstate != STOPMACHINE_EXIT); + atomic_dec(&num_threads); local_irq_enable(); do_exit(0); } @@ -105,6 +111,15 @@ int __stop_machine_run(int (*fn)(void *), void *data, const cpumask_t *cpus) int i, err; struct stop_machine_data active, idle; struct task_struct **threads; + unsigned long limit; + + if (atomic_read(&num_threads)) { + /* + * previous stop_machine was timeout, and still there are some + * unfinished threa...
2008 Jul 16
2
[PATCH] stopmachine: add stopmachine_timeout v2
...te machine */ do { /* Chill out and ensure we re-read stopmachine_state. */ @@ -90,6 +95,7 @@ static int stop_cpu(struct stop_machine_data *smdata) } } while (curstate != STOPMACHINE_EXIT); + atomic_dec(&num_threads); local_irq_enable(); do_exit(0); } @@ -105,6 +111,15 @@ int __stop_machine_run(int (*fn)(void *), void *data, const cpumask_t *cpus) int i, err; struct stop_machine_data active, idle; struct task_struct **threads; + unsigned long limit; + + if (atomic_read(&num_threads)) { + /* + * previous stop_machine was timeout, and still there are some + * unfinished threa...
2012 Feb 08
18
[PATCH 0 of 4] Prune outdated/impossible preprocessor symbols, and update VIOAPIC emulation
Patch 1 removes CONFIG_SMP Patch 2 removes separate smp_{,r,w}mb()s as a result of patch 1 Patch 4 removes __ia64__ defines from the x86 arch tree Patch 3 is related to patch 4 and changes the VIOAPIC to emulate version 0x20 as a performance gain. It preceeds Patch 4 so as to be more clear about the functional change. Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>