qemu/include/chardev
Marc-André Lureau d09c4a4787 chardev: fix backend events regression with mux chardev
Kirill noticied that on recent versions on QEMU he was not able to
trigger SysRq to invoke debug capabilites of Linux Kernel.  He tracked
it down to qemu_chr_be_event() ignoring CHR_EVENT_BREAK due s->be
being NULL. The bug was introduced in 2.8, commit a4afa548fc ("char:
move front end handlers in CharBackend"). Since the commit, the
qemu_chr_be_event() failed to deliver CHR_EVENT_BREAK due to
qemu_chr_fe_init() does not set s->be in case of mux.

Let's fix this by teaching mux to send an event to the frontend with
the focus.

Reported-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Fixes: a4afa548fc ("char: move front end handlers in CharBackend")
Message-Id: <20171103152824.21948-2-marcandre.lureau@redhat.com>
Tested-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2017-12-21 09:30:32 +01:00
..
char-fd.h char-fd: remove useless chr pointer 2017-08-01 17:27:33 +02:00
char-fe.h char: avoid chardevice direct access 2017-07-14 11:04:33 +02:00
char-io.h chardev: move headers to include/chardev 2017-06-02 11:33:52 +04:00
char-mux.h char: move CharBackend handling in char-fe unit 2017-06-02 11:33:53 +04:00
char-parallel.h char: fix alias devices regression 2017-06-08 17:57:36 +04:00
char-serial.h char: fix alias devices regression 2017-06-08 17:57:36 +04:00
char-win-stdio.h chardev: move headers to include/chardev 2017-06-02 11:33:52 +04:00
char-win.h chardev: move headers to include/chardev 2017-06-02 11:33:52 +04:00
char.h chardev: fix backend events regression with mux chardev 2017-12-21 09:30:32 +01:00