xen/console: fix priority of Xen console
Currently the Xen console is always attached with priority CN_REMOTE (highest), which means that when booting with a single console the Xen console will take preference over the VGA for example, and that's not intended unless the user has also selected to use a serial console. Fix this by lowering the priority of the Xen console to NORMAL unless the user has selected to use a serial console. This keeps the usual FreeBSD behavior of outputting to the internal consoles (ie: VGA) when booted as a Xen dom0. MFC after: 3 days Sponsored by: Citrix Systems R&D
This commit is contained in:
parent
38cf2a4334
commit
d16bd54140
@ -44,6 +44,7 @@ __FBSDID("$FreeBSD$");
|
||||
#include <sys/cons.h>
|
||||
#include <sys/kdb.h>
|
||||
#include <sys/proc.h>
|
||||
#include <sys/reboot.h>
|
||||
|
||||
#include <machine/stdarg.h>
|
||||
|
||||
@ -590,7 +591,7 @@ xencons_cnprobe(struct consdev *cp)
|
||||
if (!xen_domain())
|
||||
return;
|
||||
|
||||
cp->cn_pri = CN_REMOTE;
|
||||
cp->cn_pri = (boothowto & RB_SERIAL) ? CN_REMOTE : CN_NORMAL;
|
||||
sprintf(cp->cn_name, "%s0", driver_name);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user