From: Amit Shah <amit.shah@redhat.com>
To: qemu-devel@nongnu.org
Cc: Amit Shah <amit.shah@redhat.com>
Subject: [Qemu-devel] [PATCH 2/3] char: Remove special init_reset handling
Date: Tue, 3 Nov 2009 19:59:55 +0530 [thread overview]
Message-ID: <1257258596-4556-3-git-send-email-amit.shah@redhat.com> (raw)
In-Reply-To: <1257258596-4556-2-git-send-email-amit.shah@redhat.com>
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>
---
qemu-char.c | 9 ---------
qemu-char.h | 1 -
vl.c | 1 -
3 files changed, 0 insertions(+), 11 deletions(-)
diff --git a/qemu-char.c b/qemu-char.c
index 1f63019..d78bae3 100644
--- a/qemu-char.c
+++ b/qemu-char.c
@@ -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);
diff --git a/qemu-char.h b/qemu-char.h
index 05fe15d..b420111 100644
--- a/qemu-char.h
+++ b/qemu-char.h
@@ -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 e57f58f..5ad4e42 100644
--- a/vl.c
+++ b/vl.c
@@ -5750,7 +5750,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]) {
--
1.6.2.5
next prev parent reply other threads:[~2009-11-03 14:32 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-11-03 14:29 [Qemu-devel] char: remove init_reset handling, more data per write() Amit Shah
2009-11-03 14:29 ` [Qemu-devel] [PATCH 1/3] char: don't limit data sent to backends to 1k per buffer Amit Shah
2009-11-03 14:29 ` Amit Shah [this message]
2009-11-03 14:29 ` [Qemu-devel] [PATCH 3/3] char: rename qemu_chr_reset to qemu_chr_generic_open Amit Shah
2009-11-03 17:08 ` [Qemu-devel] Re: [PATCH 2/3] char: Remove special init_reset handling Jan Kiszka
2009-11-03 17:55 ` Amit Shah
2009-11-03 18:09 ` Amit Shah
2009-11-03 18:53 ` Jan Kiszka
2009-11-04 5:21 ` Amit Shah
2009-11-04 9:39 ` Jan Kiszka
2009-11-04 10:48 ` Amit Shah
2009-11-04 14:30 ` Jan Kiszka
2009-11-04 16:13 ` Amit Shah
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1257258596-4556-3-git-send-email-amit.shah@redhat.com \
--to=amit.shah@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).