* [PATCH] virtio: console: Enable call to hvc_remove() on console port remove
@ 2011-03-14 12:15 Amit Shah
2011-03-16 4:04 ` Rusty Russell
0 siblings, 1 reply; 2+ messages in thread
From: Amit Shah @ 2011-03-14 12:15 UTC (permalink / raw)
To: Rusty Russell; +Cc: Amit Shah, Virtualization List
This call was disabled as hot-unplugging one virtconsole port led to
another virtconsole port freezing.
Upon testing it again, this now works, so enable it.
In addition, a bug was found in qemu wherein removing a port of one type
caused the guest output from another port to stop working. I doubt it
was just this bug that caused it (since disabling the hvc_remove() call
did allow other ports to continue working), but since it's all solved
now, we're fine with hot-unplugging of virtconsole ports.
Signed-off-by: Amit Shah <amit.shah@redhat.com>
---
drivers/char/virtio_console.c | 11 -----------
1 files changed, 0 insertions(+), 11 deletions(-)
diff --git a/drivers/char/virtio_console.c b/drivers/char/virtio_console.c
index 84b164d..838568a 100644
--- a/drivers/char/virtio_console.c
+++ b/drivers/char/virtio_console.c
@@ -1280,18 +1280,7 @@ static void unplug_port(struct port *port)
spin_lock_irq(&pdrvdata_lock);
list_del(&port->cons.list);
spin_unlock_irq(&pdrvdata_lock);
-#if 0
- /*
- * hvc_remove() not called as removing one hvc port
- * results in other hvc ports getting frozen.
- *
- * Once this is resolved in hvc, this functionality
- * will be enabled. Till that is done, the -EPIPE
- * return from get_chars() above will help
- * hvc_console.c to clean up on ports we remove here.
- */
hvc_remove(port->cons.hvc);
-#endif
}
/* Remove unused data this port might have received. */
--
1.7.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] virtio: console: Enable call to hvc_remove() on console port remove
2011-03-14 12:15 [PATCH] virtio: console: Enable call to hvc_remove() on console port remove Amit Shah
@ 2011-03-16 4:04 ` Rusty Russell
0 siblings, 0 replies; 2+ messages in thread
From: Rusty Russell @ 2011-03-16 4:04 UTC (permalink / raw)
Cc: Amit Shah, Virtualization List
On Mon, 14 Mar 2011 17:45:48 +0530, Amit Shah <amit.shah@redhat.com> wrote:
> This call was disabled as hot-unplugging one virtconsole port led to
> another virtconsole port freezing.
>
> Upon testing it again, this now works, so enable it.
Applied,
Rusty.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-03-16 4:04 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-14 12:15 [PATCH] virtio: console: Enable call to hvc_remove() on console port remove Amit Shah
2011-03-16 4:04 ` Rusty Russell
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.