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

From: Avi Kivity
Date: Tue Dec 02 2008 - 15:58:52 EST


Steven Rostedt wrote:



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.

That would be best, but if you have trouble, you could surround the
trouble area with a: tracing_stop(); tracing_start(); That will prevent
tracing within those locations. The function tracer will still be
called, but it will exit the function without doing anything else.

Note: that stops tracing on all CPUS, not just the CPU that called it.

The vmrun instruction can execute for a long time (hours, if you have a dyntick kernel and no timers scheduled), so that's less than optimal.

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

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/