mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-12-17 21:26:13 -07:00
char: Remove special init_reset handling
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>
This commit is contained in:
parent
9bd7854e1e
commit
57e073a3a1
3 changed files with 0 additions and 11 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue