diff options
| author | Avi Kivity <[email protected]> | 2011-11-15 12:59:07 +0000 |
|---|---|---|
| committer | Avi Kivity <[email protected]> | 2011-11-20 08:53:48 +0000 |
| commit | 95ef1e52922cf75b1ea2eae54ef886f2cc47eecb (patch) | |
| tree | 158082c19666aa589b539f20b4cf29e99f205f4f /net/ipv4/tcp_output.c | |
| parent | Revert "KVM: PPC: Add support for explicit HIOR setting" (diff) | |
| download | kernel-95ef1e52922cf75b1ea2eae54ef886f2cc47eecb.tar.gz kernel-95ef1e52922cf75b1ea2eae54ef886f2cc47eecb.zip | |
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 <[email protected]>
Acked-by: Steven Rostedt <[email protected]>
Signed-off-by: Avi Kivity <[email protected]>
Diffstat (limited to 'net/ipv4/tcp_output.c')
0 files changed, 0 insertions, 0 deletions
