diff options
author | Sean Christopherson <[email protected]> | 2022-05-19 07:57:11 -0700 |
---|---|---|
committer | Paolo Bonzini <[email protected]> | 2022-05-25 05:12:34 -0400 |
commit | 0547758a6de3cc71a0cfdd031a3621a30db6a68b (patch) | |
tree | de982b2497750eadb1712b450b42de53c0cb30a3 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py | |
parent | fee060cd52d69c114b62d1a2948ea9648b5131f9 (diff) |
x86/kvm: Alloc dummy async #PF token outside of raw spinlock
Drop the raw spinlock in kvm_async_pf_task_wake() before allocating the
the dummy async #PF token, the allocator is preemptible on PREEMPT_RT
kernels and must not be called from truly atomic contexts.
Opportunistically document why it's ok to loop on allocation failure,
i.e. why the function won't get stuck in an infinite loop.
Reported-by: Yajun Deng <[email protected]>
Cc: [email protected]
Signed-off-by: Sean Christopherson <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/Util.py')
0 files changed, 0 insertions, 0 deletions