• Peter Xu's avatar
    chardev: introduce chr_machine_done hook · c7278b43
    Peter Xu authored
    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.
    
    Since at it, replace the mux_realized variable with the global
    machine_init_done varible.
    
    This notifier framework will be further leverged by other type of
    chardevs soon.
    Signed-off-by: 's avatarPeter Xu <peterx@redhat.com>
    Message-Id: <20180306053320.15401-6-peterx@redhat.com>
    Acked-by: 's avatarStefan Hajnoczi <stefanha@redhat.com>
    Reviewed-by: 's avatarDaniel P. Berrangé <berrange@redhat.com>
    Signed-off-by: 's avatarPaolo Bonzini <pbonzini@redhat.com>
    c7278b43
Name
Last commit
Last update
..
char-fd.h Loading commit data...
char-fe.h Loading commit data...
char-io.h Loading commit data...
char-mux.h Loading commit data...
char-parallel.h Loading commit data...
char-serial.h Loading commit data...
char-win-stdio.h Loading commit data...
char-win.h Loading commit data...
char.h Loading commit data...