qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Anton Nefedov <anton.nefedov@virtuozzo.com>
To: qemu-devel@nongnu.org
Cc: den@virtuozzo.com, pbonzini@redhat.com,
	marcandre.lureau@redhat.com,
	Anton Nefedov <anton.nefedov@virtuozzo.com>
Subject: [Qemu-devel] [PATCH v3 00/13] chardevice hotswap
Date: Tue, 30 May 2017 16:57:50 +0300	[thread overview]
Message-ID: <1496152683-102751-1-git-send-email-anton.nefedov@virtuozzo.com> (raw)

Changed in v3:
  - minor remarks to patch 1 applied
  - patch 3: avoid using bottom-half, handle syncronously
    As mentioned, it gets thing complicated and is only a problem for
    a monitor-connected chardev hotswap and that is not supported for now
  - tests added (patches 6-9)

========

This serie is a v2 of the February submit
http://lists.nongnu.org/archive/html/qemu-devel/2017-02/msg01989.html

The interface is changed as requested and the changes are slightly reworked
and split into separate patches.

========

The patchset adds support of the character device change without
a frontend device removal.
Yet isa-serial and virtio-serial frontends are supported.

The feature can be helpful for e.g. Windows debug allowing to
establish connection to a live VM from VM with WinDbg.

Anton Nefedov (13):
  char: move QemuOpts->ChardevBackend translation to a separate func
  char: add backend hotswap handler
  char: chardevice hotswap
  char: forbid direct chardevice access for hotswap devices
  char: avoid chardevice direct access
  test-char: unref chardev-udp after test
  test-char: split char_udp_test
  test-char: split char_file_test
  test-char: add hotswap test
  hmp: add hmp analogue for qmp-chardev-change
  virtio-console: chardev hotswap support
  serial: move TIOCM update to a separate function
  serial: chardev hotswap support

 backends/rng-egd.c          |   2 +-
 chardev/char-mux.c          |   1 +
 chardev/char.c              | 212 ++++++++++++++++++++++++++++-------
 gdbstub.c                   |   4 +-
 hmp-commands.hx             |  16 +++
 hmp.c                       |  34 ++++++
 hmp.h                       |   1 +
 hw/arm/pxa2xx.c             |   3 +-
 hw/arm/strongarm.c          |   4 +-
 hw/char/bcm2835_aux.c       |   2 +-
 hw/char/cadence_uart.c      |   4 +-
 hw/char/debugcon.c          |   4 +-
 hw/char/digic-uart.c        |   2 +-
 hw/char/escc.c              |   8 +-
 hw/char/etraxfs_ser.c       |   2 +-
 hw/char/exynos4210_uart.c   |   4 +-
 hw/char/grlib_apbuart.c     |   4 +-
 hw/char/imx_serial.c        |   2 +-
 hw/char/ipoctal232.c        |   4 +-
 hw/char/lm32_juart.c        |   2 +-
 hw/char/lm32_uart.c         |   2 +-
 hw/char/mcf_uart.c          |   2 +-
 hw/char/milkymist-uart.c    |   2 +-
 hw/char/parallel.c          |   2 +-
 hw/char/pl011.c             |   2 +-
 hw/char/sclpconsole-lm.c    |   4 +-
 hw/char/sclpconsole.c       |   4 +-
 hw/char/serial.c            |  63 ++++++++---
 hw/char/sh_serial.c         |   4 +-
 hw/char/spapr_vty.c         |   4 +-
 hw/char/stm32f2xx_usart.c   |   3 +-
 hw/char/terminal3270.c      |   4 +-
 hw/char/virtio-console.c    |  35 +++++-
 hw/char/xen_console.c       |   4 +-
 hw/char/xilinx_uartlite.c   |   2 +-
 hw/ipmi/ipmi_bmc_extern.c   |   4 +-
 hw/mips/boston.c            |   2 +-
 hw/mips/mips_malta.c        |   2 +-
 hw/misc/ivshmem.c           |   6 +-
 hw/usb/ccid-card-passthru.c |   6 +-
 hw/usb/dev-serial.c         |   7 +-
 hw/usb/redirect.c           |   7 +-
 include/sysemu/char.h       |  43 ++++++++
 monitor.c                   |   4 +-
 net/colo-compare.c          |  14 ++-
 net/filter-mirror.c         |   8 +-
 net/slirp.c                 |   2 +-
 net/vhost-user.c            |   7 +-
 qapi-schema.json            |  40 +++++++
 qtest.c                     |   2 +-
 tests/test-char.c           | 263 +++++++++++++++++++++++++++++++++-----------
 tests/vhost-user-test.c     |   2 +-
 52 files changed, 669 insertions(+), 202 deletions(-)

-- 
2.7.4

             reply	other threads:[~2017-05-30 13:58 UTC|newest]

Thread overview: 30+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-30 13:57 Anton Nefedov [this message]
2017-05-30 13:57 ` [Qemu-devel] [PATCH v3 01/13] char: move QemuOpts->ChardevBackend translation to a separate func Anton Nefedov
2017-05-31 19:18   ` Marc-André Lureau
2017-05-30 13:57 ` [Qemu-devel] [PATCH v3 02/13] char: add backend hotswap handler Anton Nefedov
2017-05-30 13:57 ` [Qemu-devel] [PATCH v3 03/13] char: chardevice hotswap Anton Nefedov
2017-05-31 19:20   ` Marc-André Lureau
2017-06-01 11:23     ` Anton Nefedov
2017-06-09 14:53       ` Marc-André Lureau
2017-06-13 11:53         ` Anton Nefedov
2017-06-13 12:32           ` Marc-André Lureau
2017-06-15 14:03             ` Anton Nefedov
2017-05-30 13:57 ` [Qemu-devel] [PATCH v3 04/13] char: forbid direct chardevice access for hotswap devices Anton Nefedov
2017-05-31 19:21   ` Marc-André Lureau
2017-05-30 13:57 ` [Qemu-devel] [PATCH v3 05/13] char: avoid chardevice direct access Anton Nefedov
2017-05-31 19:21   ` Marc-André Lureau
2017-05-30 13:57 ` [Qemu-devel] [PATCH v3 06/13] test-char: unref chardev-udp after test Anton Nefedov
2017-05-31 19:22   ` Marc-André Lureau
2017-05-30 13:57 ` [Qemu-devel] [PATCH v3 07/13] test-char: split char_udp_test Anton Nefedov
2017-05-31 19:22   ` Marc-André Lureau
2017-05-30 13:57 ` [Qemu-devel] [PATCH v3 08/13] test-char: split char_file_test Anton Nefedov
2017-05-31 19:24   ` Marc-André Lureau
2017-05-30 13:57 ` [Qemu-devel] [PATCH v3 09/13] test-char: add hotswap test Anton Nefedov
2017-05-31 19:25   ` Marc-André Lureau
2017-05-30 13:58 ` [Qemu-devel] [PATCH v3 10/13] hmp: add hmp analogue for qmp-chardev-change Anton Nefedov
2017-06-01  7:12   ` Marc-André Lureau
2017-06-01 11:24     ` Anton Nefedov
2017-06-01 14:56   ` Dr. David Alan Gilbert
2017-05-30 13:58 ` [Qemu-devel] [PATCH v3 11/13] virtio-console: chardev hotswap support Anton Nefedov
2017-05-30 13:58 ` [Qemu-devel] [PATCH v3 12/13] serial: move TIOCM update to a separate function Anton Nefedov
2017-05-30 13:58 ` [Qemu-devel] [PATCH v3 13/13] serial: chardev hotswap support Anton Nefedov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1496152683-102751-1-git-send-email-anton.nefedov@virtuozzo.com \
    --to=anton.nefedov@virtuozzo.com \
    --cc=den@virtuozzo.com \
    --cc=marcandre.lureau@redhat.com \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).