qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/6] virtio-console: notify about the terminal size
@ 2020-06-24 11:26 Szymon Lukasz
  2020-06-24 11:26 ` [PATCH v2 1/6] main-loop: change the handling of SIGWINCH Szymon Lukasz
                   ` (7 more replies)
  0 siblings, 8 replies; 15+ messages in thread
From: Szymon Lukasz @ 2020-06-24 11:26 UTC (permalink / raw)
  To: qemu-devel; +Cc: lvivier, amit, mst, Szymon Lukasz, marcandre.lureau, pbonzini

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



^ permalink raw reply	[flat|nested] 15+ messages in thread

end of thread, other threads:[~2020-06-25 13:46 UTC | newest]

Thread overview: 15+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-24 11:26 [PATCH v2 0/6] virtio-console: notify about the terminal size Szymon Lukasz
2020-06-24 11:26 ` [PATCH v2 1/6] main-loop: change the handling of SIGWINCH Szymon Lukasz
2020-06-24 11:26 ` [PATCH v2 2/6] chardev: add support for retrieving the terminal size Szymon Lukasz
2020-06-24 11:26 ` [PATCH v2 3/6] chardev: add support for notifying about terminal resizes Szymon Lukasz
2020-06-24 11:26 ` [PATCH v2 4/6] char-stdio: add support for the terminal size Szymon Lukasz
2020-06-24 11:26 ` [PATCH v2 5/6] virtio-serial-bus: add terminal resize messages Szymon Lukasz
2020-06-24 13:37   ` Michael S. Tsirkin
2020-06-24 11:26 ` [PATCH v2 6/6] virtio-console: notify the guest about terminal resizes Szymon Lukasz
2020-06-24 11:49 ` [PATCH v2 0/6] virtio-console: notify about the terminal size Daniel P. Berrangé
2020-06-25  9:52   ` Szymon Lukasz
2020-06-25 13:18   ` Michael S. Tsirkin
2020-06-25 13:23     ` Daniel P. Berrangé
2020-06-25 13:45       ` Michael S. Tsirkin
2020-06-24 11:56 ` Daniel P. Berrangé
2020-06-25  9:54   ` Szymon Lukasz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).