mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-07-27 04:13:53 -06:00
char: add a /chardevs container
Add a /chardevs container object to hold the list of chardevs. (Note: QTAILQ chardevs is going away in the following commits) Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
This commit is contained in:
parent
f8df5f9221
commit
2f5d45a150
8 changed files with 42 additions and 36 deletions
|
@ -154,7 +154,7 @@ static void vhost_user_cleanup(NetClientState *nc)
|
|||
Chardev *chr = qemu_chr_fe_get_driver(&s->chr);
|
||||
|
||||
qemu_chr_fe_deinit(&s->chr);
|
||||
qemu_chr_delete(chr);
|
||||
object_unparent(OBJECT(chr));
|
||||
}
|
||||
|
||||
qemu_purge_queued_packets(nc);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue