qemu-e2k/chardev
Anton Nefedov 7bb86085e6 char: chardevice hotswap
This patch adds a possibility to change a char device without a frontend
removal.

Ideally, it would have to happen transparently to a frontend, i.e.
frontend would continue its regular operation.
However, backends are not stateless and are set up by the frontends
via qemu_chr_fe_<> functions, and it's not (generally) possible to replay
that setup entirely in a backend code, as different chardevs respond
to the setup calls differently, so do frontends work differently basing
on those setup responses.
Moreover, some frontend can generally get and save the backend pointer
(qemu_chr_fe_get_driver()), and it will become invalid after backend change.

So, a frontend which would like to support chardev hotswap has to register
a "backend change" handler, and redo its backend setup there.

Signed-off-by: Anton Nefedov <anton.nefedov@virtuozzo.com>
Reviewed-by: Vladimir Sementsov-Ogievskiy <vsementsov@virtuozzo.com>
Message-Id: <1499342940-56739-4-git-send-email-anton.nefedov@virtuozzo.com>
Reviewed-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2017-07-14 11:04:33 +02:00
..
baum.c char: move char devices to chardev/ 2017-06-02 11:33:53 +04:00
char-console.c chardev: move headers to include/chardev 2017-06-02 11:33:52 +04:00
char-fd.c chardev: move headers to include/chardev 2017-06-02 11:33:52 +04:00
char-fe.c char: add backend hotswap handler 2017-07-14 11:04:33 +02:00
char-file.c chardev: move headers to include/chardev 2017-06-02 11:33:52 +04:00
char-io.c chardev: move headers to include/chardev 2017-06-02 11:33:52 +04:00
char-mux.c char: add backend hotswap handler 2017-07-14 11:04:33 +02:00
char-null.c chardev: move headers to include/chardev 2017-06-02 11:33:52 +04:00
char-parallel.c chardev: move headers to include/chardev 2017-06-02 11:33:52 +04:00
char-pipe.c chardev: move headers to include/chardev 2017-06-02 11:33:52 +04:00
char-pty.c chardev: move headers to include/chardev 2017-06-02 11:33:52 +04:00
char-ringbuf.c chardev: move headers to include/chardev 2017-06-02 11:33:52 +04:00
char-serial.c chardev: move headers to include/chardev 2017-06-02 11:33:52 +04:00
char-socket.c chardev: block during sync read 2017-07-14 11:04:33 +02:00
char-stdio.c chardev: move headers to include/chardev 2017-06-02 11:33:52 +04:00
char-udp.c chardev: move headers to include/chardev 2017-06-02 11:33:52 +04:00
char-win-stdio.c chardev: move headers to include/chardev 2017-06-02 11:33:52 +04:00
char-win.c chardev: move headers to include/chardev 2017-06-02 11:33:52 +04:00
char.c char: chardevice hotswap 2017-07-14 11:04:33 +02:00
Makefile.objs char: move char devices to chardev/ 2017-06-02 11:33:53 +04:00
msmouse.c char: move char devices to chardev/ 2017-06-02 11:33:53 +04:00
spice.c char: move char devices to chardev/ 2017-06-02 11:33:53 +04:00
testdev.c char: move char devices to chardev/ 2017-06-02 11:33:53 +04:00
trace-events char: move char devices to chardev/ 2017-06-02 11:33:53 +04:00
wctablet.c char: move char devices to chardev/ 2017-06-02 11:33:53 +04:00