]> git.proxmox.com Git - qemu.git/commitdiff
char: Remove special init_reset handling
authorAmit Shah <amit.shah@redhat.com>
Tue, 3 Nov 2009 14:29:55 +0000 (19:59 +0530)
committerAnthony Liguori <aliguori@us.ibm.com>
Tue, 17 Nov 2009 14:03:30 +0000 (08:03 -0600)
The initial_reset sent to chardevs doesn't do much other than setting
a bool to true. Char devices are interested in the open event and
that gets sent whenever the device is opened.

Moreover, the reset logic breaks as and when qemu's bh scheduling
changes.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
qemu-char.c
qemu-char.h
vl.c

index 1f63019520f646b7328e9087c751114f4d0bb0fd..d78bae3551ef62d831ed41745338567240a61da2 100644 (file)
@@ -128,15 +128,6 @@ void qemu_chr_reset(CharDriverState *s)
     }
 }
 
-void qemu_chr_initial_reset(void)
-{
-    CharDriverState *chr;
-
-    QTAILQ_FOREACH(chr, &chardevs, next) {
-        qemu_chr_reset(chr);
-    }
-}
-
 int qemu_chr_write(CharDriverState *s, const uint8_t *buf, int len)
 {
     return s->chr_write(s, buf, len);
index 05fe15d8cd8a0a98decddb1ea0bbdd3bf039b6ae..b420111f7cbac5b44a3003edaddaacc044a40033 100644 (file)
@@ -83,7 +83,6 @@ void qemu_chr_add_handlers(CharDriverState *s,
                            void *opaque);
 int qemu_chr_ioctl(CharDriverState *s, int cmd, void *arg);
 void qemu_chr_reset(CharDriverState *s);
-void qemu_chr_initial_reset(void);
 int qemu_chr_can_read(CharDriverState *s);
 void qemu_chr_read(CharDriverState *s, uint8_t *buf, int len);
 int qemu_chr_get_msgfd(CharDriverState *s);
diff --git a/vl.c b/vl.c
index fff8e8d4686a32d6c6f9cd418c779ae52a13bec8..18353f289e8617846e02c44f8d8e55cb8bc936c4 100644 (file)
--- a/vl.c
+++ b/vl.c
@@ -5790,7 +5790,6 @@ int main(int argc, char **argv, char **envp)
     }
 
     text_consoles_set_display(display_state);
-    qemu_chr_initial_reset();
 
     for (i = 0; i < MAX_MONITOR_DEVICES; i++) {
         if (monitor_devices[i] && monitor_hds[i]) {