Avi Kivity wrote: > Paolo Ornati wrote: >> On Fri, 10 Aug 2007 14:04:33 +0200 >> "Michal Piotrowski" wrote: >> >> >>>> [ 756.707601] Disabling non-boot CPUs ... >>>> [ 756.712034] kvm: disabling virtualization on CPU1 >>>> [ 756.712037] WARNING: at arch/x86_64/kernel/smp.c:379 >>>> smp_call_function_single() >>>> [ 756.712039] >>>> [ 756.712039] Call Trace: >>>> [ 756.712046] [] >>>> smp_call_function_single+0x119/0x120 >>>> [ 756.712050] [] thread_return+0x1bf/0x626 >>>> [ 756.712054] [] sys_sched_yield+0x2b/0x80 >>>> [ 756.712057] [] kvm_cpu_hotplug+0x4b/0xa0 >>>> [ 756.712060] [] notifier_call_chain+0x53/0x80 >>>> [ 756.712062] [] >>>> __raw_notifier_call_chain+0x9/0x10 >>>> [ 756.712065] [] raw_notifier_call_chain+0x11/0x20 >>>> [ 756.712068] [] take_cpu_down+0x1b/0x30 >>>> [ 756.712071] [] do_stop+0xd2/0x150 >>>> [ 756.712073] [] do_stop+0x0/0x150 >>>> [ 756.712076] [] kthread+0x4d/0x80 >>>> [ 756.712079] [] child_rip+0xa/0x12 >>>> [ 756.712081] [] restore_args+0x0/0x30 >>>> [ 756.712084] [] kthread+0x0/0x80 >>>> [ 756.712086] [] child_rip+0x0/0x12 >>>> [ 756.712087] >>>> [ 756.815693] CPU 1 is now offline >>>> [ 756.815697] lockdep: not fixing up alternatives. >>>> [ 756.819276] CPU1 is down >>>> >>>> >>> Added to KR list, thanks for the report. >>> >> >> >> I've bisected it down to this commit: >> >> cec9ad279b66793bee0b5009b7ca311060061efd >> >> KVM: Use CPU_DYING for disabling virtualization >> Only at the CPU_DYING stage can we be sure that no user >> process will >> be scheduled onto the cpu and oops when trying to use virtualization >> extensions. >> >> > > Thanks. I'll have a go at it. > > Sorry about the delay -- here is the fairly simple patch. A Tested-by: would be appreciated. -- error compiling committee.c: too many arguments to function