Re: [Qemu-devel] [PATCH 5/9] chardev: introduce chr_machine_done hook

2018-03-05 Thread Peter Xu
On Mon, Mar 05, 2018 at 11:54:22AM +0100, Marc-André Lureau wrote: > Hi > > On Mon, Mar 5, 2018 at 7:50 AM, 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

Re: [Qemu-devel] [PATCH 5/9] chardev: introduce chr_machine_done hook

2018-03-05 Thread Marc-André Lureau
Hi On Mon, Mar 5, 2018 at 7:50 AM, 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

[Qemu-devel] [PATCH 5/9] chardev: introduce chr_machine_done hook

2018-03-04 Thread Peter Xu
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-speci