From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35939) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLUFI-00016q-1z for qemu-devel@nongnu.org; Tue, 19 Jan 2016 06:14:45 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aLUFC-0001BA-Oz for qemu-devel@nongnu.org; Tue, 19 Jan 2016 06:14:43 -0500 Received: from mx1.redhat.com ([209.132.183.28]:41493) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aLUFC-0001Ax-K0 for qemu-devel@nongnu.org; Tue, 19 Jan 2016 06:14:38 -0500 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (Postfix) with ESMTPS id 3ED337AEB4 for ; Tue, 19 Jan 2016 11:14:37 +0000 (UTC) From: "Daniel P. Berrange" Date: Tue, 19 Jan 2016 11:14:27 +0000 Message-Id: <1453202071-10289-1-git-send-email-berrange@redhat.com> Subject: [Qemu-devel] [PATCH v4 0/4] Convert chardevs to QIOChannel & add TLS support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Paolo Bonzini 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(-) -- 2.5.0