[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 08/36] qemu-options.hx: Improve -serial option documentation
From: |
Peter Maydell |
Subject: |
[PULL 08/36] qemu-options.hx: Improve -serial option documentation |
Date: |
Fri, 2 Feb 2024 15:36:09 +0000 |
The -serial option documentation is a bit brief about '-serial none'
and '-serial null'. In particular it's not very clear about the
difference between them, and it doesn't mention that it's up to
the machine model whether '-serial none' means "don't create the
serial port" or "don't wire the serial port up to anything".
Expand on these points.
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Message-id: 20240122163607.459769-3-peter.maydell@linaro.org
---
qemu-options.hx | 14 +++++++++++---
1 file changed, 11 insertions(+), 3 deletions(-)
diff --git a/qemu-options.hx b/qemu-options.hx
index 484cc21c1fd..40e938c4877 100644
--- a/qemu-options.hx
+++ b/qemu-options.hx
@@ -4129,7 +4129,8 @@ SRST
This option can be used several times to simulate up to 4 serial
ports.
- Use ``-serial none`` to disable all serial ports.
+ You can use ``-serial none`` to suppress the creation of default
+ serial devices.
Available character devices are:
@@ -4151,10 +4152,17 @@ SRST
[Linux only] Pseudo TTY (a new PTY is automatically allocated)
``none``
- No device is allocated.
+ No device is allocated. Note that for machine types which
+ emulate systems where a serial device is always present in
+ real hardware, this may be equivalent to the ``null`` option,
+ in that the serial device is still present but all output
+ is discarded. For boards where the number of serial ports is
+ truly variable, this suppresses the creation of the device.
``null``
- void device
+ A guest will see the UART or serial device as present in the
+ machine, but all output is discarded, and there is no input.
+ Conceptually equivalent to redirecting the output to ``/dev/null``.
``chardev:id``
Use a named character device defined with the ``-chardev``
--
2.34.1
- [PULL 00/36] target-arm queue, Peter Maydell, 2024/02/02
- [PULL 01/36] target/arm: fix exception syndrome for AArch32 bkpt insn, Peter Maydell, 2024/02/02
- [PULL 02/36] pci: Switch bus reset to 3-phase-reset, Peter Maydell, 2024/02/02
- [PULL 03/36] vmbus: Switch bus reset to 3-phase-reset, Peter Maydell, 2024/02/02
- [PULL 04/36] adb: Switch bus reset to 3-phase-reset, Peter Maydell, 2024/02/02
- [PULL 05/36] hw/s390x/css-bridge: switch virtual-css bus to 3-phase-reset, Peter Maydell, 2024/02/02
- [PULL 06/36] hw/core: Remove transitional infrastructure from BusClass, Peter Maydell, 2024/02/02
- [PULL 09/36] target/arm: Add ID_AA64ZFR0_EL1.B16B16 to the exposed-to-userspace set, Peter Maydell, 2024/02/02
- [PULL 08/36] qemu-options.hx: Improve -serial option documentation,
Peter Maydell <=
- [PULL 10/36] tests/qtest/xlnx-versal-trng-test.c: Drop use of variable length array, Peter Maydell, 2024/02/02
- [PULL 07/36] system/vl.c: Fix handling of '-serial none -serial something', Peter Maydell, 2024/02/02
- [PULL 11/36] target/arm: Reinstate "vfp" property on AArch32 CPUs, Peter Maydell, 2024/02/02
- [PULL 13/36] hw/arm/exynos: Add missing QOM parent for CPU cores, Peter Maydell, 2024/02/02
- [PULL 14/36] hw/arm/exynos: Check for CPU types in machine_run_board_init(), Peter Maydell, 2024/02/02
- [PULL 15/36] hw/arm/highbank: Add missing QOM parent for CPU cores, Peter Maydell, 2024/02/02
- [PULL 16/36] hw/arm/highbank: Check for CPU types in machine_run_board_init(), Peter Maydell, 2024/02/02
- [PULL 20/36] hw/arm/vexpress: Check for CPU types in machine_run_board_init(), Peter Maydell, 2024/02/02
- [PULL 18/36] hw/arm/musca: Simplify setting MachineClass::valid_cpu_types[], Peter Maydell, 2024/02/02
- [PULL 17/36] hw/arm/msf2: Simplify setting MachineClass::valid_cpu_types[], Peter Maydell, 2024/02/02