Peter Xu c7278b4355 chardev: introduce chr_machine_done hook
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: Peter Xu <peterx@redhat.com>
Message-Id: <20180306053320.15401-6-peterx@redhat.com>
Acked-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2018-03-12 16:12:46 +01:00
..
2018-02-13 18:25:48 +02:00
2018-02-22 15:44:07 -08:00
2017-09-22 10:46:25 +08:00
2018-02-08 09:23:07 +08:00
2016-10-26 08:29:01 -07:00
2017-11-17 18:21:30 +01:00
2017-03-01 11:51:28 +04:00
2017-03-01 11:51:05 +04:00
2017-03-01 11:51:04 +04:00
2017-10-20 13:32:10 +02:00
2017-03-01 11:51:05 +04:00
2018-02-14 10:08:41 +01:00
2017-10-20 13:32:10 +02:00
2018-03-06 11:20:44 +00:00
2018-02-09 05:05:11 +01:00
2018-03-02 13:45:50 -06:00
2018-03-06 14:01:27 +01:00
2017-01-10 08:49:59 -08:00
2018-02-08 09:22:03 +08:00
2017-09-05 22:34:40 +02:00
2017-12-20 22:01:24 +08:00
2018-02-21 07:24:50 -05:00