summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorKarl Mehltretter <kmehltretter@gmail.com>2026-09-08 07:38:17 +0200
committerMichael S. Tsirkin <mst@redhat.com>2026-09-08 04:23:50 -0400
commitdd886653d2038a510a21bff476fa1be0422a4fb9 (patch)
tree7fb10dc4a72ace0b80393ffd8ddb80c695b2d3e6 /tools/perf/scripts/python/bin
parent961d62a3c153d161ab5f617a49f409deb55d3111 (diff)
downloadlinux-next-dd886653d2038a510a21bff476fa1be0422a4fb9.tar.gz
linux-next-dd886653d2038a510a21bff476fa1be0422a4fb9.zip
virtio_vdpa: implement synchronize_cbs()
virtio_vdpa relies on the core's synchronize_rcu() fallback for callback synchronization. That covers IRQ handlers and sections with interrupts, preemption or bottom halves disabled. virtio_vdpa does not enforce any of those contexts when a vDPA driver invokes a callback. Add an SRCU domain per device and enter it around the virtqueue and config callbacks. Implement synchronize_cbs() with synchronize_srcu() so it covers the callbacks regardless of the calling context. SRCU uses per-CPU reader accounting, avoiding a single callback lock shared by all queues. Cover the config callback too, as virtio-pci does for its config vector. Assisted-by: LLM Signed-off-by: Karl Mehltretter <kmehltretter@gmail.com> Signed-off-by: Michael S. Tsirkin <mst@redhat.com> Message-ID: <20260908053817.26065-7-kmehltretter@gmail.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions