[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH v2 12/15] chardev: introduce chr_machine_done ho
From: |
Paolo Bonzini |
Subject: |
Re: [Qemu-devel] [PATCH v2 12/15] chardev: introduce chr_machine_done hook |
Date: |
Thu, 1 Mar 2018 18:38:31 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 |
On 01/03/2018 09:44, Peter Xu wrote:
> Introduce ChardevClass.chr_machine_done() hook so that chardevs can run
> customized procedures after machine init.
>
> There was an existing mux user already that did similar thing but used a
> raw machine done notifier. Generalize it into a framework, and let the
> mux chardevs provide such a class-specific hook to achieve the same
> thing. Then we can move the mux related code to the char-mux.c file.
>
> This notifier framework will be further leverged by other type of
> chardevs soon.
>
> Signed-off-by: Peter Xu <address@hidden>
> ---
> chardev/char-mux.c | 29 +++++++++++++++++++++++++++++
> chardev/char.c | 43 +++++++++++++++++--------------------------
> include/chardev/char.h | 2 ++
> 3 files changed, 48 insertions(+), 26 deletions(-)
Modulo the note on muxes_realized (see patch 15/15),
Reviewed-by: Paolo Bonzini <address@hidden>
- Re: [Qemu-devel] [PATCH v2 10/15] qio: non-default context for async conn, (continued)
- [Qemu-devel] [PATCH v2 09/15] qio: non-default context for threaded qtask, Peter Xu, 2018/03/01
- [Qemu-devel] [PATCH v2 11/15] qio: non-default context for TLS handshake, Peter Xu, 2018/03/01
- [Qemu-devel] [PATCH v2 12/15] chardev: introduce chr_machine_done hook, Peter Xu, 2018/03/01
- Re: [Qemu-devel] [PATCH v2 12/15] chardev: introduce chr_machine_done hook,
Paolo Bonzini <=
- [Qemu-devel] [PATCH v2 13/15] char: use chardev's gcontext for async connect, Peter Xu, 2018/03/01
- [Qemu-devel] [PATCH v2 14/15] chardev: tcp: postpone async connection setup, Peter Xu, 2018/03/01
- [Qemu-devel] [PATCH v2 15/15] chardev: tcp: postpone TLS work until machine done, Peter Xu, 2018/03/01