Skip to contentSkip to conversation

all xen consoles must have CON_ENABLED set

PATCH New Jimi Xenidis 1 participant 1 message Aug 10, 2006 Xen hypervisor interface

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 all xen consoles must have CON_ENABLED set

I cannot think of any circumstance that the Xen console device would not have CON_ENABLED. With out this, DomUs that panic() before the init process has started (and maybe even after) do not get output hi priority log_levels (like panic()) from LOG_BUF().

---

drivers/xen/console/console.c +1 -3
diff -r 417779fda95b drivers/xen/console/console.c
@@ -178,7 +178,7 @@ static struct tty_driver *kcons_device(s
 
 static struct console kcons_info = {
 	.device	= kcons_device,
-	.flags	= CON_PRINTBUFFER,
+	.flags	= CON_PRINTBUFFER | CON_ENABLED,
 	.index	= -1,
 };
 
@@ -192,8 +192,6 @@ static int __init xen_console_init(void)
 		if (xc_mode == XC_DEFAULT)
 			xc_mode = XC_SERIAL;
 		kcons_info.write = kcons_write_dom0;
-		if (xc_mode == XC_SERIAL)
-			kcons_info.flags |= CON_ENABLED;
 	} else {
 		if (xc_mode == XC_DEFAULT)
 			xc_mode = XC_TTY;