summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorKoichiro Den <den@valinux.co.jp>2026-08-21 17:41:12 +0900
committerJuergen Gross <jgross@suse.com>2026-10-09 10:28:28 +0200
commit908019e5999161ca89da310c05ddbf7fc89c129e (patch)
tree4aea46aa10dca5f7f0a23f1ce3e26c6e42903611 /tools/perf/scripts/python/stackcollapse.py
parent992df081bc8878d11e1eb5ae4a609910fd35c62b (diff)
downloadlinux-908019e5999161ca89da310c05ddbf7fc89c129e.tar.gz
linux-908019e5999161ca89da310c05ddbf7fc89c129e.zip
xen/privcmd: Only claim ioreqs matching an ioeventfd
The ioeventfd handler shares its event channel with the userspace device model. It must only claim requests that match a registered ioeventfd. Other requests are left for userspace. ioeventfd_interrupt() currently marks every MMIO write INPROCESS before looking for a match. For an unmatched request it drops the lock and restores READY. Userspace may see INPROCESS and skip it. Restoring READY does not send another notification. If userspace handles the request at the same time, the READY store may overwrite its state. Find a matching ioeventfd before changing the request state. The lock now protects only the ioeventfd list. Use explicit virt_*mb() barriers for the ioreq shared with Xen. Fixes: f0d7db7b3324 ("xen: privcmd: Add support for ioeventfd") Cc: stable@vger.kernel.org Signed-off-by: Koichiro Den <den@valinux.co.jp> Reviewed-by: Juergen Gross <jgross@suse.com> Signed-off-by: Juergen Gross <jgross@suse.com> Message-ID: <20260821084112.2374949-1-den@valinux.co.jp>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions