Skip to contentSkip to conversation

console: call qemu_chr_reset() in text_console_init

PATCH New Amit Shah 1 participant 1 message Oct 14, 2009

lore
Share & tools
lore

Amit Shah

author
#0 lore raw

PATCH 1/1 console: call qemu_chr_reset() in text_console_init

text_console_init is called as the initialiser function for the 'vc' char backend. This function doesn't call qemu_chr_reset(), that emits the OPENED event.

This fixes the help text and initial prompt display when the monitor is started in its default options -- as a vc backend to sdl or vnc.

---

This patch fixes the bug that gets exposed when my other char patches are applied (which are presently in Anthony's queue).

 console.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
console.c +1 -0
index 9bbef59..a4e0d64 100644
@@ -1403,6 +1403,7 @@ CharDriverState *text_console_init(QemuOpts *opts)
     text_console_opts[n_text_consoles] = opts;
     n_text_consoles++;
 
+    qemu_chr_reset(chr);
     return chr;
 }
 
Signature · 1 line
1.6.2.5