Revision 95ef1e52922cf75b1ea2eae54ef886f2cc47eecb authored by Avi Kivity on 15 November 2011, 12:59:07 UTC, committed by Avi Kivity on 20 November 2011, 08:53:48 UTC
Prevent tracing of preempt_disable() in get_cpu_var() in
kvm_clock_read(). When CONFIG_DEBUG_PREEMPT is enabled,
preempt_disable/enable() are traced and this causes the function_graph
tracer to go into an infinite recursion. By open coding the
preempt_disable() around the get_cpu_var(), we can use the notrace
version which prevents preempt_disable/enable() from being traced and
prevents the recursion.

Based on a similar patch for Xen from Jeremy Fitzhardinge.

Tested-by: Gleb Natapov <gleb@redhat.com>
Acked-by: Steven Rostedt <rostedt@goodmis.org>
Signed-off-by: Avi Kivity <avi@redhat.com>
1 parent bb75c62
History
File Mode Size
Kbuild -rw-r--r-- 117 bytes
inftl-user.h -rw-r--r-- 1.5 KB
mtd-abi.h -rw-r--r-- 9.1 KB
mtd-user.h -rw-r--r-- 1.2 KB
nftl-user.h -rw-r--r-- 2.0 KB
ubi-user.h -rw-r--r-- 15.1 KB

back to top