Re: [BUG] kvm crashes in 2.6.28-rc6-00007-ged31348

Avi Kivity
2008-12-02T20:38:57Z

Steven Rostedt wrote:
> The following must be available without recursion for the function
> tracer to work:
>
> local_irq_save/restore
> smp_processor_id
> preempt_enable/disable_notrace
> atomic_inc/dec
>

In arch/x86/kvm/svm.c, function svm_vcpu_run(), everything between the
vmrun instruction and the call to load_host_msrs() is executed without a
live pda, so no smp_processor_id(). Could easily be fixed by
rearranging things.

--
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.