virtio-console: Keep chardev open for other users after hot-unplug
commitf9a90f189c780e066039f2de3906c73c48071bb7
authorAmit Shah <amit.shah@redhat.com>
Tue, 15 Mar 2011 08:43:09 +0000 (15 14:13 +0530)
committerAmit Shah <amit.shah@redhat.com>
Mon, 21 Mar 2011 11:26:55 +0000 (21 16:56 +0530)
tree7a45f4dadfd9bb5f672a499d7f17b84ca4359388
parentfee063c07f20b442ef4bedef834ab0a3bf55b562
virtio-console: Keep chardev open for other users after hot-unplug

After a hot-unplug operation, the previous behaviour was to close the
chardev.  That meant the chardev couldn't be re-used.  Also, since
chardev hot-plug isn't possible so far, this means virtio-console
hot-plug isn't feasible as well.

With this change, the chardev is kept around.  A new virtio-console
channel can then be hot-plugged with the same chardev and things will
continue to work.

Signed-off-by: Amit Shah <amit.shah@redhat.com>
hw/virtio-console.c