]> git.proxmox.com Git - qemu.git/commit
chardev: Use timer instead of bottom-half to postpone open event
authorJan Kiszka <jan.kiszka@siemens.com>
Fri, 12 Oct 2012 07:52:49 +0000 (09:52 +0200)
committerAurelien Jarno <aurelien@aurel32.net>
Wed, 31 Oct 2012 21:20:44 +0000 (22:20 +0100)
commitac4119c023c72b15f54238af43e4a178fcf41494
tree778fcc959169ae183facf791165fe456cfc8d1ba
parent40e3acc18f1c663ee8f0c981525316f864f7b8ea
chardev: Use timer instead of bottom-half to postpone open event

As the block layer may decide to flush bottom-halfs while the machine is
still initializing (e.g. to read geometry data from the disk), our
postponed open event may be processed before the last frontend
registered with a muxed chardev.

Until the semantics of BHs have been clarified, use an expired timer to
achieve the same effect (suggested by Paolo Bonzini). This requires to
perform the alarm timer initialization earlier as otherwise timer
subsystem can be used before being ready.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
qemu-char.c
qemu-char.h
vl.c