]> git.karo-electronics.de Git - linux-beck.git/commit
hvc_xen: implement multiconsole support
authorStefano Stabellini <stefano.stabellini@eu.citrix.com>
Mon, 30 Jan 2012 16:02:31 +0000 (16:02 +0000)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Tue, 13 Mar 2012 23:23:41 +0000 (19:23 -0400)
commit02e19f9c7cacfb33d7b2f5cace7972fa60f92319
treec62a54d17a617d648cb1213fe6844d1687a54988
parenteb5ef07151ba3c3cb4bcef0c8f146ff1115eaa55
hvc_xen: implement multiconsole support

This patch implements support for multiple consoles:
consoles other than the first one are setup using the traditional xenbus
and grant-table based mechanism.
We use a list to keep track of the allocated consoles, we don't
expect too many of them anyway.

Changes in v3:

- call hvc_remove before removing the console from xenconsoles;
- do not lock xencons_lock twice in the destruction path;
- use the DEFINE_XENBUS_DRIVER macro.

Signed-off-by: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/tty/hvc/hvc_xen.c