[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [RFC PATCH v2 13/17] xenconsoled: add support for up to 3 secondary consoles
Based on previous few commits, this adds basic support for multiple consoles in xenconsoled. A static number of them - up to 3 (+ one primary). Signed-off-by: Marek Marczykowski-Górecki <marmarek@xxxxxxxxxxxxxxxxxxxxxx> --- I know this is awful, but everything else I can think of (real support for multiple consoles, dynamically allocated) requires major restructure of the code. Given I'm still not sure if multiple consoles are the way to go with stubdomain, I'd rather not invest time in something that could never by actually useful. --- tools/console/daemon/io.c | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/tools/console/daemon/io.c b/tools/console/daemon/io.c index 3f2b9cb..c2c37dc 100644 --- a/tools/console/daemon/io.c +++ b/tools/console/daemon/io.c @@ -134,6 +134,30 @@ static struct console_type console_type[] = { .use_gnttab = true, .use_reserved_gnttab = true, }, + { + .xsname = "/device/console/1", + .ttyname = "tty", + .log_suffix = "-con1", + .optional = true, + .use_gnttab = true, + .have_state = true, + }, + { + .xsname = "/device/console/2", + .ttyname = "tty", + .log_suffix = "-con2", + .optional = true, + .use_gnttab = true, + .have_state = true, + }, + { + .xsname = "/device/console/3", + .ttyname = "tty", + .log_suffix = "-con3", + .optional = true, + .use_gnttab = true, + .have_state = true, + }, #if defined(CONFIG_ARM) { .xsname = "/vuart/0", -- git-series 0.9.1 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |