[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH v2 0/6] virtio-console: notify about the terminal size
From: |
Szymon Lukasz |
Subject: |
[PATCH v2 0/6] virtio-console: notify about the terminal size |
Date: |
Wed, 24 Jun 2020 13:26:34 +0200 |
The goal of this series is to have a resizable terminal into a guest
without having to set up networking and using, e.g. ssh.
The virtio spec allows a virtio-console device to notify the guest about
terminal resizes in the host. Linux Kernel implements the driver part of
the spec. This series implement the device part in QEMU.
In this series resize notifications are only supported for the stdio
backend but I think it should be easy to add support for the vc backend.
Support for tty/serial backends is complicated by the fact that there is
no clean way to detect resizes of the underlying terminal.
Also there is a problem with the virtio spec and Linux Kernel
implementation, the order of fields in virtio_console_resize struct
differs between the kernel and the spec. I do not know if there is any
implementation of the virtio-console driver that handles resize messages
and uses a different order than Linux.
v2:
fix adding a new virtio feature bit to the virtio console device
Szymon Lukasz (6):
main-loop: change the handling of SIGWINCH
chardev: add support for retrieving the terminal size
chardev: add support for notifying about terminal resizes
char-stdio: add support for the terminal size
virtio-serial-bus: add terminal resize messages
virtio-console: notify the guest about terminal resizes
backends/cryptodev-vhost-user.c | 1 +
chardev/char-fe.c | 11 ++++++
chardev/char-mux.c | 7 ++++
chardev/char-stdio.c | 35 +++++++++++++++++
chardev/char.c | 1 +
hw/block/vhost-user-blk.c | 1 +
hw/char/terminal3270.c | 1 +
hw/char/trace-events | 1 +
hw/char/virtio-console.c | 65 +++++++++++++++++++++++++++++--
hw/char/virtio-serial-bus.c | 42 +++++++++++++++++++-
hw/core/machine.c | 1 +
hw/ipmi/ipmi_bmc_extern.c | 1 +
hw/usb/ccid-card-passthru.c | 1 +
hw/usb/dev-serial.c | 1 +
hw/usb/redirect.c | 1 +
include/chardev/char-fe.h | 11 ++++++
include/chardev/char.h | 2 +
include/hw/virtio/virtio-serial.h | 5 +++
include/qemu/main-loop.h | 4 ++
monitor/hmp.c | 1 +
monitor/qmp.c | 1 +
net/vhost-user.c | 1 +
ui/curses.c | 11 +++---
util/main-loop.c | 21 ++++++++++
24 files changed, 216 insertions(+), 11 deletions(-)
--
2.27.0
- [PATCH v2 0/6] virtio-console: notify about the terminal size,
Szymon Lukasz <=
- [PATCH v2 1/6] main-loop: change the handling of SIGWINCH, Szymon Lukasz, 2020/06/24
- [PATCH v2 4/6] char-stdio: add support for the terminal size, Szymon Lukasz, 2020/06/24
- [PATCH v2 2/6] chardev: add support for retrieving the terminal size, Szymon Lukasz, 2020/06/24
- [PATCH v2 6/6] virtio-console: notify the guest about terminal resizes, Szymon Lukasz, 2020/06/24
- [PATCH v2 3/6] chardev: add support for notifying about terminal resizes, Szymon Lukasz, 2020/06/24
- [PATCH v2 5/6] virtio-serial-bus: add terminal resize messages, Szymon Lukasz, 2020/06/24
- Re: [PATCH v2 0/6] virtio-console: notify about the terminal size, Daniel P . Berrangé, 2020/06/24