]> git.proxmox.com Git - qemu.git/blobdiff - console.c
add an init function parameter to qemu_chr_open()
[qemu.git] / console.c
index b452bca10267c28b8a3ea9a7a129bce8a92a891c..6f0f1afade44c7989dcded1c83b7e3be19d502ac 100644 (file)
--- a/console.c
+++ b/console.c
@@ -1357,6 +1357,8 @@ static void text_console_do_init(CharDriverState *chr, DisplayState *ds, const c
     text_console_resize(s);
 
     qemu_chr_reset(chr);
+    if (chr->init)
+        chr->init(chr);
 }
 
 CharDriverState *text_console_init(const char *p)