Skip to content

qga: Add optional `merge-output` flag to guest-exec QAPI

Daniel Xu qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest4 patches 5 repliesIn review
  2. v23 patches 2 repliesSuperseded
  3. v13 patches 8 repliesSuperseded

Changes in v3 from the cover letter

* Error out if merge-output on windows guests
* Add FIXMEs for when glib is updated
* Fix memory leaks in qemu-keymap

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4crypto/luks: Initialize stack variable to silence warningcrypto/block-luks.c+1 -11 reply
2/4qemu-keymap: Fix memory leaksqemu-keymap.c+5 -01 reply
3/4qga: Add optional `merge-output` flag to guest-exec qapiqga/commands.c qga/qapi-schema.json+31 -32 replies
4/4qga: test: Add tests for `merge-output` flagtests/unit/test-qga.c+140 -171 reply

Reviews trailers per patch

2 of 4 patches have a Reviewed-by or Acked-by.

PatchMarc-André LureauDaniel P. Berrangé
1/4R-b
2/4R-b
3/4
4/4

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

Read the v3 thread

Cover letter [PATCH v3 0/4] qga: Add optional `merge-output` flag to guest-exec QAPI

Currently, the captured output (via capture-output) is segregated into separate GuestExecStatus fields (out-data and err-data). This means that downstream consumers have no way to reassemble the captured data back into the original stream.

This is relevant for chatty and semi-interactive (ie. read only) CLI tools. Such tools may deliberately interleave stdout and stderr for visual effect. If segregated, the output becomes harder to visually understand.

This patchset adds support for merging stderr and stdout output streams via a new QAPI flag.

Changes from v2:
* Error out if merge-output on windows guests
* Add FIXMEs for when glib is updated
* Fix memory leaks in qemu-keymap

Changes from v1:
* Drop invalid test fix
* Do not support merge-output on windows guests
* Fix a UAF in tests

Daniel Xu (4):
crypto/luks: Initialize stack variable to silence warning
qemu-keymap: Fix memory leaks
qga: Add optional merge-output flag to guest-exec qapi
qga: test: Add tests for merge-output flag

 crypto/block-luks.c   |   2 +-
 qemu-keymap.c         |   5 ++
 qga/commands.c        |  28 +++++++-
 qga/qapi-schema.json  |   6 +-
 tests/unit/test-qga.c | 157 +++++++++++++++++++++++++++++++++++++-----
 5 files changed, 177 insertions(+), 21 deletions(-)
Signature · 1 line
2.39.1