Skip to content

qtest: base64 r/w and faster memset

John Snow qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest5 patches 13 repliesIn review
  2. v24 patches 7 repliesSuperseded
  3. v1 RFC3 patches 0 repliesSuperseded

Changes in v3 from the cover letter

- Including a memset optimization.

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5qtest: allow arbitrarily long sendsqtest.c+28 -182 replies
2/5qtest: Add base64 encoded read/writeqtest.c tests/libqtest.c tests/libqtest.h+149 -00 replies
3/5qtest: add memset to qtest protocolqtest.c tests/libqtest.c+21 -70 replies
4/5qtest: precompute hex nibsqtest.c tests/libqtest.c+30 -710 replies
5/5libqos/ahci: Swap memread/write with bufread/writetests/ahci-test.c tests/libqos/ahci.c+6 -60 replies

Reviews trailers per patch

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

PatchEric Blake
1/5R-b
2/5
3/5
4/5
5/5

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/5] qtest: base64 r/w and faster memset

Adds new qtest protocol commands for base64 reads and writes, as well as a proper command for memset instead of faking it via write.

This improves the ahci-test performance on my machine from about 14 seconds to about ~3.5.

v3:
- Including a memset optimization.
v2:
- Resend as non-RFC.

==
For convenience, this branch is available at:
https://github.com/jnsnow/qemu.git branch qtest_protocol
https://github.com/jnsnow/qemu/tree/qtest_protocol

This version is tagged qtest_protocol-v3:
https://github.com/jnsnow/qemu/releases/tag/qtest_protocol-v3
==

John Snow (5):
qtest: allow arbitrarily long sends
qtest: Add base64 encoded read/write
qtest: add memset to qtest protocol
qtest: precompute hex nibs
libqos/ahci: Swap memread/write with bufread/write

 qtest.c             | 147 +++++++++++++++++++++++++++++++++++++++++++++-------
 tests/ahci-test.c   |   8 +--
 tests/libqos/ahci.c |   4 +-
 tests/libqtest.c    |  56 ++++++++++++++++----
 tests/libqtest.h    |  49 ++++++++++++++++++
 5 files changed, 230 insertions(+), 34 deletions(-)
Signature · 1 line
2.1.0