* [PATCH] Use kvm_on_each_cpu in preempt.c
@ 2008-11-08 7:53 Alexander Graf
2008-11-09 13:08 ` Avi Kivity
0 siblings, 1 reply; 2+ messages in thread
From: Alexander Graf @ 2008-11-08 7:53 UTC (permalink / raw)
To: kvm; +Cc: avi
Compat modules need to use kvm_on_each_cpu instead on on_each_cpu
in order to be compatible throughout various kernel versions.
Unfortunately preempt.c uses on_each_cpu. This patch changes preempt.c
to also use the kvm version, so it is compatible with the rest of the
external module build.
This fixes building on newer kernels without preempt notifiers.
Signed-off-by: Alexander Graf <agraf@suse.de>
---
kernel/x86/preempt.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/kernel/x86/preempt.c b/kernel/x86/preempt.c
index a6b69ec..9e4bd2c 100644
--- a/kernel/x86/preempt.c
+++ b/kernel/x86/preempt.c
@@ -251,7 +251,7 @@ void preempt_notifier_sys_exit(void)
struct idt_desc idt_desc;
dprintk("\n");
- on_each_cpu(do_disable, NULL, 1, 1);
+ kvm_on_each_cpu(do_disable, NULL, 1);
asm ("sidt %0" : "=m"(idt_desc));
idt_desc.gates[1] = orig_int1_gate;
}
--
1.5.3.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] Use kvm_on_each_cpu in preempt.c
2008-11-08 7:53 [PATCH] Use kvm_on_each_cpu in preempt.c Alexander Graf
@ 2008-11-09 13:08 ` Avi Kivity
0 siblings, 0 replies; 2+ messages in thread
From: Avi Kivity @ 2008-11-09 13:08 UTC (permalink / raw)
To: Alexander Graf; +Cc: kvm
Alexander Graf wrote:
> Compat modules need to use kvm_on_each_cpu instead on on_each_cpu
> in order to be compatible throughout various kernel versions.
>
> Unfortunately preempt.c uses on_each_cpu. This patch changes preempt.c
> to also use the kvm version, so it is compatible with the rest of the
> external module build.
>
> This fixes building on newer kernels without preempt notifiers.
>
Applied, thanks.
--
error compiling committee.c: too many arguments to function
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2008-11-09 13:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-08 7:53 [PATCH] Use kvm_on_each_cpu in preempt.c Alexander Graf
2008-11-09 13:08 ` Avi Kivity
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox