Based on previous few commits, this adds basic support for multiple
consoles in xenconsoled. A static number of them - up to 3 (+ one
primary).

---
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 2cf71a0..7761c60 100644
--- a/tools/console/daemon/io.c
+++ b/tools/console/daemon/io.c
@@ -133,6 +133,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@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to