From: Avi Kivity Date: Tue, 15 Nov 2011 12:59:07 +0000 (+0200) Subject: KVM guest: prevent tracing recursion with kvmclock X-Git-Tag: v3.2-rc3~26^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95ef1e52922cf75b1ea2eae54ef886f2cc47eecb;p=pandora-kernel.git KVM guest: prevent tracing recursion with kvmclock 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 Acked-by: Steven Rostedt Signed-off-by: Avi Kivity --- Reading git-diff-tree failed