]> git.ipfire.org Git - thirdparty/qemu.git/commit - system/vl.c
chardev: do not use machine_init_done
authorPaolo Bonzini <pbonzini@redhat.com>
Mon, 30 Nov 2020 18:44:49 +0000 (13:44 -0500)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 15 Dec 2020 17:51:51 +0000 (12:51 -0500)
commit5a1ee6077b89ee9a803aaf8d1c98004701f63684
treeff3c0d5a2fc247b49974c38e2ccd9a1902a08b3f
parentf66dc8737c94a0ab57a252a280e5e83d6d630c67
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>
chardev/char-mux.c
chardev/chardev-sysemu.c [deleted file]
chardev/meson.build
hw/core/machine.c
include/chardev/char.h
include/sysemu/sysemu.h
softmmu/vl.c
stubs/machine-init-done.c [deleted file]
stubs/meson.build