From nobody Mon Apr 29 03:26:41 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=redhat.com ARC-Seal: i=1; a=rsa-sha256; t=1594310878; cv=none; d=zohomail.com; s=zohoarc; b=A23NZww0rmusEaR5zw/PTS2u4LAwVvaP9xRj2vgu7Qd8Fw124WBFZh3JRwe8EWrwgwcDGmqJzEUmb43sU0ku/FWN0axedfiTrdd5bczm2XldZoRHk+7AklTMdGWeg8WKN18GQgplWDAUDKhQE86Ijh0cSD3pRaDkrnQBbqWdJmA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1594310878; h=Content-Type:Cc:Date:From:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:Sender:Subject:To; bh=1uP0rRX5sys7IyYf81527/O/Op13w4EXz/SwyxzIwdA=; b=RE1bsKb3I0O4rw3/Q8rBm/ZqE1bLuYK4Low3Cg65VZFdBK8LWheOwclTld6P44ATXiz9YwUwnqrNUR5QVLG84SmA28s1waL7E0xsUruvww4s/HhHFjRoCba7FR4D4Tw8X+KMmtzAB9wILJqCGh9ZX4Meb/M1HtcKIoNk9I5Syhw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) header.from= Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1594310878594231.5896643401303; Thu, 9 Jul 2020 09:07:58 -0700 (PDT) Received: from localhost ([::1]:39226 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1jtZ5Z-0002pi-8w for importer@patchew.org; Thu, 09 Jul 2020 12:07:57 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:56662) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1jtZ2m-0007T8-Ti for qemu-devel@nongnu.org; Thu, 09 Jul 2020 12:05:04 -0400 Received: from us-smtp-1.mimecast.com ([205.139.110.61]:46022 helo=us-smtp-delivery-1.mimecast.com) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_CBC_SHA1:256) (Exim 4.90_1) (envelope-from ) id 1jtZ2j-0000zv-Ug for qemu-devel@nongnu.org; Thu, 09 Jul 2020 12:05:04 -0400 Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-180-D1ihEJy-OiylAYsqzMmpqQ-1; Thu, 09 Jul 2020 12:04:43 -0400 Received: from smtp.corp.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 3D3D8186A8DE; Thu, 9 Jul 2020 16:04:42 +0000 (UTC) Received: from thuth.com (ovpn-112-106.ams2.redhat.com [10.36.112.106]) by smtp.corp.redhat.com (Postfix) with ESMTP id 3098B60BE2; Thu, 9 Jul 2020 16:04:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1594310700; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:content-type:content-type; bh=1uP0rRX5sys7IyYf81527/O/Op13w4EXz/SwyxzIwdA=; b=GV6HelsQoLwk++MxE0UjeMvWtL4p0wc8lcaOTCt5B/igP1eACHs3I9XXbt2Hd0aTFgYEJY NzFnQ0hxjc3zkTvVzJ+LRGsPvunxpluhdnmWZgNG50hR5y0ZuaItq4aVZf2TJK7Ti2Rvfv b3AVWnKF9TjG5l2gTX/1JkcUrPJmeFo= X-MC-Unique: D1ihEJy-OiylAYsqzMmpqQ-1 From: Thomas Huth To: qemu-devel@nongnu.org, Cornelia Huck Subject: [PATCH] docs/system/s390x: Improve the 3270 documentation Date: Thu, 9 Jul 2020 18:04:39 +0200 Message-Id: <20200709160439.15088-1-thuth@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.12 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=205.139.110.61; envelope-from=thuth@redhat.com; helo=us-smtp-delivery-1.mimecast.com X-detected-operating-system: by eggs.gnu.org: First seen = 2020/07/09 10:34:01 X-ACL-Warn: Detected OS = Linux 2.2.x-3.x [generic] [fuzzy] X-Spam_score_int: -40 X-Spam_score: -4.1 X-Spam_bar: ---- X-Spam_report: (-4.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H2=-1, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: qemu-s390x@nongnu.org Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @redhat.com) Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" There is some additional information about the 3270 support in our Wiki at https://wiki.qemu.org/Features/3270 - so let's include this information into the main documentation now to have one single source of information (the Wiki page could later be removed). Signed-off-by: Thomas Huth --- docs/system/s390x/3270.rst | 43 ++++++++++++++++++++++++++++++++------ 1 file changed, 37 insertions(+), 6 deletions(-) diff --git a/docs/system/s390x/3270.rst b/docs/system/s390x/3270.rst index 1774cdcadf..80350264d7 100644 --- a/docs/system/s390x/3270.rst +++ b/docs/system/s390x/3270.rst @@ -1,9 +1,15 @@ 3270 devices =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D =20 -QEMU supports connecting an external 3270 terminal emulator (such as -``x3270``) to make a single 3270 device available to a guest. Note that th= is -supports basic features only. +The 3270 is the classic 'green-screen' console of the mainframes (see the +`IBM 3270 Wikipedia article `__). + +The 3270 data stream is not implemented within QEMU; the device only provi= des +TN3270 (a telnet extension; see `RFC 854 `__ +and `RFC 1576 `__) and leaves the hea= vy +lifting to an external 3270 terminal emulator (such as ``x3270``) to make a +single 3270 device available to a guest. Note that this supports basic +features only. =20 To provide a 3270 device to a guest, create a ``x-terminal3270`` linked to a ``tn3270`` chardev. The guest will see a 3270 channel device. In order @@ -12,10 +18,14 @@ to actually be able to use it, attach the ``x3270`` emu= lator to the chardev. Example configuration --------------------- =20 +* Make sure that 3270 support is enabled in the guest's kernel. You need + ``CONFIG_TN3270`` and at least one of ``CONFIG_TN3270_TTY`` (for additio= nal + ttys) or ``CONFIG_TN3270_CONSOLE`` (for a 3270 console). + * Add a ``tn3270`` chardev and a ``x-terminal3270`` to the QEMU command li= ne:: =20 - -chardev socket,id=3Dchar_0,host=3D0.0.0.0,port=3D2300,nowait,server,t= n3270 - -device x-terminal3270,chardev=3Dchar_0,devno=3Dfe.0.000a,id=3Dtermina= l_0 + -chardev socket,id=3Dch0,host=3D0.0.0.0,port=3D2300,nowait,server,tn3270 + -device x-terminal3270,chardev=3Dch0,devno=3Dfe.0.000a,id=3Dterminal0 =20 * Start the guest. In the guest, use ``chccwdev -e 0.0.000a`` to enable the device. @@ -29,4 +39,25 @@ Example configuration =20 systemctl start serial-getty@3270-tty1.service =20 -This should get you an addtional tty for logging into the guest. + This should get you an addtional tty for logging into the guest. + +* If you want to use the 3270 device as the kernel console instead of an + additional tty, you can also append ``conmode=3D3270 condev=3D000a`` to = the + guest's kernel command line. The kernel then should use the 3270 as + console after the next boot. + +Restrictions +------------ + +3270 support is still experimental. In particular: + +* Only one 3270 device is supported. + +* It has only been tested with Linux guests and the x3270 emulator. + +* TLS/SSL is not yet supported. + +* Resizing on reattach is not yet supported. + +* Multiple commands in one inbound buffer (for example, when the reset key + is pressed while the network is slow) are not yet supported. --=20 2.18.1