/* After this point, any new FE attached to any new or existing mux will receive CHR_EVENT_OPENED notifications for the BE immediately.  */
static void muxes_realize_done(Notifier *notifier, void *unused)
/* After this point, any new FE attached to any new or existing mux will receive CHR_EVENT_OPENED notifications for the BE immediately.  */
static void muxes_realize_done(Notifier *notifier, void *unused)
{
    CharDriverState *chr;
    QTAILQ_FOREACH(chr, &chardevs, next) {
        if (chr->is_mux) {
            MuxDriver *d = chr->opaque;
            int i;
            for (i = 0; i < d->mux_cnt; i++) {
                mux_chr_send_event(d, i, CHR_EVENT_OPENED);
            }
            qemu_chr_be_generic_open(chr);
        }
    }
    muxes_realized = true;
}