[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 04/10] docs/s390x: document 3270
From: |
Cornelia Huck |
Subject: |
[PULL 04/10] docs/s390x: document 3270 |
Date: |
Fri, 5 Jun 2020 17:37:50 +0200 |
Add some basic info how to use 3270 devices.
Message-Id: <20200515151518.83950-3-cohuck@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
---
docs/system/s390x/3270.rst | 32 ++++++++++++++++++++++++++++++++
docs/system/target-s390x.rst | 1 +
2 files changed, 33 insertions(+)
create mode 100644 docs/system/s390x/3270.rst
diff --git a/docs/system/s390x/3270.rst b/docs/system/s390x/3270.rst
new file mode 100644
index 000000000000..1774cdcadf01
--- /dev/null
+++ b/docs/system/s390x/3270.rst
@@ -0,0 +1,32 @@
+3270 devices
+============
+
+QEMU supports connecting 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.
+
+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
+to actually be able to use it, attach the ``x3270`` emulator to the chardev.
+
+Example configuration
+---------------------
+
+* Add a ``tn3270`` chardev and a ``x-terminal3270`` to the QEMU command line::
+
+ -chardev socket,id=char_0,host=0.0.0.0,port=2300,nowait,server,tn3270
+ -device x-terminal3270,chardev=char_0,devno=fe.0.000a,id=terminal_0
+
+* Start the guest. In the guest, use ``chccwdev -e 0.0.000a`` to enable
+ the device.
+
+* On the host, start the ``x3270`` emulator::
+
+ x3270 <host>:2300
+
+* In the guest, locate the 3270 device node under ``/dev/3270/`` (say,
+ ``tty1``) and start a getty on it::
+
+ systemctl start serial-getty@3270-tty1.service
+
+This should get you an addtional tty for logging into the guest.
diff --git a/docs/system/target-s390x.rst b/docs/system/target-s390x.rst
index 37ca032d98ef..2592a05303ef 100644
--- a/docs/system/target-s390x.rst
+++ b/docs/system/target-s390x.rst
@@ -24,6 +24,7 @@ or vfio-ap is also available.
.. toctree::
s390x/vfio-ap
s390x/css
+ s390x/3270
Architectural features
======================
--
2.25.4
- [PULL 00/10] s390x update, Cornelia Huck, 2020/06/05
- [PULL 01/10] s390x/kvm: help valgrind in several places, Cornelia Huck, 2020/06/05
- [PULL 02/10] s390x: pv: Fix KVM_PV_PREP_RESET command wrapper name, Cornelia Huck, 2020/06/05
- [PULL 03/10] docs/s390x: document the virtual css, Cornelia Huck, 2020/06/05
- [PULL 05/10] vfio-ccw: allow non-prefetch ORBs, Cornelia Huck, 2020/06/05
- [PULL 06/10] docs/s390x: document vfio-ccw, Cornelia Huck, 2020/06/05
- [PULL 04/10] docs/s390x: document 3270,
Cornelia Huck <=
- [PULL 08/10] target/s390x: Only compile decode_basedisp() on system-mode, Cornelia Huck, 2020/06/05
- [PULL 07/10] MAINTAINERS: add Thomas as additional s390x maintainer, Cornelia Huck, 2020/06/05
- [PULL 09/10] target/s390x/helper: Clean ifdef'ry, Cornelia Huck, 2020/06/05
- [PULL 10/10] target/s390x: Restrict system-mode declarations, Cornelia Huck, 2020/06/05
- Re: [PULL 00/10] s390x update, Peter Maydell, 2020/06/05