summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/task-analyzer.py
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2022-12-28 13:33:41 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2022-12-28 13:53:57 +0300
commita79b53aaaab53de017517bf9579b6106397a523c (patch)
tree9dd186153aa405173b6b792843191932244df4c9 /tools/perf/scripts/python/task-analyzer.py
parentaf2808906aab0bf5786021d45b3ebfca6f4ad72f (diff)
downloadlinux-a79b53aaaab53de017517bf9579b6106397a523c.tar.xz
KVM: x86: fix deadlock for KVM_XEN_EVTCHN_RESET
While KVM_XEN_EVTCHN_RESET is usually called with no vCPUs running, if that happened it could cause a deadlock. This is due to kvm_xen_eventfd_reset() doing a synchronize_srcu() inside a kvm->lock critical section. To avoid this, first collect all the evtchnfd objects in an array and free all of them once the kvm->lock critical section is over and th SRCU grace period has expired. Reported-by: Michal Luczaj <mhal@rbox.co> Cc: David Woodhouse <dwmw@amazon.co.uk> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions