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
platform
acexcep.h -rw-r--r-- 12.5 KB
acnames.h -rw-r--r-- 3.4 KB
acoutput.h -rw-r--r-- 11.1 KB
acpi.h -rw-r--r-- 3.0 KB
acpi_bus.h -rw-r--r-- 11.1 KB
acpi_drivers.h -rw-r--r-- 5.2 KB
acpi_numa.h -rw-r--r-- 471 bytes
acpiosxf.h -rw-r--r-- 7.7 KB
acpixf.h -rw-r--r-- 12.4 KB
acrestyp.h -rw-r--r-- 11.0 KB
actbl.h -rw-r--r-- 16.8 KB
actbl1.h -rw-r--r-- 25.3 KB
actbl2.h -rw-r--r-- 27.9 KB
actypes.h -rw-r--r-- 34.5 KB
apei.h -rw-r--r-- 1.1 KB
atomicio.h -rw-r--r-- 307 bytes
button.h -rw-r--r-- 652 bytes
container.h -rw-r--r-- 198 bytes
hed.h -rw-r--r-- 371 bytes
pdc_intel.h -rw-r--r-- 1009 bytes
processor.h -rw-r--r-- 8.9 KB
reboot.h -rw-r--r-- 162 bytes
video.h -rw-r--r-- 958 bytes

back to top