qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Marc-André Lureau" <marcandre.lureau@redhat.com>
To: qemu-devel@nongnu.org
Cc: pbonzini@redhat.com, berrange@redhat.com,
	imbrenda@linux.vnet.ibm.com,
	"Marc-André Lureau" <marcandre.lureau@redhat.com>
Subject: [Qemu-devel] [PATCH 0/9] Fix mux regression (commit 949055a2)
Date: Thu, 13 Oct 2016 15:14:40 +0400	[thread overview]
Message-ID: <20161013111449.29387-1-marcandre.lureau@redhat.com> (raw)

Hi,

Commit 949055a2 "char: use a fixed idx for child muxed chr" introduced
a regression in mux usage, since it wrongly interpreted mux as muxing
various chr backend. Instead, it muxes frontends.

The first patch reverts the broken change, the following patches add
tracking to frontend handler, finally the last patch adds some tests
that would have helped to track the crash and the regression. There is
also a small fix for ringbuf.

Marc-André Lureau (9):
  Revert "char: use a fixed idx for child muxed chr"
  char: return a tag when adding the fe handlers
  char: add qemu_chr_remove_handlers()
  char: keep track of qemu_chr_add_handlers()
  char: warn on unused qemu_chr_add_handlers() result
  qdev: remove call to qemu_chr_add_handlers()
  char: handle qemu_chr_add_handlers() error
  ringbuf: fix chr_write return value
  tests: start chardev unit tests

 backends/rng-egd.c                |  13 ++-
 gdbstub.c                         |  14 ++-
 hw/arm/pxa2xx.c                   |  17 ++-
 hw/arm/strongarm.c                |  22 +++-
 hw/char/bcm2835_aux.c             |  15 ++-
 hw/char/cadence_uart.c            |  18 ++-
 hw/char/debugcon.c                |  33 +++---
 hw/char/digic-uart.c              |  14 ++-
 hw/char/escc.c                    |  20 +++-
 hw/char/etraxfs_ser.c             |  18 ++-
 hw/char/exynos4210_uart.c         |  21 +++-
 hw/char/grlib_apbuart.c           |  17 ++-
 hw/char/imx_serial.c              |  15 ++-
 hw/char/ipoctal232.c              |  23 +++-
 hw/char/lm32_juart.c              |  15 ++-
 hw/char/lm32_uart.c               |  15 ++-
 hw/char/mcf_uart.c                |   7 +-
 hw/char/milkymist-uart.c          |  15 ++-
 hw/char/pl011.c                   |  16 ++-
 hw/char/sclpconsole-lm.c          |  18 ++-
 hw/char/sclpconsole.c             |  12 +-
 hw/char/serial.c                  |  14 ++-
 hw/char/sh_serial.c               |   9 +-
 hw/char/spapr_vty.c               |  16 ++-
 hw/char/stm32f2xx_usart.c         |  15 ++-
 hw/char/virtio-console.c          |  17 ++-
 hw/char/xen_console.c             |  17 ++-
 hw/char/xilinx_uartlite.c         |  18 ++-
 hw/core/qdev-properties-system.c  |   1 -
 hw/ipmi/ipmi_bmc_extern.c         |  15 ++-
 hw/misc/ivshmem.c                 |  15 ++-
 hw/usb/ccid-card-passthru.c       |  18 ++-
 hw/usb/dev-serial.c               |  20 +++-
 hw/usb/redirect.c                 |  19 ++-
 monitor.c                         |  21 +++-
 net/colo-compare.c                |  37 ++++--
 net/filter-mirror.c               |  20 +++-
 net/slirp.c                       |  12 +-
 net/vhost-user.c                  |  20 ++--
 qemu-char.c                       | 173 +++++++++++++++++----------
 qtest.c                           |   7 +-
 stubs/monitor-init.c              |   2 +-
 tests/test-char.c                 | 238 ++++++++++++++++++++++++++++++++++++++
 tests/vhost-user-test.c           |   8 +-
 vl.c                              |   2 +-
 tests/Makefile.include            |   4 +
 include/hw/char/bcm2835_aux.h     |   1 +
 include/hw/char/cadence_uart.h    |   1 +
 include/hw/char/digic-uart.h      |   1 +
 include/hw/char/imx_serial.h      |   1 +
 include/hw/char/serial.h          |   1 +
 include/hw/char/stm32f2xx_usart.h |   1 +
 include/monitor/monitor.h         |   2 +-
 include/sysemu/char.h             |  40 ++++---
 54 files changed, 954 insertions(+), 190 deletions(-)
 create mode 100644 tests/test-char.c

-- 
2.10.0

             reply	other threads:[~2016-10-13 11:14 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-10-13 11:14 Marc-André Lureau [this message]
2016-10-13 11:14 ` [Qemu-devel] [PATCH 1/9] Revert "char: use a fixed idx for child muxed chr" Marc-André Lureau
2016-10-13 11:14 ` [Qemu-devel] [PATCH 2/9] char: return a tag when adding the fe handlers Marc-André Lureau
2016-10-13 11:14 ` [Qemu-devel] [PATCH 3/9] char: add qemu_chr_remove_handlers() Marc-André Lureau
2016-10-13 11:14 ` [Qemu-devel] [PATCH 4/9] char: keep track of qemu_chr_add_handlers() Marc-André Lureau
2016-10-13 11:14 ` [Qemu-devel] [PATCH 5/9] char: warn on unused qemu_chr_add_handlers() result Marc-André Lureau
2016-10-13 11:14 ` [Qemu-devel] [PATCH 6/9] qdev: remove call to qemu_chr_add_handlers() Marc-André Lureau
2016-10-13 11:14 ` [Qemu-devel] [PATCH 7/9] char: handle qemu_chr_add_handlers() error Marc-André Lureau
2016-10-13 11:14 ` [Qemu-devel] [PATCH 8/9] ringbuf: fix chr_write return value Marc-André Lureau
2016-10-13 11:14 ` [Qemu-devel] [PATCH 9/9] tests: start chardev unit tests Marc-André Lureau
2016-10-13 11:36 ` [Qemu-devel] [PATCH 0/9] Fix mux regression (commit 949055a2) Paolo Bonzini
2016-10-13 11:50   ` Marc-André Lureau
2016-10-13 11:58     ` Paolo Bonzini
2016-10-13 13:27 ` Peter Maydell

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=20161013111449.29387-1-marcandre.lureau@redhat.com \
    --to=marcandre.lureau@redhat.com \
    --cc=berrange@redhat.com \
    --cc=imbrenda@linux.vnet.ibm.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).