Skip to content

dataplane: add query-iothreads QMP command

Stefan Hajnoczi qemu-devel 3 versions – Applied

Status from this message: Applied to my block tree:

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest2 patches 4 repliesApplied
  2. v22 patches 3 repliesSuperseded
  3. v12 patches 9 repliesSuperseded

Changes in v3 from the cover letter

* Loop until predicate is true to handle pthread_cond spurious wakeups [eblake]
* Fix additional instances of "thread_id" [eblake]

Patches in v3 Applied

#Subject and filesSizeRepliesApplied
1/2iothread: stash thread ID awayiothread.c+22 -00 replies
2/2qmp: add query-iothreads commandiothread.c qapi-schema.json qmp-commands.hx+104 -00 replies

Reviews trailers per patch

1 of 2 patches has a Reviewed-by or Acked-by.

PatchEric Blake
1/2
2/2R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [Qemu-devel] [PATCH v3 0/2] dataplane: add query-iothreads QMP command

v3:
* Loop until predicate is true to handle pthread_cond spurious wakeups [eblake]
* Fix additional instances of "thread_id" [eblake]

v2:
* Use "thread-id" instead of "thread_id" in QAPI [eblake]
* Avoid mutex unlock/destroy race between threads [pbonzini]

This series applies on top of "[PATCH v4 0/6] dataplane: switch to N:M devices-per-thread model".

The new "query-iothreads" command allows QMP clients to fetch the thread IDs for dataplane threads. This will allow libvirt and friends to bind dataplane threads.

The approach is similar to "query-cpus" which is also used for vcpu thread binding (among other things).

Stefan Hajnoczi (2):
iothread: stash thread ID away
qmp: add query-iothreads command

 iothread.c       | 58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 qapi-schema.json | 29 ++++++++++++++++++++++++++++
 qmp-commands.hx  | 39 +++++++++++++++++++++++++++++++++++++
 3 files changed, 126 insertions(+)
Signature · 1 line
1.8.5.3