Skip to content

Convert chardevs to QIOChannel & add TLS support

Daniel P. Berrange qemu-devel 4 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v4 Latest4 patches 4 repliesIn review
  2. v34 patches 0 repliesSuperseded
  3. v24 patches 4 repliesSuperseded
Earlier versions · 1
VersionPostedPatchesRepliesStatus
v14 patches1 replySuperseded

Changes in v4 from the cover letter

- Rebase to resolve conflicts with recent merged patches

Patches in v4 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4char: remove fixed length filename allocationqemu-char.c+44 -420 replies
2/4char: convert from GIOChannel to QIOChannelqemu-char.c tests/Makefile+254 -3963 replies
3/4char: don't assume telnet initialization will not blockqemu-char.c+69 -180 replies
4/4char: introduce support for TLS encrypted TCP chardev backendqapi-schema.json qemu-char.c qemu-options.hx+134 -130 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v4 yet.

Read the v4 thread

Cover letter [Qemu-devel] [PATCH v4 0/4] Convert chardevs to QIOChannel & add TLS support

This is an update of patches previously shown in an RFC posting

RFC: https://lists.gnu.org/archive/html/qemu-devel/2015-09/msg00829.html
v1: https://lists.gnu.org/archive/html/qemu-devel/2015-11/msg04222.html
v2: https://lists.gnu.org/archive/html/qemu-devel/2015-12/msg03823.html
v3: https://lists.gnu.org/archive/html/qemu-devel/2016-01/msg01601.html

This short series converts the chardev backends to use the new QIOChannel framework. After doing so it then adds support for TLS encryption of TCP chardevs. The commit message in the last patch explains the TLS encryption in detail.

The GIOChannel -> QIOChannel conversion has been validated by running the qtest framework, which indeed found a few bugs initially which I have since fixed.

The TLS support has been tested for interoperability using the gnutls-serv and gnutls-client programs which provide stub TLS endpoints/clients respectively.

Changed in v4:

- Rebase to resolve conflicts with recent merged patches

Changed in v3:

- Fix buffer update after partial send of telnet data

Daniel P. Berrange (4):
char: remove fixed length filename allocation
char: convert from GIOChannel to QIOChannel
char: don't assume telnet initialization will not block
char: introduce support for TLS encrypted TCP chardev backend

 qapi-schema.json |   2 +
 qemu-char.c      | 913 ++++++++++++++++++++++++++++---------------------------
 qemu-options.hx  |   9 +-
 tests/Makefile   |   2 +-
 4 files changed, 479 insertions(+), 447 deletions(-)
Signature · 1 line
2.5.0