diff options
author | Paolo Bonzini | 2020-11-30 19:44:49 +0100 |
---|---|---|
committer | Paolo Bonzini | 2020-12-15 18:51:51 +0100 |
commit | 5a1ee6077b89ee9a803aaf8d1c98004701f63684 (patch) | |
tree | ff3c0d5a2fc247b49974c38e2ccd9a1902a08b3f /include/sysemu | |
parent | vl: move all generic initialization out of vl.c (diff) | |
download | qemu-5a1ee6077b89ee9a803aaf8d1c98004701f63684.tar.gz qemu-5a1ee6077b89ee9a803aaf8d1c98004701f63684.tar.xz qemu-5a1ee6077b89ee9a803aaf8d1c98004701f63684.zip |
chardev: do not use machine_init_done
machine_init_done is not the right flag to check when preconfig
is taken into account; for example "./qemu-system-x86_64 -serial
mon:stdio -preconfig" does not print the QEMU monitor header until after
exit_preconfig. Add back a custom bool for mux character devices. This
partially undoes commit c7278b4355 ("chardev: introduce chr_machine_done
hook", 2018-03-12), but it keeps the cleaner logic using a function
pointer in ChardevClass.
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/sysemu')
-rw-r--r-- | include/sysemu/sysemu.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/sysemu/sysemu.h b/include/sysemu/sysemu.h index 0e7b405d22..9b47cdca55 100644 --- a/include/sysemu/sysemu.h +++ b/include/sysemu/sysemu.h @@ -16,8 +16,6 @@ extern bool qemu_uuid_set; void qemu_add_exit_notifier(Notifier *notify); void qemu_remove_exit_notifier(Notifier *notify); -extern bool machine_init_done; - void qemu_run_machine_init_done_notifiers(void); void qemu_add_machine_init_done_notifier(Notifier *notify); void qemu_remove_machine_init_done_notifier(Notifier *notify); |