summaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authoraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-03-05 22:59:58 +0000
committeraliguori <aliguori@c046a42c-6fe2-441c-8c8c-71466251a162>2009-03-05 22:59:58 +0000
commita86eb204808d4eb435c2fd03c013026c2290d74e (patch)
treea8a0e207b0695c0074a655a4f95bebf6bbdf9018 /vl.c
parent7f643f1413c724db8acb8c1cd6b2c5442a75bc00 (diff)
downloadqemu-a86eb204808d4eb435c2fd03c013026c2290d74e.tar.gz
qemu-a86eb204808d4eb435c2fd03c013026c2290d74e.tar.bz2
qemu-a86eb204808d4eb435c2fd03c013026c2290d74e.zip
char: Fix initial reset (Jan Kiszka)
Recent changes to the graphical console initialization broke the initial CHR_EVENT_RESET distribution. The reset BHs generated on char device initialization are now already consumed during machine init (ide init ... -> qemu_aio_wait -> qemu_bh_poll). Therefore, this patch moves the initial qemu_chr_reset calls into a separate funtion which is called after machine init. Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6700 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'vl.c')
-rw-r--r--vl.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/vl.c b/vl.c
index d3863c493b..9ba6bc451a 100644
--- a/vl.c
+++ b/vl.c
@@ -5693,6 +5693,7 @@ int main(int argc, char **argv, char **envp)
}
text_consoles_set_display(display_state);
+ qemu_chr_initial_reset();
if (monitor_device && monitor_hd)
monitor_init(monitor_hd, !nographic);