diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2020-11-30 13:44:49 -0500 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-12-15 12:51:51 -0500 |
commit | 5a1ee6077b89ee9a803aaf8d1c98004701f63684 (patch) | |
tree | ff3c0d5a2fc247b49974c38e2ccd9a1902a08b3f /stubs/machine-init-done.c | |
parent | f66dc8737c94a0ab57a252a280e5e83d6d630c67 (diff) |
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 'stubs/machine-init-done.c')
-rw-r--r-- | stubs/machine-init-done.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/stubs/machine-init-done.c b/stubs/machine-init-done.c deleted file mode 100644 index cd8e81392d..0000000000 --- a/stubs/machine-init-done.c +++ /dev/null @@ -1,8 +0,0 @@ -#include "qemu/osdep.h" -#include "sysemu/sysemu.h" - -bool machine_init_done = true; - -void qemu_add_machine_init_done_notifier(Notifier *notify) -{ -} |