Use kvm_on_each_cpu in preempt.c
PATCH 1/1 Use kvm_on_each_cpu in preempt.c
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.
--- kernel/x86/preempt.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
kernel/x86/preempt.c +1 -1
@@ -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; }
Signature · 1 line
1.5.3.1
Avi Kivity
AppliedQuoted 9 lines · Alexander Graf
Compat modules need to use
kvm_on_each_cpuinstead onon_each_cpuin order to be compatible throughout various kernel versions.Unfortunately
preempt.cuseson_each_cpu. This patch changespreempt.cto 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.
Signature · 1 line
error compiling committee.c: too many arguments to function